tissam89 |
04-05-2013 08:49 AM |
Run monitoring engine debug (-v) Error
Hi !
I have just installer FAN(Nagios+centreon+...) version 2.4 .but I have an error when I try to run monitoring engine debug :
Progress (10%)
Preparing environment... OK
Running debug mode... NOK
Aborted. [ + ][ - ] default
sudo: no tty present and no askpass program specified
But not when I run :
Generate Configuration Files
Move Export Files
Restart Monitoring Engine
Please help me to fix my problem .
this is the contain of my sudoers file :
Code:
## BEGIN: CENTREON SUDO
#Add by CENTREON installation script
User_Alias CENTREON=daemon,centreon
Defaults:CENTREON !requiretty
# Monitoring engine Restart
#CENTREON ALL = NOPASSWD: /etc/init.d/nagios* restart
CENTREON ALL = NOPASSWD: /etc/init.d/nagios restart
# Monitoring engine reload
#CENTREON ALL = NOPASSWD: /etc/init.d/nagios* reload
CENTREON ALL = NOPASSWD: /etc/init.d/nagios reload
# Monitoring engine test config
#CENTREON ALL = NOPASSWD: /usr/local/nagios/bin/nagios* -v *
#CENTREON ALL = NOPASSWD: /usr/local/nagios/bin/nagios -v *
CENTREON ALL = NOPASSWD: /usr/bin/nagios -v *
# Monitoring engine test for optim config
#CENTREON ALL = NOPASSWD: /usr/local/nagios/bin/nagios* -s *
# CENTREON ALL = NOPASSWD: /usr/local/nagios/bin/nagios -s *
CENTREON ALL = NOPASSWD: /usr/bin/nagios -s *
# Snmptrapd Restart
CENTREON ALL = NOPASSWD: /etc/init.d/snmptrapd restart
# Snmptt restart
CENTREON ALL = NOPASSWD: /etc/init.d/snmptt restart
# CentStorage Restart
CENTREON ALL = NOPASSWD: /etc/init.d/centstorage restart
# CentStorage stop
CENTREON ALL = NOPASSWD: /etc/init.d/centstorage stop
# CentStorage start
CENTREON ALL = NOPASSWD: /etc/init.d/centstorage start
# Broker engine Restart
#CENTREON ALL = NOPASSWD: /etc/init.d/ndo2db* restart
CENTREON ALL = NOPASSWD: /etc/init.d/ndo2db restart
# Broker engine reload
#CENTREON ALL = NOPASSWD: /etc/init.d/ndo2db* reload
CENTREON ALL = NOPASSWD: /etc/init.d/ndo2db reload
## END: CENTREON SUDO
Please help me
|