Host Detail viewing permission problem
Michael Teter
michael_teter at yahoo.com
Tue Apr 27 22:22:43 CEST 2004
Apache error logs show nothing.
I've done a little debugging, and here's what I have found.
status.c is responsible for generating the Service Status Details.
Within status.c, show_service_detail() is looping thru the list of services,
checking each. During the loop it calls find_service(), but that function is
returning NULL, ending the fun.
(status.c show_service_detail() calls object.c find_service())
/* find the service */
temp_service=find_service(temp_status->host_name,temp_status->description,NULL);
find_service() is being called with NULL for the service list, so it uses a
global service_list. Apparently that one is null too, since the
while(temp_service!=NULL) is being immediately skipped.
That is affecting every webpage.
Meanwhile, Nagios is running in the background, happily making calls to
find_service() and succeeding. It is performing all the tests, and based on
the various files that Nagios keeps, it is doing a fine job.
Suggestions?
Thanks,
MT
--- Demetri Mouratis <dmourati at cm.math.uiuc.edu> wrote:
> On Tue, 27 Apr 2004, Michael Teter wrote:
>
> > Did that already, or close to it. Here's what my cgi.cfg looks like.
> >
> > use_authentication=1
> > authorized_for_system_information=nagiosadmin
> > authorized_for_configuration_information=nagiosadmin
> > authorized_for_system_commands=nagiosadmin
> > authorized_for_all_services=nagiosadmin
> > authorized_for_all_hosts=nagiosadmin
> > authorized_for_all_service_commands=nagiosadmin
> > authorized_for_all_host_commands=nagiosadmin
> >
> > I also just tried it with * instead of nagiosadmin on the last four lines,
> but
> > I get the same result.
> >
> > MT
>
> OK. Have you tried tailing your apache error logs? The only other thing
> I can think of is that the cgis permissios are screwed up:
>
> [root at sysmon httpd]# tail -f /var/log/httpd/error_log
> [Sun Apr 25 04:02:09 2004] [notice] Digest: generating secret for digest
> authentication ...
> [Sun Apr 25 04:02:09 2004] [notice] Digest: done
>
> [root at sysmon nagios]# ls -lah /usr/local/nagios/sbin/
> total 2.0M
> drwxrwxr-x 2 nagios nagios 4.0K Apr 12 18:10 .
> drwxrwsr-x 8 nagios nagios 4.0K Apr 12 17:22 ..
> -rwxrwxr-x 1 nagios nagios 140K Apr 12 16:48 avail.cgi
> -rwxrwxr-x 1 nagios nagios 141K Apr 12 16:48 cmd.cgi
> -rwxrwxr-x 1 nagios nagios 111K Apr 12 16:48 config.cgi
> -rwxrwxr-x 1 nagios nagios 157K Apr 12 16:48 extinfo.cgi
> -rwxrwxr-x 1 nagios nagios 121K Apr 12 16:48 histogram.cgi
> -rwxrwxr-x 1 nagios nagios 103K Apr 12 16:48 history.cgi
> -rw-r--r-- 1 nagios nagios 111 Apr 12 18:10 .htaccess
> -rwxrwxr-x 1 nagios nagios 99K Apr 12 16:48 notifications.cgi
> -rwxrwxr-x 1 nagios nagios 96K Apr 12 16:48 outages.cgi
> -rwxrwxr-x 1 nagios nagios 98K Apr 12 16:48 showlog.cgi
> -rwxrwxr-x 1 nagios nagios 142K Apr 12 16:48 status.cgi
> -rwxrwxr-x 1 nagios nagios 124K Apr 12 16:48 statusmap.cgi
> -rwxrwxr-x 1 nagios nagios 112K Apr 12 16:48 statuswml.cgi
> -rwxrwxr-x 1 nagios nagios 106K Apr 12 16:48 statuswrl.cgi
> -rwxrwxr-x 1 nagios nagios 116K Apr 12 16:48 summary.cgi
> -rwxrwxr-x 1 nagios nagios 120K Apr 12 16:48 tac.cgi
> -rwxrwxr-x 1 nagios nagios 123K Apr 12 16:48 trends.cgi
> ---------------------------------------------------------------------
> Demetri Mouratis
> dmourati at linfactory.com
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
> For a limited time only, get FREE Ground shipping on all orders of $35
> or more. Hurry up and shop folks, this offer expires April 30th!
> http://www.thinkgeek.com/freeshipping/?cpg=12297
> _______________________________________________
> 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
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
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