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

Olivier Beauchemin (Accolade Group) olivier at accoladegroup.net
Fri Jan 10 03:53:42 CET 2003


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 at 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 nagios   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 at 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




More information about the Users mailing list