Page 3 of 3

Re: Issue while executing the NRPE plugin

Posted: Wed Jul 30, 2014 2:59 am
by kgopiramesh
Hi Limitchev,

I have removed the host name but the service definition has the host name.


Is it mandatory to give the arguments to the NRPE checks or we can ignore them?. The problem we are facing here is not every time we are getting error receiving the data from the daemon, only sometimes we are receiving this error

The service check executes and the last check it performed goes to the future time. Do we need to change anything in Nagios.cfg file ?

Re: Issue while executing the NRPE plugin

Posted: Wed Jul 30, 2014 4:56 pm
by lmiltchev
Is it mandatory to give the arguments to the NRPE checks or we can ignore them?
It is not "mendatory". You can run checks with or without args. If you would like to use args, you will need to have the following line in the nrpe.cfg:

Code: Select all

dont_blame_nrpe=1
Also, it depends on how your commands are defined on the client machine. You can have on the client:

Code: Select all

command[check_users]=/usr/local/nagios/libexec/check_users $ARG1$
and run (on the Nagios server)

Code: Select all

./check_nrpe -H <client ip> -c check_users -a '-w 2 -c 5'
...or you could have the args hardcoded:

Code: Select all

command[check_users]=/usr/local/nagios/libexec/check_users -w 2 -c 5
and run:

Code: Select all

./check_nrpe -H <client ip> -c check_users
The service check executes and the last check it performed goes to the future time. Do we need to change anything in Nagios.cfg file ?
Is your php and system time synced?

Admin->System Profile

Re: Issue while executing the NRPE plugin

Posted: Thu Jul 31, 2014 2:50 am
by kgopiramesh
Thank you all for your support, the issue is with mod_gearman and now I am able to resolve the issue.