Page 2 of 3
Re: Passive Monitoring - NO REQUEST HANDLER
Posted: Wed Oct 16, 2013 11:30 am
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:
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.
Re: Passive Monitoring - NO REQUEST HANDLER
Posted: Wed Oct 16, 2013 11:53 am
by lmiltchev
Did you create your config under the NRDS Config Manager prior to switching to SSL or after that?
Re: Passive Monitoring - NO REQUEST HANDLER
Posted: Wed Oct 16, 2013 11:57 am
by ecarrasq
Define "Switching".
Don't think we've switch.
Re: Passive Monitoring - NO REQUEST HANDLER
Posted: Wed Oct 16, 2013 2:36 pm
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?
Re: Passive Monitoring - NO REQUEST HANDLER
Posted: Wed Oct 16, 2013 5:03 pm
by ecarrasq
Yes
Re: Passive Monitoring - NO REQUEST HANDLER
Posted: Thu Oct 17, 2013 10:12 am
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
Re: Passive Monitoring - NO REQUEST HANDLER
Posted: Thu Oct 17, 2013 10:17 am
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>
Re: Passive Monitoring - NO REQUEST HANDLER
Posted: Thu Oct 17, 2013 10:28 am
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
Re: Passive Monitoring - NO REQUEST HANDLER
Posted: Thu Oct 17, 2013 11:08 am
by ecarrasq
Still getting the same:
same.jpeg
Re: Passive Monitoring - NO REQUEST HANDLER
Posted: Thu Oct 17, 2013 12:32 pm
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