On 27/06/06, Elizar M. Palad <[EMAIL PROTECTED]> wrote:
> Is there such a plugin that only check if a file exist?
> I want to nagios to check if a file was created after a cron job.
>
> Critical if no file was generated and ok if there is.

#!/bin/sh
if [ -f /path/to/file ] ; then echo OK: File exists; exit 0; fi
echo CRIT: File not there!
exit 2

Ras

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to