my hosts get checked but don't show up in web interface!

Stefan P. Wolf wolf at med2.uni-kiel.de
Fri Dec 12 20:09:46 CET 2003


Hi everybody!

I am new to Nagios but I read the documentation and used Google
for 2 days to no avail -- I still have a problem with my system.

I'm using Debian Linux v3 (woody) and installed Nagios 1.1 with
text database (nagios-text). I also installed the stable Nagios
plugins 1.3.1 from SourceForge. I configured Nagios to check
three hosts (actually I did only 2, my default gateway was already
configured automagically by the install script). The pre-flight
check with -v gave me no warnings/errors and I can see in the
status log /var/log/nagios/status.log that all three hosts are 
pinged by the check_ping plugin and all three are up and running:

# Nagios 1.1 Status File
[1071255087] PROGRAM;1071249492;32723;0;1071255086;0;1;1;1;1;0;0;1;0
[1071255087] HOST;artus;UP;1071249592;1071247141;0;210;2076;0;0;0;0;0;1;0;0;0.00;0;1;1;(Host assumed to be up)
[1071255087] HOST;gw;UP;1071249692;1071247241;0;11;1978;0;0;0;0;0;1;0;0;0.00;0;1;1;(Host assumed to be up)
[1071255087] HOST;lancelot;UP;1071249792;1071247341;0;10;1878;0;0;0;0;0;1;0;0;0.00;0;1;1;(Host assumed to be up)
[1071255087] SERVICE;artus;PING;OK;1/3;HARD;1071254992;1071255292;ACTIVE;1;0;0;1071249403;0;OK;89;0;0;2076;0;0;0;0;4;0;0;0.00;0;1;1;1;PING OK - Packet loss = 0%, RTA = 48.70 ms
[1071255087] SERVICE;gw;PING;OK;1/3;HARD;1071254792;1071255092;ACTIVE;1;0;0;1071249702;0;OK;0;0;0;1978;0;0;0;0;4;0;0;0.00;0;1;1;1;PING OK - Packet loss = 0%, RTA = 48.80 ms
[1071255087] SERVICE;lancelot;PING;OK;1/3;HARD;1071254893;1071255193;ACTIVE;1;0;0;1071249802;0;OK;0;0;0;1878;0;0;0;0;4;0;0;0.00;0;1;1;1;PING OK - Packet loss = 0%, RTA = 48.70 ms

When I open the web interface from my workstation and log in as 
"nagiosadmin" I can open the tactical overview and am told that
I am logged in (as nagiosadmin). But the list of hosts is empty:

0 Down 	0 Unreachable 	0 Up 	0 Pending

Monitoring performance shows no active and passive checks (although
you can see in the status file that checks are done):

Check Execution Time:	-1 / -1 / 0.000 sec
Check Latency:	-1 / -1 / 0.000 sec
# Active Checks:	0
# Passive Checks:	0

The "Monitoring Features" seem to be okay:

   Flap Detection: N/A
   Notifications : All Services Enabled, All Hosts Enabled
   Event Handlers: All Services Enabled, All Hosts Enabled
   Active Checks : All Services Enabled, All Hosts Enabled
   Passive Checks: All Services Enabled

WHAT'S WRONG????

Also: when I go to any other "Monitoring" page (e.g. host detail)
I get an error message "It appears as though you do not have 
permission to view information for any of the hosts you requested..."

Many hits on google for this but no solutions! Everybody says
"cgi rights" but that should be okay:

/etc/nagios/apache.conf is included in httpd.conf and says:

[...]
ScriptAlias /cgi-bin/nagios /usr/lib/cgi-bin/nagios/
ScriptAlias /nagios/cgi-bin /usr/lib/cgi-bin/nagios/
<DirectoryMatch /usr/lib/cgi-bin/nagios/>
        Options ExecCGI

        AllowOverride AuthConfig
        Order Allow,Deny
        Allow From All

        AuthName "Nagios Access"
        AuthType Basic
        AuthUserFile /etc/nagios/htpasswd.users
        require valid-user
</DirectoryMatch>
[...]

Of course the htpasswd.users contains nagiosadmin...

I can't see any mstake in my installation, does anybody have a
clue what might be going on???

PLEASE HELP!!


Best regards, Stefan Wolf.


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list