PDA

View Full Version : Nagios restart, reload sudo control


arikin
08-22-2008, 04:16 AM
I have installed nagios and centreon 1.4.x on Debian Etch.
I followed the instructions in the wiki.

My problem is that centreon can not restart the nagios daemon.
/etc/init.d/nagios2 restart

Centreon-->Configuration-->Nagios-->Export
Under the result section I select all YES, restart and click the Export button.

I look on the debain command line and nagios still has the same PID and the new settings are not being seen.

Is this a sudoer problem or something else? How can it be fixed? Or how should it be setup in the first place :-)

Guigui2607
08-22-2008, 09:09 AM
You can verify your /etc/sudoers file. Centreon may add this following lines:

#Add by Centreon installation script
User_Alias CENTREON= www-data
## Nagios Restart
CENTREON ALL = NOPASSWD: /etc/init.d/nagios2 restart
## Nagios reload
CENTREON ALL = NOPASSWD: /etc/init.d/nagios2 reload
## Snmptrapd Restart
CENTREON ALL = NOPASSWD: /etc/init.d/snmptrapd restart

Depending on the version of Centreon, you may find OREON instead of CENTREON in the sudoers file.

You can also verify the right of sudoers file: root:root [644]

I hope it help you :wink:

Sorry for my poor english...