Page 1 of 1

Agent nrpe logs

Posted: Tue Sep 10, 2019 12:08 pm
by mralvarezm
I have installed the nrpe on solaris 10 but I have the following logs:

nrpe[24077]: [ID 321439 daemon.error] Error: Request packet type/version was invalid!
nrpe[24077]: [ID 900267 daemon.error] Client request was invalid, bailing out...
nrpe[24497]: [ID 321439 daemon.error] Error: Request packet type/version was invalid!
nrpe[24497]: [ID 900267 daemon.error] Client request was invalid, bailing out...

Should I install the NCPA agent on solaris .. ??

Re: Agent nrpe logs

Posted: Tue Sep 10, 2019 12:25 pm
by mbellerue
NCPA is a good client, but if you've got NRPE installed, let's see if we can get that working. First off, can you give us the Nagios check command that you're running when these logs are generated?

Re: Agent nrpe logs

Posted: Wed Sep 11, 2019 12:05 pm
by mralvarezm
For check disks
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c check_disk -a '-w 50% -c 40% -p /'
For check cpu stats
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c check_cpu_stats -a '-w 70,40,30 -c 80,60,40'
For check memory
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c check_mem -a '-w 30 -c 20'
and so with the other services

Re: Agent nrpe logs

Posted: Wed Sep 11, 2019 2:54 pm
by mbellerue
Those commands look good.

Can you verify that NRPE is running?
From the Nagios XI side, can you telnet to the server on port 5666 (assuming you're using the default port)?

If that all looks good, then the next thing we should do is check the logs on the server. Check to see if there are any logs related to the NRPE client. If not, in /usr/local/nagios/etc/nrpe.conf, we can enable debugging (change debug=0 to debug=1), restart NRPE, and retry the command to see if that generates some logs.