Passive Monitoring - NO REQUEST HANDLER

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Passive Monitoring - NO REQUEST HANDLER

Post by ecarrasq »

lmiltchev wrote:Did you create your config under the NRDS Config Manager prior to switching to SSL or after that? Can you access:

Code: Select all

https://<nagiosxi_server>/nrdp/
URL, enter your token and submit a command?

Yes, we can go to: https://<nagiosxi_server>/nrdp/

entered the token and submitted a command which resulted in a Unconfigured Object, as expected in Nagios Xi.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Passive Monitoring - NO REQUEST HANDLER

Post by lmiltchev »

Did you create your config under the NRDS Config Manager prior to switching to SSL or after that?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Passive Monitoring - NO REQUEST HANDLER

Post by ecarrasq »

Define "Switching".

Don't think we've switch.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Passive Monitoring - NO REQUEST HANDLER

Post by lmiltchev »

In your first post you have:
Are there specials configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?

Forced SSL on NagiosXi login web screen
Obviously, you switched to using SSL - this is not set up "by default". Did you follow this document?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Passive Monitoring - NO REQUEST HANDLER

Post by ecarrasq »

Yes
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Passive Monitoring - NO REQUEST HANDLER

Post by yancy »

ecarrasq,

Did you include the trailing forward slash?

Code: Select all

curl -k https://<nagiosxi_server>/nrdp/
also, this should work using -l to follow the location

Code: Select all

curl -k -l https://<nagiosxi_server>/nrdp/
-Yancy
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Passive Monitoring - NO REQUEST HANDLER

Post by ecarrasq »

curl -k -l https://<nagiosxi_server>/nrdp/
<strong>Submit Nagios Command:</strong><br>
<form action="" method="get">
<input type="hidden" name="cmd" value="submitcmd">
Token: <input type="text" name="token" value="" size="15"><br>
Command: <input type="text" name="command" size="50" value="DISABLE_HOST_NOTIFICATIONS;somehost"><br>
<input type="submit" name="btnSubmit" value="Submit Command">
</form>

<hr>

<strong>Submit Check Data</strong><br>
<form action="" method="post">
<input type="hidden" name="cmd" value="submitcheck">
Token: <input type="text" name="token" value="" size="15"><br>
Check Data:<br>
<textarea cols="80" rows="15" name="XMLDATA">
<?xml version='1.0'?>
<checkresults>
<checkresult type='host'>
<hostname>somehost</hostname>
<state>0</state>
<output>Everything looks okay!|perfdata</output>
</checkresult>
<checkresult type='service'>
<hostname>somehost</hostname>
<servicename>someservice</servicename>
<state>1</state>
<output>WARNING: Danger Will Robinson!|perfdata</output>
</checkresult>
</checkresults>
</textarea><br>
<input type="submit" name="btnSubmit" value="Submit Check Data">
</form>
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Passive Monitoring - NO REQUEST HANDLER

Post by yancy »

ecarrasq,

Good, that's what you should be receiving.

Now let's try using curl to fetch the installer.

Code: Select all

 curl -k -l -o test_server.tar.gz "https://<nagiosxi_server>/nrdp/?cmd=nrdsgetclient&token=<token>&configname=<test_server>"
-Yancy
ecarrasq
Posts: 244
Joined: Tue Feb 22, 2011 5:58 pm

Re: Passive Monitoring - NO REQUEST HANDLER

Post by ecarrasq »

Still getting the same:
same.jpeg
You do not have the required permissions to view the files attached to this post.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Passive Monitoring - NO REQUEST HANDLER

Post by yancy »

ecarrasq,

If you plug this into a web browser, does the file download

Code: Select all

https://<nagiosxi_server>/nrdp/?cmd=nrdsgetclient&token=<token>&configname=<test_server>
Thanks,

-Yancy
Locked