Issue while executing the NRPE plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
kgopiramesh

Re: Issue while executing the NRPE plugin

Post 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 ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue while executing the NRPE plugin

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
kgopiramesh

Re: Issue while executing the NRPE plugin

Post by kgopiramesh »

Thank you all for your support, the issue is with mod_gearman and now I am able to resolve the issue.
Locked