Page 1 of 3

Passive Monitoring - NO REQUEST HANDLER

Posted: Tue Oct 15, 2013 1:51 pm
by ecarrasq
System Info

Linux Distribution and version?

*Linux version 2.6.18-348.16.1.el5PAE #1 SMP Wed Aug 21 04:49:45 EDT 2013 i686 i686 i386 GNU/Linux
CentOS release 5.7 (Final)


32 or 64bit?

32 bit

VMware Image or Manual Install of XI?

VMware Image

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

Nagios Xi version: Nagios XI 2012R2.4

Issue:

I followed the instructions on Passive Monitoring with NRDS found in
but we are not able to get passed this point:

1. cd /tmp
2. wget -O test_server.tar.gz "https://<nagiosxi_server>/nrdp/?cmd=nrdsgetclient&token=<token>&configname=<test_server>"
this only returns a file of 18k (which is the 18 characters of "NO REQUEST HANDLER" when I place that URL https://<nagiosxi_server>/nrdp/?cmd=nrdsgetclient&token=<token>&configname=<test_server> into a web browser)
3. gunzip -c test_server.tar.gz | tar xf -
gzip: test_server.tar.gz: not in gzip format
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
I remove the "-" from the end of the command and I receive the following:
tar: Old option `f' requires an argument.
Try `tar --help' or `tar --usage' for more information.
Our goal is to create a passive check were a command will run every 5 minutes on a remote server which will send the necessary info to NagiosXi

Re: Passive Monitoring - NO REQUEST HANDLER

Posted: Tue Oct 15, 2013 2:47 pm
by yancy
ecarrasq,

can you tail the following log file, and try running the command again

Code: Select all

tail -f /var/log/httpd/error_log
Please post any output after the command has run.

Thanks,

-Yancy

Re: Passive Monitoring - NO REQUEST HANDLER

Posted: Tue Oct 15, 2013 3:59 pm
by ecarrasq
I ran the tail, but don't seem to get any data pertaining to the url call:
[Tue Oct 15 12:46:57 2013] [error] [client <IP>] PHP Notice: Unable to set CCM language: en in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 595, referer: https://<nagiosXi server>/nagiosxi//includes/components/ccm/?cmd=view&type=service
[Tue Oct 15 12:46:59 2013] [error] [client <IP>] PHP Notice: Undefined index: languages in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 624, referer: https://<nagiosXi server>/nagiosxi/includes/components/ccm/xi-index.php
[Tue Oct 15 12:47:04 2013] [error] [client <IP>] PHP Notice: Undefined index: languages in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 624, referer: https://<nagiosXi server>/nagiosxi//includes/components/ccm/?cmd=view&type=service
[Tue Oct 15 12:47:11 2013] [error] [client <IP>] PHP Notice: Undefined index: languages in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 624, referer: https://<nagiosXi server>/nagiosxi//includes/components/ccm/index.php
[Tue Oct 15 12:47:17 2013] [error] [client <IP>] PHP Notice: Undefined index: languages in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 624, referer: https://<nagiosXi server>/nagiosxi//includes/components/ccm/index.php
[Tue Oct 15 12:47:21 2013] [error] [client <IP>] PHP Notice: Undefined index: languages in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 624, referer: https://<nagiosXi server>/nagiosxi//includes/components/ccm/index.php
[Tue Oct 15 12:47:55 2013] [error] [client <IP>] PHP Notice: Undefined index: languages in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 624, referer: https://<nagiosXi server>/nagiosxi//includes/components/ccm/index.php
[Tue Oct 15 12:48:02 2013] [error] [client <IP>] PHP Notice: Undefined index: languages in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 624, referer: https://<nagiosXi server>/nagiosxi//includes/components/ccm/index.php?type=service
[Tue Oct 15 12:48:25 2013] [error] [client <IP>] PHP Notice: Undefined index: languages in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 624, referer: https://<nagiosXi server>/nagiosxi//includes/components/ccm/index.php
[Tue Oct 15 13:25:07 2013] [error] [client <IP>] File does not exist: /usr/local/nagiosxi/html/includes/js/jquery/colorpicker/images/colorpicker_overlay.png, referer: https://<nagiosXi server>/nagiosxi/includes/js/jquery/colorpicker/css/colorpicker.css

Re: Passive Monitoring - NO REQUEST HANDLER

Posted: Tue Oct 15, 2013 4:30 pm
by tmcdonald
ecarrasq wrote:I followed the instructions on Passive Monitoring with NRDS found in
but we are not able to get passed this point:

1. cd /tmp
2. wget -O test_server.tar.gz "https://<nagiosxi_server>/nrdp/?cmd=nrdsgetclient&token=<token>&configname=<test_server>"
Are we looking at the same document? Those commands do not show up in the one you linked. Also, are you making sure to replace the <nagiosxi_server> string with the server's IP address, along with all other such replacements?

Re: Passive Monitoring - NO REQUEST HANDLER

Posted: Tue Oct 15, 2013 4:37 pm
by ecarrasq
Those instructions are from the NRDS Config Manager:
nrds config manager.jpeg
nrds config manager.jpeg
And yes, I am making sure the IP address is correct on the url, I just added those fields in < > to not show sensitive data on this forum.

Re: Passive Monitoring - NO REQUEST HANDLER

Posted: Tue Oct 15, 2013 5:00 pm
by yancy
ecarrasq,

can you confirm the config exists, and the client install files exist, and what are the file permissions are on the NagiosXI machine.

Code: Select all

ll /usr/local/nrdp/configs/

ll /usr/local/nrdp/clients
-Yancy

Re: Passive Monitoring - NO REQUEST HANDLER

Posted: Tue Oct 15, 2013 5:19 pm
by ecarrasq
# ll /usr/local/nrdp/configs/
total 16
-rwxrwx--- 1 nagios nagios 4320 Oct 15 11:12 linuxservergroup.cfg.SAMPLE
-rw-rw---- 1 apache nagios 803 Oct 15 11:26 test_server.cfg
-rwxrwx--- 1 nagios nagios 427 Oct 15 11:14 Web_Service_Canary.cfg
# ll /usr/local/nrdp/clients
total 56
-rw------- 1 nagios nagios 5289 Oct 15 11:12 1-usersgroups
-rw------- 1 nagios nagios 1408 Oct 15 11:12 init.sh
-rwx------ 1 nagios nagios 5000 Oct 15 11:12 installnrds
drwx------ 2 nagios nagios 4096 Sep 17 2012 nrds
-rwxr-xr-x 1 nagios nagios 14647 Oct 15 11:12 send_nrdp.php
-rw------- 1 nagios nagios 5607 Oct 15 11:12 send_nrdp.py
-rw------- 1 nagios nagios 8163 Oct 15 11:12 send_nrdp.sh

Re: Passive Monitoring - NO REQUEST HANDLER

Posted: Wed Oct 16, 2013 11:19 am
by scottwilkerson
If I had to guess, it looks like your client doesn't know how to reach the NRDP address you have specified.

Can you run the following from the client replacing <nagiosxi_server> with the exact line you have in the screenshot above and display the output.

Code: Select all

curl https://<nagiosxi_server>/nrdp/

Re: Passive Monitoring - NO REQUEST HANDLER

Posted: Wed Oct 16, 2013 11:27 am
by lmiltchev
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?

Re: Passive Monitoring - NO REQUEST HANDLER

Posted: Wed Oct 16, 2013 11:28 am
by ecarrasq
I had to do curl with the --insecure as we have a self sign cert. Below is the output:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://<nagiosxi_server>/nrdp/">here</a>.</p>
<hr>
<address>Apache/2.2.3 (CentOS) Server at <nagiosxi_server> Port 443</address>
</body></html>

<nagiosxi_server> = I replaced this text with the actual Nagios Xi server's IP address