Agent nrpe logs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mralvarezm
Posts: 4
Joined: Tue Jan 15, 2019 4:41 pm

Agent nrpe logs

Post 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 .. ??
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Agent nrpe logs

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
mralvarezm
Posts: 4
Joined: Tue Jan 15, 2019 4:41 pm

Re: Agent nrpe logs

Post 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
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Agent nrpe logs

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked