Operating System - Linux
1753552 Members
4694 Online
108795 Solutions
New Discussion

Re: nagios - authorization error when selecting non-networsk Service

 
Maaz
Valued Contributor

nagios - authorization error when selecting non-networsk Service

OS: SLES 10 SP 2 i586

nagios-2.6-13.16
nagios-plugins-1.4.5-16.13

simple default configuration (/etc/nagios attached)

I have created an htpasswd account "nagiosadmin" with the following command

# htpasswd2 -c /etc/nagios/httpusers nagiosadmin

then open the browser, and

http://localhost/nagios
then login with "nagiosadmin" account

Now I every thing works except the following

in webpage(http://localhost/nagios) click on the Trends(under Reporting) > select Type: Service > select Service: localhost;Current Load > Create Report

got the following error:

"It appears as though you are not authorized to view information for the specified service..."

either I select "localhost;Current Processes" or "localhost;Current Users", I got the same error

But when when I select "localhost:SSH" or "localhost:HTTP" it works fine

please help
Regards
Maaz
1 REPLY 1
Maaz
Valued Contributor

Re: nagios - authorization error when selecting non-networsk Service

I even tried to install nagios from source (nagios-3.0.3)

after installing the nagios-3.0.3,
firefox > http://localhost/nagios
then provided the credentials of nagiosadmin
and then
in webpage(http://localhost/nagios) click on the Trends(under Reporting) ... got the following error page

Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.
Error 404
localhost
Mon Sep 29 16:32:06 2008
Apache/2.2.3 (Linux/SUSE)

then I check /usr/local/nagios/sbin directory, and found that there is NO "trends.cgi" file exist

# ls -l /usr/local/nagios/sbin/
total 2528
-rwxrwxr-x 1 nagios nagios 225892 Sep 29 16:44 avail.cgi
-rwxrwxr-x 1 nagios nagios 223844 Sep 29 16:44 cmd.cgi
-rwxrwxr-x 1 nagios nagios 193060 Sep 29 16:44 config.cgi
-rwxrwxr-x 1 nagios nagios 242244 Sep 29 16:44 extinfo.cgi
-rwxrwxr-x 1 nagios nagios 176708 Sep 29 16:44 history.cgi
-rwxrwxr-x 1 nagios nagios 172612 Sep 29 16:44 notifications.cgi
-rwxrwxr-x 1 nagios nagios 168484 Sep 29 16:44 outages.cgi
-rwxrwxr-x 1 nagios nagios 172868 Sep 29 16:44 showlog.cgi
-rwxrwxr-x 1 nagios nagios 234084 Sep 29 16:44 status.cgi
-rwxrwxr-x 1 nagios nagios 184932 Sep 29 16:44 statuswml.cgi
-rwxrwxr-x 1 nagios nagios 172644 Sep 29 16:44 statuswrl.cgi
-rwxrwxr-x 1 nagios nagios 193124 Sep 29 16:44 summary.cgi
-rwxrwxr-x 1 nagios nagios 184964 Sep 29 16:44 tac.cgi


please help