Histogram problem with nagios 2.0b2 and 2.0b3

Hello Folks,
i have a problem with my nagios histogram, when i selected “trends” i should select host or service and after the hosts under menu, but in my menu i can’t see anything … infact it is empty
Any ideas is appreciated.

Thank you

check the permissions on all of your files, namely, services.cfg and hosts.cfg

thank you for the answer, but the permissions are ok infact availability men

FYI, availability and tends are 2 different cgi’s, so if one works, does not imply that the other will also.

Try recompiling the .cgi’s and pasting a ls -la of the /usr/local/nagios/sbin wouldn’t hurt either.

So when you clik on “trends”, how many screens are good and then when is it broken? For example:
I clik on trends, and the 1st screen is good, 2nd is half there. ie. it’s missing the “continue to step 3” button.

Edited Fri May 20 2005, 08:43AM ]

hi again,

the 1st screen is ok 2nd not host or services under list, the 3 screen is ok ( select time …week…day…)

4 screen says

“It appears as though you are not authorized to view information for the specified host…”

but i think that is normally because i couldn’t select hosts or services.

otput of my /usr/loca/nagios/sbin

164 -rwxrwxr-x 1 nagios nagios avail.cgi
164 -rwxrwxr-x 1 nagios nagios cmd.cgi
128 -rwxrwxr-x 1 nagios nagios config.cgi
180 -rwxrwxr-x 1 nagios nagios extinfo.cgi
116 -rwxrwxr-x 1 nagios nagios history.cgi
112 -rwxrwxr-x 1 nagios nagios showlog.cgi
164 -rwxrwxr-x 1 nagios nagios status.cgi
124 -rwxrwxr-x 1 nagios nagios statuswml.cgi
112 -rwxrwxr-x 1 nagios nagios statuswrl.cgi
132 -rwxrwxr-x 1 nagios nagios summary.cgi
128 -rwxrwxr-x 1 nagios nagios tac.cgi

No hosts or services to select from huh? Sounds like you don’t have permission to view them.
How did you authorize to the website? As what user? for example:
I logged in as jakkedup and jakkedup is not a member of any group in contactgroups.cfg nor is he in cgi.cfg. So that would explain why jakkedup can see any hosts or services.

But still, that wouldn’t explain why availability still works.

So, it still sounds like you need to recompile the cgi’s and be careful to watch for errors.

Wait a minute, where is trends.cgi in your ls -la output from above? That looks like a big problem right there.
Edited Sat May 21 2005, 09:06AM ]

[root@tia2665 sbin]# ls -la
total 4400
drwxrwxr-x 2 nagios nagios 4096 Mar 11 16:31 ./
drwxrwxr-x 9 nagios nagios 4096 Apr 15 13:52 …/
-rwxr-xr-x 1 nagios nagios 474871 Mar 11 10:41 a.out*
-rwxrwxr-x 1 nagios nagios 158192 Mar 11 16:31 avail.cgi*
-rwxrwxr-x 1 nagios nagios 167676 Mar 11 16:31 cmd.cgi*
-rwxrwxr-x 1 nagios nagios 125968 Mar 11 16:31 config.cgi*
-rwxr-xr-x 1 root root 125968 Feb 5 13:59 config.cgi.org*
-rwxrwxr-x 1 nagios nagios 183104 Mar 11 16:31 extinfo.cgi*
-rwxrwxr-x 1 nagios nagios 137840 Mar 11 16:31 histogram.cgi*
-rwxr-xr-x 1 root root 137840 Mar 11 14:01 histogram.cgi.org*
-rwxrwxr-x 1 nagios nagios 117664 Mar 11 16:31 history.cgi*
-rw-r–r-- 1 nagios nagios 110 Jun 4 2004 .htaccess
-rwxr-xr-x 1 nagios nagios 62014 Oct 17 2004 nagiostat.cgi*
-rwxr-xr-x 1 root root 19705 Oct 17 2004 nagiostat.cgi.org*
-rwxrwxr-x 1 nagios nagios 113728 Mar 11 16:31 notifications.cgi*
-rwxrwxr-x 1 nagios nagios 115220 Mar 11 16:31 outages.cgi*
-rwxr-xr-x 1 nagios nagios 110965 Jun 21 2004 perfchart.png*
-rwxr-xr-x 1 nagios nagios 131703 Jun 21 2004 perfgraph.cgi*
-rwxrwxr-x 1 nagios nagios 113408 Mar 11 16:31 showlog.cgi*
-rwxrwxr-x 1 nagios nagios 163324 Mar 11 16:31 status.cgi*
-rwxrwxr-x 1 nagios nagios 140052 Mar 11 16:31 statusmap.cgi*
-rwxrwxr-x 1 nagios nagios 127824 Mar 11 16:31 statuswml.cgi*
-rwxrwxr-x 1 nagios nagios 121556 Mar 11 16:31 statuswrl.cgi*
-rwxrwxr-x 1 nagios nagios 131984 Mar 11 16:31 summary.cgi*
-rwxrwxr-x 1 nagios nagios 142012 Mar 11 16:31 tac.cgi*
-rwxrwxr-x 1 nagios nagios 138800 Mar 11 16:31 trends.cgi*

Edited Fri May 20 2005, 09:53AM ]

Hi again,

I’m at work now on the same problem , the problem on my nagios is not under /usr/local/nagios/sbin beacuse the trends.cgi file works and i dont have “error 404” or similar, i have again empty hosts and service …
anyway i make cp trends.cgi to /usr/local/nagios/sbin but the problem is the same…

Any ideas?

Thank you

Hello,
News :),

on top of “Host and Service State Trends” there are two warnings "

  • Notifications are disabled
  • Service checks are disabled

the same on histogram.cgi

but Availability works without warning… what’s happening ?

Thank you