Page 2 of 3
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Posted: Fri Mar 30, 2018 5:21 am
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.
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Posted: Fri Mar 30, 2018 12:53 pm
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/
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Posted: Wed Apr 04, 2018 4:43 am
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'.
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Posted: Wed Apr 04, 2018 8:37 am
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.
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Posted: Thu Apr 05, 2018 1:22 am
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.
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Posted: Thu Apr 05, 2018 11:53 am
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.
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
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Posted: Fri Apr 06, 2018 4:04 am
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.
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Posted: Fri Apr 06, 2018 8:22 am
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
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Posted: Mon Apr 09, 2018 5:40 am
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?
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Posted: Mon Apr 09, 2018 7:13 am
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