NRPE work from command line but not from windows.cfg
Posted: Mon Jun 19, 2017 2:50 pm
I hope this is easy. I've been staring at it so long I am sure it's simple and I just don't see it.
This command works from the command line of my nagios core server:
./check_nrpe -H xxx.xxx.xxx.245 -t 30 -c CheckFiles -a path='C:\' pattern=*.MOLE02 'filter=size gt 0b' 'master-syntax={%total% Files Found}' MaxCrit=1
Here is the response:
{4 Files Found}, found files: 4 > critical|'found files'=4;0;1
Here is my windows.cfg service that does not work:
define service{
use generic-service
host_name FS.XXX.Com
service_description MOLE
check_command check_nrpe!check_files!path='c:\\' pattern=*.MOLE02 'warning=count>1' 'critical=count>2' top-syntax='${status}: ${problem_count}/${count} files' 'empty-state=ok'
}
Here is the nrpe command from commands.cfg:
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 90 -c $ARG1$ $ARG2$
}
I would greatly appreciate being pointed in the right direction,
Thanks
Jason
This command works from the command line of my nagios core server:
./check_nrpe -H xxx.xxx.xxx.245 -t 30 -c CheckFiles -a path='C:\' pattern=*.MOLE02 'filter=size gt 0b' 'master-syntax={%total% Files Found}' MaxCrit=1
Here is the response:
{4 Files Found}, found files: 4 > critical|'found files'=4;0;1
Here is my windows.cfg service that does not work:
define service{
use generic-service
host_name FS.XXX.Com
service_description MOLE
check_command check_nrpe!check_files!path='c:\\' pattern=*.MOLE02 'warning=count>1' 'critical=count>2' top-syntax='${status}: ${problem_count}/${count} files' 'empty-state=ok'
}
Here is the nrpe command from commands.cfg:
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 90 -c $ARG1$ $ARG2$
}
I would greatly appreciate being pointed in the right direction,
Thanks
Jason