Page 3 of 3

Re: Nagios Command

Posted: Tue Apr 19, 2016 2:17 pm
by raamardhani7
Hi miltchev,

It was typo..

Re: Nagios Command

Posted: Tue Apr 19, 2016 3:55 pm
by lmiltchev
Did you verify the token on 10.10.83.90? What is the output of the following command?

Code: Select all

grep asd7fjk3l34 /usr/local/nrdp/server/config.inc.php
Do you see any errors in the apache error log?

Code: Select all

tail -100 /var/log/httpd/error_log
BTW, I am not able to recreate the issue. On a "remote" box, I ran:

Code: Select all

php /usr/local/nrdp/clients/send_nrdp.php --url=http://<nagios ip>/nrdp --token=mytoken --host=testhost --service=testservice --state=0 --output="The service looks okay"
The test host & service showed up in Unconfigured objects in Nagios XI right away:
example01.PNG
Can you zip up the "/usr/local/nrdp/clients/send_nrdp.php" file, and upload it on the forum? I would like to compare it to the one I am currently using.