Page 2 of 3
Re: Issue while executing the NRPE plugin
Posted: Tue Jul 22, 2014 5:04 am
by kgopiramesh
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.
Re: Issue while executing the NRPE plugin
Posted: Wed Jul 23, 2014 1:33 pm
by lmiltchev
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:
Code: Select all
ifconfig
yum list installed openssl
on the client:
Code: Select all
ifconfig
grep only_from /etc/xinetd.d/nrpe
yum list installed openssl
Re: Issue while executing the NRPE plugin
Posted: Thu Jul 24, 2014 2:20 am
by kgopiramesh
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
Re: Issue while executing the NRPE plugin
Posted: Thu Jul 24, 2014 12:47 pm
by lmiltchev
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.
If you don't want nagios to retry the service check, you can set "max_check_attempts = 1" under the CCM->Services->"Check Settings" tab
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
Re: Issue while executing the NRPE plugin
Posted: Thu Jul 24, 2014 1:31 pm
by kgopiramesh
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
Re: Issue while executing the NRPE plugin
Posted: Fri Jul 25, 2014 12:04 pm
by lmiltchev
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
Re: Issue while executing the NRPE plugin
Posted: Mon Jul 28, 2014 4:23 am
by kgopiramesh
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
Re: Issue while executing the NRPE plugin
Posted: Mon Jul 28, 2014 1:51 pm
by sreinhardt
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!
Re: Issue while executing the NRPE plugin
Posted: Tue Jul 29, 2014 3:04 am
by kgopiramesh
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
Re: Issue while executing the NRPE plugin
Posted: Tue Jul 29, 2014 3:02 pm
by lmiltchev
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