Issue while executing the NRPE plugin
-
kgopiramesh
Re: Issue while executing the NRPE plugin
Hi Abrist,
We have upgraded the agent to 2.13 still having the same issues and also please let me know how we can disable the recheck intervals once the service has changed its state. we want to make recheck intervals as zero.
We have upgraded the agent to 2.13 still having the same issues and also please let me know how we can disable the recheck intervals once the service has changed its state. we want to make recheck intervals as zero.
Re: Issue while executing the NRPE plugin
Can you show us the actual command that you are running from the command line on the Nagios XI server, along with the output of it? Also, show us the command definition on the remote box (client).
Run the following commands and show us the output:
on the XI server:
on the client:
Run the following commands and show us the output:
on the XI server:
Code: Select all
ifconfig
yum list installed opensslCode: Select all
ifconfig
grep only_from /etc/xinetd.d/nrpe
yum list installed opensslBe sure to check out our Knowledgebase for helpful articles and solutions!
-
kgopiramesh
Re: Issue while executing the NRPE plugin
Hi Limitchev,
Please find the below for my response.
on Nagios server:
./check_nrpe -H 172.xx.xx.39 -c check_memory_free_buffers -n
The free memory left on the server is 15136 MB/16014 MB and the utilization is normal | Used_Memory=6;80;90;10;0
on the client :
command[check_memory_free_buffers]=/usr/local/nagios/libexec/check_free_mem.sh
from Nagios server :
yum installed packages :
Installed Packages
openssl.x86_64 1.0.0-20.el6_2.5 @anaconda-CentOS-201207061011.x86_64/6.3
ifconfig
192.xxx.xx.1
127.0.0.1
172.xx.xx.5
on client machiene :
yum installed packages
openssl.i686 0.9.8e-26.el5_9.1 installed
openssl.x86_64 0.9.8e-26.el5_9.1 installed
ifconfig:
127.0.0.1
10.xx.xx.6
172.xx.xx.39
grep only_from /etc/xinetd.d/nrpe
only_from = 127.0.0.1 172.xx.xx.5 172.xx.xx.39
Please find the below for my response.
on Nagios server:
./check_nrpe -H 172.xx.xx.39 -c check_memory_free_buffers -n
The free memory left on the server is 15136 MB/16014 MB and the utilization is normal | Used_Memory=6;80;90;10;0
on the client :
command[check_memory_free_buffers]=/usr/local/nagios/libexec/check_free_mem.sh
from Nagios server :
yum installed packages :
Installed Packages
openssl.x86_64 1.0.0-20.el6_2.5 @anaconda-CentOS-201207061011.x86_64/6.3
ifconfig
192.xxx.xx.1
127.0.0.1
172.xx.xx.5
on client machiene :
yum installed packages
openssl.i686 0.9.8e-26.el5_9.1 installed
openssl.x86_64 0.9.8e-26.el5_9.1 installed
ifconfig:
127.0.0.1
10.xx.xx.6
172.xx.xx.39
grep only_from /etc/xinetd.d/nrpe
only_from = 127.0.0.1 172.xx.xx.5 172.xx.xx.39
Re: Issue while executing the NRPE plugin
If you don't want nagios to retry the service check, you can set "max_check_attempts = 1" under the CCM->Services->"Check Settings" tabWe have upgraded the agent to 2.13 still having the same issues and also please let me know how we can disable the recheck intervals once the service has changed its state. we want to make recheck intervals as zero.
Service - max check attempts
This directive is used to define the number of times that Nagios will retry the service check command if it returns any state other than an OK state. Setting this value to 1 will cause Nagios to generate an alert without retrying the service check again.
Parameter name: max_check_attempts
Required: yes
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
kgopiramesh
Re: Issue while executing the NRPE plugin
Hi Limitchev,
We have tried with the option max check attempts to 1 but still we are receiving the issue. from your previous posts, I suspect that NRPE request is being triggered from / to different IP that it is intended from / to .please let me know how we can set the NRPE traffic to be sent from the nagios server or nrpe client'
Thanks in advance
We have tried with the option max check attempts to 1 but still we are receiving the issue. from your previous posts, I suspect that NRPE request is being triggered from / to different IP that it is intended from / to .please let me know how we can set the NRPE traffic to be sent from the nagios server or nrpe client'
Thanks in advance
Re: Issue while executing the NRPE plugin
I wonder whether NRPE is running under both - xinetd and as a standalone daemon... Can you run the following commands and show us the output?
Code: Select all
ps -ef | grep [n]rpe
netstat -at | grep nrpe
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
kgopiramesh
Re: Issue while executing the NRPE plugin
Hi limitchev,
Please find the below fot the output.
netstat -at | grep nrpe
tcp 0 0 *:nrpe *:* LISTEN
tcp 0 0 <nrpeclientmachine>:nrpe <nagios server>:42280 TIME_WAIT
# ps -ef | grep nrpe
root 31995 31323 0 09:21 pts/0 00:00:00 grep nrpe
Please find the below fot the output.
netstat -at | grep nrpe
tcp 0 0 *:nrpe *:* LISTEN
tcp 0 0 <nrpeclientmachine>:nrpe <nagios server>:42280 TIME_WAIT
# ps -ef | grep nrpe
root 31995 31323 0 09:21 pts/0 00:00:00 grep nrpe
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Issue while executing the NRPE plugin
Well, you are not running nrpe twice, so instead can you show this services nagios configs? Please include the main service config, and any templates that it directly uses or that are inherited from other templates it uses. Any service group configurations it is a part of would be great too!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
kgopiramesh
Re: Issue while executing the NRPE plugin
Hi,
Please find the below for the service definition file.
host_name
service_description Memory Utilization
use generic-service
check_command check_nrpe!check_memory_free_buffers!!!!!!!
max_check_attempts 1
check_interval 5
retry_interval 2
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard nrpe
register 1
Please find the below for the service definition file.
host_name
service_description Memory Utilization
use generic-service
check_command check_nrpe!check_memory_free_buffers!!!!!!!
max_check_attempts 1
check_interval 5
retry_interval 2
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard nrpe
register 1
Re: Issue while executing the NRPE plugin
Are you missing the "host_name" directive or you left it blank intentionally? The "host_name" is required.
http://nagios.sourceforge.net/docs/nagi ... ml#service
http://nagios.sourceforge.net/docs/nagi ... ml#service
Be sure to check out our Knowledgebase for helpful articles and solutions!