file existence check

Paul L. Allen pla at softflare.com
Thu Jul 8 02:57:09 CEST 2004


Neil writes: 

> I would like to know guys how you would implement it

I'd check the modification time was not greater than 1 day. 

> and what you think  about my approach. 

Borked.  Hey, it's late here and I've had a lot of wine, so deep thought
is beyond me.  But your explanation of how you were going to do it was
a hell of a lot more complex than checking the mtime of the file.  A bit
of perl that uses -M will fix your problem for you. 

-- 
Paul Allen
Softflare Support 




-------------------------------------------------------
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