Re: How to config plugin check_newest_file_age
Posted: Wed May 08, 2019 4:07 am
Okay, something else:
I have split up the directory to be checked, because one dir needs to be checked every day, the other one only once a week.
The last one shows a status Pending in Nagios. That's not wat i want. Is het possible to not let it show?
Or should i go back to the config with two dir's in the command?
This is wat i have now:
Basic.cfg:
define command{
command_name check_newest_file_age
command_line /usr/lib64/nagios/plugins/check_nrpe -H '$HOSTADDRESS$' -t 300 -c check_newest_file_age $ARG1$ $ARG2$
}
Services.cfg:
define service {
use generic-service
host_name linux-server
check_interval 300
check_period onlymondays
notification_period onlymondays
service_description Controle backup-log
check_command check_newest_file_age! -a '-d "/gpfs/fileSystemConnections55ONT/filesystemconnections6data#/Search-bck/latest/" -w 7 -c 8 -t days'
define service {
use generic-service
host_name linux-server
check_interval 300
service_description Controle herstart log
check_command check_newest_file_age! -a '-d "/waslog/cp_init/" -w 7 -c 8 -t days'
}
I have split up the directory to be checked, because one dir needs to be checked every day, the other one only once a week.
The last one shows a status Pending in Nagios. That's not wat i want. Is het possible to not let it show?
Or should i go back to the config with two dir's in the command?
This is wat i have now:
Basic.cfg:
define command{
command_name check_newest_file_age
command_line /usr/lib64/nagios/plugins/check_nrpe -H '$HOSTADDRESS$' -t 300 -c check_newest_file_age $ARG1$ $ARG2$
}
Services.cfg:
define service {
use generic-service
host_name linux-server
check_interval 300
check_period onlymondays
notification_period onlymondays
service_description Controle backup-log
check_command check_newest_file_age! -a '-d "/gpfs/fileSystemConnections55ONT/filesystemconnections6data#/Search-bck/latest/" -w 7 -c 8 -t days'
define service {
use generic-service
host_name linux-server
check_interval 300
service_description Controle herstart log
check_command check_newest_file_age! -a '-d "/waslog/cp_init/" -w 7 -c 8 -t days'
}