Submit Downtime Commands

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mitchsmith
Posts: 33
Joined: Mon Apr 04, 2011 7:26 am

Submit Downtime Commands

Post by mitchsmith »

Hi,

I am facing an issue with the ability to submit commands via the web interface.

For example if i try to set host downtime, when i click commit i get the following error message
Sorry, but you are not authorized to commit the specified command.
Read the section of the documentation that deals with authentication and authorization in the CGIs for more information.

Return from whence you came
I have set access in the cmd.cgi to allow access to all users (see below)

Code: Select all

authorized_for_system_commands=*
authorized_for_all_services=*
authorized_for_all_hosts=*
authorized_for_all_service_commands=*
authorized_for_all_host_commands=*
and my nagios command file has the following permissions

Code: Select all

prw-rw---- 1 nagios nagcmd 0 Jun 30 10:52 /var/nagios/rw/nagios.cmd
Is there something I am missing?

I would really appreciate any help,

Thanks

Mitchell
mitchsmith
Posts: 33
Joined: Mon Apr 04, 2011 7:26 am

Re: Submit Downtime Commands

Post by mitchsmith »

After alot of banging my head against my screen I solved it!

The apache user needs to be a member of the nagios.cmd group.

so in the httpd.conf file I set

Code: Select all

User apache2
Group nagcmd
This works as this is the user under which apache2 processes commands to files with.
Locked