Found it ! I had to reverse the critical and warning value !
Thank you all for your help !
Search found 6 matches
- Fri Mar 07, 2014 12:57 pm
- Forum: Open Source Nagios Projects
- Topic: Problem using check_file_age
- Replies: 9
- Views: 8462
- Fri Mar 07, 2014 12:32 pm
- Forum: Open Source Nagios Projects
- Topic: Problem using check_file_age
- Replies: 9
- Views: 8462
Re: Problem using check_file_age
define service{ use generic-service host_name servername service_description test.txt check_command check_nt! FILEAGE -l "c:\\test.txt"! -w 300 -c 600 servicegroups file_age } It work fine but instead of sending alerts when the file is younger it send alerts is older. Do someone familiar w...
- Fri Mar 07, 2014 11:58 am
- Forum: Open Source Nagios Projects
- Topic: Problem using check_file_age
- Replies: 9
- Views: 8462
Re: Problem using check_file_age
It worked by use check_nt! FILEAGE but the problem is that I receive a notification when the file is older then the parameter. Do someone know how to make it so it send a notification when the file younger than the parameter ??
Thanks
Thanks
- Fri Mar 07, 2014 9:29 am
- Forum: Open Source Nagios Projects
- Topic: Problem using check_file_age
- Replies: 9
- Views: 8462
Re: Problem using check_file_age
I added the -H $HOSTADDRESS$ in the command definition and I still get the file not found the problem seems to be that nagios don't register the backslashes even if I but 2 to the path is c:test.txt instead of c:\test.txt The lower and upper case w and c is intentional, the lower and upper case make...
- Thu Mar 06, 2014 5:55 pm
- Forum: Open Source Nagios Projects
- Topic: Problem using check_file_age
- Replies: 9
- Views: 8462
Re: Problem using check_file_age
Thank you for replying
I use nsclient
define command{
command_name check_file_age
command_line $USER1$/check_file_age -W $ARG1$ -C $ARG2$ -w $ARG3$ -c $ARG4$ -f $ARG5$
}
I use nsclient
define command{
command_name check_file_age
command_line $USER1$/check_file_age -W $ARG1$ -C $ARG2$ -w $ARG3$ -c $ARG4$ -f $ARG5$
}
- Thu Mar 06, 2014 3:50 pm
- Forum: Open Source Nagios Projects
- Topic: Problem using check_file_age
- Replies: 9
- Views: 8462
Problem using check_file_age
Hi, I'm trying to monitor some log files on a windows server and to test it I simply created a service entry with the path c:\test.txt to monitor the age of the text file but regardless of how I try to write the path it doesn't register the \ and I get this error : FILE_AGE CRITICAL: File not found ...