"CHECK_NRPE: Received 0 bytes from daemon" error message

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: "CHECK_NRPE: Received 0 bytes from daemon" error message

Post by RIDS_I2MP »

Hello,

PFB output-

PRODUCTION> root@remotehost: /usr/local/nagios/etc > grep -e ^dont /usr/local/nagios/etc/nrpe.cfg
dont_blame_nrpe=1

We are not able to find NRPE v3 for AIX server (AIX 7.2.0.0), please give us a link to install NRPE v3 for the same.
Thanks & Regards,
I2MP Team.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: "CHECK_NRPE: Received 0 bytes from daemon" error message

Post by tgriep »

We do not have access to an AIX server to develop instructions on compiling NRPE 3.xx on an AIX server so that is why they are missing from the KB article.
I suggest following the Centos instructions for compiling it.

There are a couple of alternatives you can use to monitor your AIX server.
One is to use SNMP and the following link are the instructions you can used to enable that on the AIX server.
https://assets.nagios.com/downloads/nag ... g-SNMP.pdf

Or you can use NCPA. Take a look at this link for more details on that Agent.
https://www.nagios.org/ncpa/
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: "CHECK_NRPE: Received 0 bytes from daemon" error message

Post by RIDS_I2MP »

Hello,

I tried using SNMP to enable monitoring on AIX server. I am getting below error:

[nagios@nagiosserver libexec]$ ./check_snmp_storage.pl -H remotehost -C Str0ngC0mmunity -m "^/$" -w 2 -c 4
ERROR: Description/Type table : No response from remote host 'remotehost'.
Thanks & Regards,
I2MP Team.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: "CHECK_NRPE: Received 0 bytes from daemon" error message

Post by tgriep »

You are missing the option in your command to specify it to use SNMP version 2 so add the -2 to the command like the example below and see if it works.

Code: Select all

./check_snmp_storage.pl -H remotehost -C Str0ngC0mmunity -2 -m "^/$" -w 2 -c 4
If not, verify that the Community string is correct and that the services on the AIX server were restarted using the new community string.
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: "CHECK_NRPE: Received 0 bytes from daemon" error message

Post by RIDS_I2MP »

Hello,

[nagios@nagiosserver libexec]$ ./check_snmp_storage.pl -H remotehost -C Str0ngC0mmunity -2 -m "^/$" -w 2 -c 4
ERROR: Description/Type table : No response from remote host 'remotehost'.

Also, we have verified community string is correct and services on the AIX server were restarted using the new community string.

Still we are getting the same error.
Thanks & Regards,
I2MP Team.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: "CHECK_NRPE: Received 0 bytes from daemon" error message

Post by tgriep »

I will need to see the /etc/snmpdv3.conf file and the output of this command ran as root on the AIX server.

Code: Select all

ps aux
Then, run this command on the XI server to see if you can get any response from the AIX server when doing a snmpwalk. Post the output of the command as well.

Code: Select all

snmpwalk remotehost -c Str0ngC0mmunity -v 2c
Adjust the server and community string as needed.

Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: "CHECK_NRPE: Received 0 bytes from daemon" error message

Post by RIDS_I2MP »

This is related to the topic - Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
I am attaching /etc/snmpdv3.conf file.

[nagios@nagiosserver~]$ snmpwalk remotehost -c Str0ngC0mmunity -v 2c
Timeout: No Response from remotehost

Output of 'ps aux' is very long. Is there any specific thing that you want to check? I can search it using grep.

Also please let me know if there is any way to contact you over skype or call. We can also setup a meeting if it is convenient for you.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: "CHECK_NRPE: Received 0 bytes from daemon" error message

Post by tgriep »

Edit this line in the snmpdv3.conf file and change this line from

Code: Select all

COMMUNITY public    public     noAuthNoPriv 0.0.0.0     0.0.0.0         -
to

Code: Select all

COMMUNITY Str0ngC0mmunity    Str0ngC0mmunity     noAuthNoPriv 0.0.0.0     0.0.0.0         -
Save the file and restart all of the daemons.
Test it out to see if it works now.

If it still fails, this is what I would like to see from the ps output.

Code: Select all

ps aux |grep aixmibd
ps aux |grep hostmibd
ps aux |grep snmpmibd
ps aux |grep snmpd
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: "CHECK_NRPE: Received 0 bytes from daemon" error message

Post by RIDS_I2MP »

Thankyou so much! It is working fine.

This SNMP method is mainly useful to monitor filesystems only. Is there any way through which we can monitor parameters like swap,CPU,Load with similar method?
Thanks & Regards,
I2MP Team.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: "CHECK_NRPE: Received 0 bytes from daemon" error message

Post by RIDS_I2MP »

We want to monitor below parameters apart from filesystems:
1. CPU Utilization
2. CPU Out of Entitlement
3. Swap usage
4. xntpd Daemon
5. errdemon Daemon
6. syslogd Service
7. Cron Scheduler
Thanks & Regards,
I2MP Team.
Locked