Unable to get process status

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Rajan_8
Posts: 1
Joined: Tue Nov 07, 2017 12:51 am

Unable to get process status

Post by Rajan_8 »

Moderator Edit: This thread has been split from another - https://support.nagios.com/forum/viewto ... =7&t=36221
In the future, please create a new thread and link to the old one instead of adding on.


Hello All,

I have installed nagios in two of our RHEL 6.9 servers, one is working fine, but getting the error "Unable to get process status" in one of the server.

While checking the hosts and servers, its showing the bellow error message,

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
-----------------------------------------------------------------------------------------
Please contact the server administrator, name@Domain and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/2.2.15 (CentOS) Server at 10.127.184.7 Port 80
------------------------------------------------------------------------------------------------

I have followed the guid - "https://www.tecmint.com/install-nagios-in-linux/" to install in both the servers

Please find the bellow output from error log and service log

[root@Server ~]# tail /var/log/httpd/error_log
[Tue Nov 07 05:36:22 2017] [error] [client 10.127.187.236] suexec policy violation: see suexec log for more details, referer: http://Server/nagios/main.php
[Tue Nov 07 05:36:22 2017] [error] [client 10.127.187.236] Premature end of script headers: statusjson.cgi, referer: http://Server/nagios/main.php
[Tue Nov 07 05:36:26 2017] [error] [client 10.127.187.236] suexec policy violation: see suexec log for more details, referer: http://Server/nagios/main.php
[Tue Nov 07 05:36:26 2017] [error] [client 10.127.187.236] Premature end of script headers: statusjson.cgi, referer: http://Server/nagios/main.php
[Tue Nov 07 05:36:29 2017] [error] [client 10.127.187.236] suexec policy violation: see suexec log for more details, referer: http://Server/nagios/main.php

[root@hmd-neu-mgmt-build ~]# tail /var/log/httpd/access_log
127.0.0.1 - - [07/Nov/2017:05:41:22 +0000] "GET / HTTP/1.0" 200 838 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
127.0.0.1 - - [07/Nov/2017:05:46:18 +0000] "GET / HTTP/1.0" 200 838 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"- nagiosadmin [07/Nov/2017:05:39:00 +0000] "GET /nagios/js/nag_funcs.js HTTP/1.1" 304 - "http://127.0.0.1 - - [07/Nov/2017:05:41:22 +0000] "GET / HTTP/1.0" 200 838 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
127.0.0.1 - - [07/Nov/2017:05:46:18 +0000] "GET / HTTP/1.0" 200 838 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"/nagios/main.php" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36"
127.0.0.1 - - [07/Nov/2017:05:41:22 +0000] "GET / HTTP/1.0" 200 838 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
127.0.0.1 - - [07/Nov/2017:05:46:18 +0000] "GET / HTTP/1.0" 200 838 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)" - nagiosadmin [07/Nov/2017:05:39:00 +0000] "GET /nagios/images/sblogo.png HTTP/1.1" 304 - "http://127.0.0.1 - - [07/Nov/2017:05:41:22 +0000] "GET / HTTP/1.0" 200 838 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
127.0.0.1 - - [07/Nov/2017:05:46:18 +0000] "GET / HTTP/1.0" 200 838 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"/nagios/side.php" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36"
127.0.0.1 - - [07/Nov/2017:05:41:22 +0000] "GET / HTTP/1.0" 200 838 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"
127.0.0.1 - - [07/Nov/2017:05:46:18 +0000] "GET / HTTP/1.0" 200 838 "-" "check_http/v2.2.1 (nagios-plugins 2.2.1)"

Anyone please help to sort this out, i have been trying to resolve this last couple of days

Thanks..
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Unable to get process status

Post by mcapra »

Can you share the suexec log from the problematic machine? And if it's complaining about a specific path, the output of ls -al against that path.

Also the outputs of these commands:

Code: Select all

groups nagios
groups apache
cut -d: -f1 /etc/group | grep 'nag\|apa\|htt'
Former Nagios employee
https://www.mcapra.com/
kyang

Re: Unable to get process status

Post by kyang »

Thanks @mcapra!

@Rajan_8, Let us know your suexec log and the output from @mcapras suggested commands.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Unable to get process status

Post by Box293 »

I would follow this guide as it is regularly tested.

https://support.nagios.com/kb/article.php?id=96
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked