logo       

Re: nagios.cmd ... "Sorry, you are not authorized..." -- Argh!: msg#00429

network.nagios.user

Subject: Re: nagios.cmd ... "Sorry, you are not authorized..." -- Argh!

Probably need to re-read the web interface setup, try coping your .htaccess file to the cgi-bin directory...

 "Olivier Beauchemin (Accolade Group)" <olivier@xxxxxxxxxxxxxxxxx> wrote:

Whelp, I'm stumped.

I can't figure out why I can't do things like add comments, disable service
checks, schedule downtime etc.

I've set myself up as nagiosadmin, right out of the box. I can see and do
everything else...

Just for fun, I've set up other hosts, with different contact names and then
setup different usernames (doing basic auth, using Apache)... and that works
as documented.

What's the trick? I've already read: nagios/docs/commandfile.html.

Thanks,
Olivier

PS.
I've noticed that when I login, it says logged in as 'nagiosadmin' (which is
correct). But, when I hit "commit" to disable a service check, for example,
the "Sorry" page indicates logged in as ?.

[obeauche@mrtg var]# ls -la
total 904
drwxrwxr-x 4 nagios nagios 4096 Jan 9 21:47 .
drwxrwxr-x 8 nagios nagios 4096 Jan 7 01:52 ..
drwxrwxr-x 2 n agios nagios 4096 Jan 8 00:00 archives
-rw-rw-r-- 1 nagios nagios 0 Jan 9 20:53 comment.log
-rw-rw-r-- 1 nagios nagios 0 Jan 9 20:53 downtime.log
-rw-r--r-- 1 root root 5 Jan 9 18:04 nagios.lock
-rw-r--r-- 1 nagios nagios 822693 Jan 9 21:23 nagios.log
drwxrwsr-x 2 nagios nagiocmd 4096 Jan 9 21:33 rw
-rw-rw-r-- 1 nagios nagios 42078 Jan 9 21:47 status.log
-rw-rw-r-- 1 nagios nagios 31332 Jan 9 20:53 status.sav

and ...

[obeauche@mrtg var]# cat /etc/group | grep nagio
apache:x:48:otrs,nagios,nagiocmd
nagios:x:503:apache
nagiocmd:x:505:nagios,apache

and ...

command_file=/usr/local/nagios/var/rw/nagios.cmd
check_external_commands=1
log_external_commands=1



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
N agios-users mailing list
Nagios-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/nagios-users



Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise