Submit Downtime Commands

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Submit Downtime Commands

Postby mitchsmith » Thu Jun 30, 2011 5:12 am

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

Postby mitchsmith » Thu Jul 07, 2011 6:28 am

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.
mitchsmith
 
Posts: 33
Joined: Mon Apr 04, 2011 7:26 am


Return to Nagios Core

Who is online

Users browsing this forum: MSN [Bot] and 3 guests