Page 1 of 1

Failed to restart snmptt service

Posted: Thu Feb 28, 2013 4:46 pm
by eclypse
I receive this message when I attempt to add and process MIB's. I'm wondering if some file permissions are incorrect.

Code: Select all

Total translations: 37
Successful translations: 37
Failed translations: 0

Failed to restart snmptt service
Does the init.d script need to be owned by the nagios group?

Code: Select all

# ls -al /etc/init.d/snmptt
-rwxr-xr-x 1 root root 1720 Nov  1 17:02 /etc/init.d/snmptt
I have already made the following changes per the interface's suggestion:

Code: Select all

chown root.nagios /etc/snmp/snmptt.ini /etc/snmp
 1534  chmod g+w /etc/snmp/snmptt.ini /etc/snmp

Re: Failed to restart snmptt service

Posted: Thu Feb 28, 2013 5:34 pm
by scottwilkerson
eclypse wrote:Does the init.d script need to be owned by the nagios group?
No, this should be set via sudo

Was the service running already?

Code: Select all

service snmptt status
open

Code: Select all

visudo
At the bottom verify you have a line

Code: Select all

NAGIOSXIWEB ALL = NOPASSWD:/etc/init.d/snmptt restart