Page 2 of 5

Re: Nagios Core 4.1.1 "Unable to get process data"

Posted: Tue Oct 06, 2015 3:19 pm
by druid
I'm accessing Nagios via http://hostIP/nagios

Re: Nagios Core 4.1.1 "Unable to get process data"

Posted: Tue Oct 06, 2015 3:24 pm
by hsmith
That's correct, then.

What is the output of a ls -l /usr/local/nagios/share command?

Re: Nagios Core 4.1.1 "Unable to get process data"

Posted: Tue Oct 06, 2015 3:32 pm
by druid
ls -l /usr/local/nagios/share

Code: Select all

total 156
drwxrwxr-x. 4 nagios nagios   85 Sep 23 10:22 angularjs
drwxrwxr-x. 3 nagios nagios   16 Sep 23 10:22 bootstrap-3.3.0
-rw-rw-r--. 1 nagios nagios  576 Sep 23 10:22 config.inc.php
drwxrwxr-x. 2 nagios nagios 4096 Sep 23 10:22 contexthelp
drwxrwxr-x. 2 nagios nagios   22 Sep 23 10:22 d3
drwxrwxr-x. 3 nagios nagios   19 Sep 23 10:22 docs
-rw-rw-r--. 1 nagios nagios  879 Sep 23 10:22 graph-header.html
-rw-rw-r--. 1 nagios nagios 4136 Sep 23 10:22 histogram-form.html
-rw-rw-r--. 1 nagios nagios 5579 Sep 23 10:22 histogram-graph.html
-rw-rw-r--. 1 nagios nagios 2855 Sep 23 10:22 histogram.html
-rw-rw-r--. 1 nagios nagios 2372 Sep 23 10:22 histogram-links.html
drwxrwxr-x. 3 nagios nagios 4096 Sep 23 10:22 images
drwxrwxr-x. 3 nagios nagios   62 Sep 23 10:22 includes
-rw-rw-r--. 1 nagios nagios 1653 Sep 23 10:22 index.php
-rw-rw-r--. 1 nagios nagios 1660 Sep 23 10:22 infobox.html
drwxrwxr-x. 2 nagios nagios 4096 Sep 23 10:22 js
-rw-rw-r--. 1 nagios nagios 1177 Sep 23 10:22 jsonquery.html
drwxr-xr-x. 4 root   root     24 Sep 23 14:33 locale
-rw-rw-r--. 1 nagios nagios 8745 Sep 23 10:22 main.php
-rw-rw-r--. 1 nagios nagios 1967 Sep 23 10:22 map-directive.html
-rw-rw-r--. 1 nagios nagios 3824 Sep 23 10:22 map-form.html
-rw-rw-r--. 1 nagios nagios 2627 Sep 23 10:22 map.html
-rw-rw-r--. 1 nagios nagios  623 Sep 23 10:22 map-links.html
-rw-rw-r--. 1 nagios nagios 1723 Sep 23 10:22 map-popup.html
drwxrwxr-x. 2 nagios nagios    6 Sep 23 10:22 media
-rw-rw-r--. 1 nagios nagios   26 Sep 23 10:22 robots.txt
-rw-rw-r--. 1 nagios nagios  657 Sep 23 10:22 rss-corebanner.php
-rw-rw-r--. 1 nagios nagios 1071 Sep 23 10:22 rss-corefeed.html
-rw-rw-r--. 1 nagios nagios  898 Sep 23 10:22 rss-corefeed.php
-rw-rw-r--. 1 nagios nagios  544 Sep 23 10:22 rss-newsfeed.html
-rw-rw-r--. 1 nagios nagios 1068 Sep 23 10:22 rss-newsfeed.php
-rw-rw-r--. 1 nagios nagios 6275 Sep 23 10:22 side.php
drwxrwxr-x. 2 nagios nagios   24 Sep 23 10:22 spin
drwxrwxr-x. 2 nagios nagios    6 Sep 23 10:22 ssi
drwxrwxr-x. 2 nagios nagios 4096 Sep 23 10:22 stylesheets
-rw-rw-r--. 1 nagios nagios 4243 Sep 23 10:22 trends-form.html
-rw-rw-r--. 1 nagios nagios 4256 Sep 23 10:22 trends-graph.html
-rw-rw-r--. 1 nagios nagios  852 Sep 23 10:22 trends-host-yaxis.html
-rw-rw-r--. 1 nagios nagios 2990 Sep 23 10:22 trends.html
-rw-rw-r--. 1 nagios nagios 3586 Sep 23 10:22 trends-links.html
-rw-rw-r--. 1 nagios nagios 1065 Sep 23 10:22 trends-service-yaxis.html

Re: Nagios Core 4.1.1 "Unable to get process data"

Posted: Tue Oct 06, 2015 3:37 pm
by hsmith
Is SELinux running?

getenforce

Re: Nagios Core 4.1.1 "Unable to get process data"

Posted: Tue Oct 06, 2015 3:40 pm
by druid
getenforce

Permissive

Re: Nagios Core 4.1.1 "Unable to get process data"

Posted: Tue Oct 06, 2015 3:54 pm
by hsmith
What if you disable it and try to access the webpage?

Code: Select all

setenforce 0

Re: Nagios Core 4.1.1 "Unable to get process data"

Posted: Tue Oct 06, 2015 4:00 pm
by druid
setenforce 0
getenforce


still says "Permissive" and same error on httpd/error_log and web page

Re: Nagios Core 4.1.1 "Unable to get process data"

Posted: Tue Oct 06, 2015 4:03 pm
by rhassing
Did you try using a trailing / like in: http://hostIP/nagios/

Re: Nagios Core 4.1.1 "Unable to get process data"

Posted: Tue Oct 06, 2015 4:04 pm
by rhassing
And please check the last part of /var/log/httpd/error.log (if it is default CentOS)

Re: Nagios Core 4.1.1 "Unable to get process data"

Posted: Tue Oct 06, 2015 4:13 pm
by druid
I tried trailing / and got the same thing. Here are the last few lines in httpd/error_log

Code: Select all

[Tue Oct 06 15:39:59.446554 2015] [core:notice] [pid 4900] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Oct 06 15:40:10.206903 2015] [autoindex:error] [pid 4908] [client 127.0.0.1:34981] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Tue Oct 06 15:45:10.194307 2015] [autoindex:error] [pid 4908] [client 127.0.0.1:34985] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Tue Oct 06 15:50:10.186660 2015] [autoindex:error] [pid 4903] [client 127.0.0.1:34987] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Tue Oct 06 15:55:10.183405 2015] [autoindex:error] [pid 4908] [client 127.0.0.1:34989] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Tue Oct 06 16:00:10.188405 2015] [autoindex:error] [pid 4904] [client 127.0.0.1:34992] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Tue Oct 06 16:05:10.168131 2015] [autoindex:error] [pid 5041] [client 127.0.0.1:34994] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Tue Oct 06 16:10:10.144392 2015] [autoindex:error] [pid 4910] [client 127.0.0.1:34996] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive