file existence check
NetVicious
n3tvicious-nagios at yahoo.es
Thu Jul 8 09:21:01 CEST 2004
I have an script that it's executed only at one time. If the script
don't works correctly due to an problem it creates a cron job using
at command for execute him with some parameters in 2 minutes.
You could use the same idea passing as a parameter the date of the
file you wants to check.
--- Neil <neil-on-nagios at restricted.dyndns.org> escribió: > Hey guys,
>
> I would like to monitor if a file gets uploaded successfully by our
> customer
> every night at 10pm. Filename syntax is Upload_Daily_20040707.txt.
> Programatically, I can extract the current date in my nagios system
> and have
> the date get appended to the syntax. So if file exists after 10pm
> check, it
> becomes OK. If not, it will remain RED. My concern is that after
> 12midnight,
> it won't be checked anymore because date will change. But I can
> create 2
> checks, one for today and the other one for yesterday.
>
> I would like to know guys how you would implement it and what you
> think
> about my approach.
>
> Thanks.
>
> Neil
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to
> /dev/null
>
=====
.. //\/ e t . \/ i c i o u s ..
______________________________________________
Yahoo! lanza su nueva tecnología de búsquedas
¿te atreves a comparar?
http://busquedas.yahoo.es
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list