Good morning.
I need to control the age of a file, but even after a week doing probes, check nt fileage don't works properly, and a little help will be apreciated.
First: Create a command to do it at commands.cfg file:
Code: Select all
define command{
command_name check_nt_fileage
command_line $USER1$/check_nt -H ~HOSTADDRESS$ -p 12489 -s <passwd> -v FILEAGE -l $ARG1$ -w $ARG2$ -c $ARG3$
}Code: Select all
define service{
use generic-service
host name HOSTNAME001
service_description Fileage Verification of c:\epoca\temp\nani.ftp
check_interval 1
retry_interval 1
......
......
notifications_enabled 1
contact_groups Gestores
check_command check_nt_fileage!"c:\\epoca\\temp\\nani.ftp" -w2 -c5
}Code: Select all
CS_DSSS-46Y2FPLOXC #marcajes WARNING 09-08-2013 11:26:55 0 years 0 mon 0 days 0 hours 0 min 39 sec When the fileage come to five minutes, really works fine: Disappears the WARNING alert, and is replaced by the CRITICAL alert, according the command line:
Code: Select all
CS_DSSS-46Y2FPLOXC #marcajes CRITICAL 09-08-2013 11:36:28 0 years 0 mon 0 days 0 hours 10 min 12 secI've tried other versions of NSClient++. FILEAGE don't works on 0.3.9 and later. Only 0.4.2. but, for now, is a non stable version.
Can someone help me?
Have a nice day