file existence check
Earl C. Ruby III
earl at switchmanagement.com
Thu Jul 8 02:42:43 CEST 2004
I would construct your YYYYMMDD timestamp as current time - 21:59:59 hours.
That way, at 10pm you're checking for today's file, and you keep checking for
today's file until 9:59:59pm the next day.
On Wednesday 07 July 2004 03:55 pm, Neil wrote:
> 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.
--
Earl C. Ruby III
Senior Systems Engineer / Developer
Switch Management
-------------------------------------------------------
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