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.
lmiltchev
Bugs find me
Posts: 13589 Joined: Mon May 23, 2011 12:15 pm
Post
by lmiltchev » Wed Jan 15, 2014 5:41 pm
You may have checked this one already, but is SELinux enabled?
Be sure to check out our
Knowledgebase for helpful articles and solutions!
sreinhardt
-fno-stack-protector
Posts: 4366 Joined: Mon Nov 19, 2012 12:10 pm
Post
by sreinhardt » Wed Jan 15, 2014 5:45 pm
Well that looks great, lets make sure php modules are loaded and see if you can access index.php directly.
in your browser visit
http://hostname/nagios/index.php
I was going to ask, is there a reason you went back to core from our XI demo the other day? We are going to help out either way, but if there was something you were not happy with it would be great to have improvement suggestions.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rlevick
Posts: 49 Joined: Tue Jan 07, 2014 4:20 pm
Post
by rlevick » Wed Jan 15, 2014 5:57 pm
I did have an issue with the NagiosXI not verifying additional switches after I added 48. I'm still waiting on an educational price from sales.
[root@localhost ~]# sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted
[root@localhost ~]# httpd -M
Loaded Modules:
core_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
auth_basic_module (shared)
auth_digest_module (shared)
authn_file_module (shared)
authn_alias_module (shared)
authn_anon_module (shared)
authn_dbm_module (shared)
authn_default_module (shared)
authz_host_module (shared)
authz_user_module (shared)
authz_owner_module (shared)
authz_groupfile_module (shared)
authz_dbm_module (shared)
authz_default_module (shared)
ldap_module (shared)
authnz_ldap_module (shared)
include_module (shared)
log_config_module (shared)
logio_module (shared)
env_module (shared)
ext_filter_module (shared)
mime_magic_module (shared)
expires_module (shared)
deflate_module (shared)
headers_module (shared)
usertrack_module (shared)
setenvif_module (shared)
mime_module (shared)
dav_module (shared)
status_module (shared)
autoindex_module (shared)
info_module (shared)
dav_fs_module (shared)
vhost_alias_module (shared)
negotiation_module (shared)
dir_module (shared)
actions_module (shared)
speling_module (shared)
userdir_module (shared)
alias_module (shared)
substitute_module (shared)
rewrite_module (shared)
proxy_module (shared)
proxy_balancer_module (shared)
proxy_ftp_module (shared)
proxy_http_module (shared)
proxy_ajp_module (shared)
proxy_connect_module (shared)
cache_module (shared)
suexec_module (shared)
disk_cache_module (shared)
cgi_module (shared)
version_module (shared)
dnssd_module (shared)
php5_module (shared)
Syntax OK
[root@localhost ~]#
rlevick
Posts: 49 Joined: Tue Jan 07, 2014 4:20 pm
Post
by rlevick » Wed Jan 15, 2014 6:02 pm
When I try to got to http://<serverIP>/nagios/index.php I timeout.
lmiltchev
Bugs find me
Posts: 13589 Joined: Mon May 23, 2011 12:15 pm
Post
by lmiltchev » Thu Jan 16, 2014 10:47 am
Run the following command in the command line:
Let me know if this helped.
Be sure to check out our
Knowledgebase for helpful articles and solutions!
rlevick
Posts: 49 Joined: Tue Jan 07, 2014 4:20 pm
Post
by rlevick » Thu Jan 16, 2014 11:10 am
Unfortunately web access is still unavailable after the command. Thanks.
abrist
Red Shirt
Posts: 8334 Joined: Thu Nov 15, 2012 1:20 pm
Post
by abrist » Thu Jan 16, 2014 11:32 am
Now that you have nmap, can you run a port scan?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the
Dark Side .
rlevick
Posts: 49 Joined: Tue Jan 07, 2014 4:20 pm
Post
by rlevick » Thu Jan 16, 2014 11:36 am
[root@localhost ~]# nmap localhost
Starting Nmap 5.51 (
http://nmap.org ) at 2014-01-16 10:35 CST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000011s latency).
rDNS record for 127.0.0.1: localhost.localdomain
Not shown: 995 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
80/tcp open http
111/tcp open rpcbind
631/tcp open ipp
Nmap done: 1 IP address (1 host up) scanned in 0.07 seconds
[root@localhost ~]#
abrist
Red Shirt
Posts: 8334 Joined: Thu Nov 15, 2012 1:20 pm
Post
by abrist » Thu Jan 16, 2014 11:41 am
Try to browse to the page one more time, and then post the apache log here:
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the
Dark Side .
rlevick
Posts: 49 Joined: Tue Jan 07, 2014 4:20 pm
Post
by rlevick » Thu Jan 16, 2014 11:45 am
[root@localhost ~]# tail -35 /var/log/httpd/error_log
[Thu Jan 16 08:24:18 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 08:29:18 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 08:34:18 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 08:39:18 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 08:44:18 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 08:49:18 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 08:54:18 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 08:59:18 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 09:04:18 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 09:09:18 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 09:14:18 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 09:19:18 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 09:24:17 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 09:29:17 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 09:34:17 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 09:39:17 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 09:44:17 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 09:49:17 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 09:54:17 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 09:59:05 2014] [notice] caught SIGTERM, shutting down
[Thu Jan 16 10:00:14 2014] [notice] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Jan 16 10:00:14 2014] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Jan 16 10:00:14 2014] [notice] Digest: generating secret for digest authentication ...
[Thu Jan 16 10:00:14 2014] [notice] Digest: done
[Thu Jan 16 10:00:14 2014] [warn] ./mod_dnssd.c: No services found to register
[Thu Jan 16 10:00:14 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Jan 16 10:01:30 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 10:06:30 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 10:11:30 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 10:16:30 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 10:21:30 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 10:26:30 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 10:31:30 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 10:36:30 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Thu Jan 16 10:41:30 2014] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[root@localhost ~]#