Nagios Core 4.1.1 "Unable to get process data"

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.
druid
Posts: 33
Joined: Tue Oct 06, 2015 1:46 pm

Nagios Core 4.1.1 "Unable to get process data"

Post by druid »

Hello,

When going to my Nagios webpage I'm seeing a red 'X' and a message saying "Unable to get process data". Everything on else on the homepage looks fine, but when clicking on "Hosts" or "Services" links I get to a page saying: "Error: Could not read host and service status information!:

The Nagios log seems fine, however the httpd error_log states this error several times:

Code: Select all

"AH01276: Cannot serve directory /var/www/html/: No matching DiretoryIndex (index.html, index.html.var, index.php, index.php) found, and server-generated directory index forbidden by Options directive"
Nothing is is /var/www/html/ and I'm not sure why Nagios is looking there. I'm not seeing anything pointing to it. Let me know if you'd like to see any config files.

Thank you!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

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

Post by eloyd »

How did you install Nagios? Is this a VM? Did you compile from source? Something else?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
druid
Posts: 33
Joined: Tue Oct 06, 2015 1:46 pm

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

Post by druid »

Installed Nagios from source. This is on a VM running CentOS 7.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

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

Post by eloyd »

Nagios should have installed a few files in /var/www/html. Take a look at your install log and see if you missed anything. If it were me, I'd start over with a fresh VM.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
druid
Posts: 33
Joined: Tue Oct 06, 2015 1:46 pm

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

Post by druid »

A previous employee had installed Nagios 3.5.1 on another VM. We are currently using this VM in production (planning on moving to new VM with Nagios v4). This old VM doesn't have anything in /var/www/html either
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

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

Post by eloyd »

You should have something in your http configuration directory for nagios.conf that describes where to find Nagios. Check /etc/httpd/conf.d and see if there is a nagios.conf file there. If so, can you post its contents?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
druid
Posts: 33
Joined: Tue Oct 06, 2015 1:46 pm

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

Post by druid »

/etc/httpd/conf.d/nagios.conf

Code: Select all

# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file.  Customize the paths, etc. as
# needed to fit your system.

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

<Directory "/usr/local/nagios/sbin">
#  SSLRequireSSL
   Options ExecCGI
   AllowOverride None
   <IfVersion >= 2.3>
      <RequireAll>
         Require all granted
#        Require host 127.0.0.1

         AuthName "Nagios Access"
         AuthType Basic
         AuthUserFile /usr/local/nagios/etc/htpasswd.users
         Require valid-user
      </RequireAll>
   </IfVersion>
   <IfVersion < 2.3>
      Order allow,deny
      Allow from all
#     Order deny,allow
#     Deny from all
#     Allow from 127.0.0.1

      AuthName "Nagios Access"
      AuthType Basic
      AuthUserFile /usr/local/nagios/etc/htpasswd.users
      Require valid-user
   </IfVersion>
</Directory>

Alias /nagios "/usr/local/nagios/share"

<Directory "/usr/local/nagios/share">
#  SSLRequireSSL
   Options None
   AllowOverride None
   <IfVersion >= 2.3>
      <RequireAll>
         Require all granted
#        Require host 127.0.0.1

         AuthName "Nagios Access"
         AuthType Basic
         AuthUserFile /usr/local/nagios/etc/htpasswd.users
         Require valid-user
      </RequireAll>
   </IfVersion>
   <IfVersion < 2.3>
      Order allow,deny
      Allow from all
#     Order deny,allow
#     Deny from all
#     Allow from 127.0.0.1

      AuthName "Nagios Access"
      AuthType Basic
      AuthUserFile /usr/local/nagios/etc/htpasswd.users
      Require valid-user
   </IfVersion>
</Directory>
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

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

Post by eloyd »

Alias /nagios "/usr/local/nagios/share"
Have you tried: http://hostname/nagios as the URL?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
druid
Posts: 33
Joined: Tue Oct 06, 2015 1:46 pm

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

Post by druid »

Have you tried: http://hostname/nagios as the URL?
I'm not quite sure what you mean.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

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

Post by hsmith »

He's asking what URL you are using to attempt to access Nagios.
Former Nagios Employee.
me.
Locked