[SOLVED] snmpd service not starting on 7.9
by slack27 from LinuxQuestions.org on (#6PGCW)
Hi,
I am running Centos 7.9. snmpd service was running on this. I was asked to put some additional string, which I did and restart snmpd service and it never came up. I removed those additional entries and still it didn't come. I am not getting any clue from logs too. Any suggestions or pointers I should look into ?
Code:[root@linux-client ~]# systemctl start snmpd.service
Job for snmpd.service failed because a timeout was exceeded. See "systemctl status snmpd.service" and "journalctl -xe" for details.
[root@linux-client ~]# systemctl status snmpd.service
snmpd.service - Simple Network Management Protocol (SNMP) Daemon.
Loaded: loaded (/usr/lib/systemd/system/snmpd.service; enabled; vendor preset: disabled)
Active: failed (Result: timeout) since Thu 2024-07-25 23:48:23 UTC; 5s ago
Process: 37227 ExecStart=/usr/sbin/snmpd $OPTIONS -f (code=exited, status=0/SUCCESS)
Main PID: 37227 (code=exited, status=0/SUCCESS)
Jul 25 23:46:47 linux-client systemd[1]: Starting Simple Network Management Protocol (SNMP) Daemon....
Jul 25 23:48:17 linux-client systemd[1]: snmpd.service start operation timed out. Terminating.
Jul 25 23:48:23 linux-client systemd[1]: Failed to start Simple Network Management Protocol (SNMP) Daemon..
Jul 25 23:48:23 linux-client systemd[1]: Unit snmpd.service entered failed state.
Jul 25 23:48:23 linux-client systemd[1]: snmpd.service failed.
[root@linux-client ~]#
[root@linux-client ~]# cat /var/log/snmp.log
NET-SNMP version 5.7.2
Received TERM or STOP signal... shutting down...
[root@linux-client ~]#/var/log/messages shows -
Code:Jul 25 23:46:23 linux-client-prod dbus[1232]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
Jul 25 23:46:23 linux-client-prod dbus[1232]: [system] Successfully activated service 'org.freedesktop.problems'
Jul 25 23:46:47 linux-client-prod systemd: Starting Simple Network Management Protocol (SNMP) Daemon....
Jul 25 23:48:17 linux-client-prod systemd: snmpd.service start operation timed out. Terminating.
Jul 25 23:48:23 linux-client-prod systemd: Failed to start Simple Network Management Protocol (SNMP) Daemon..
Jul 25 23:48:23 linux-client-prod systemd: Unit snmpd.service entered failed state.
Jul 25 23:48:23 linux-client-prod systemd: snmpd.service failed.Thanks
EDIT - Looks like there were some bad entries in snmpd.conf. After fixing those, it worked, hence resolving this.
I am running Centos 7.9. snmpd service was running on this. I was asked to put some additional string, which I did and restart snmpd service and it never came up. I removed those additional entries and still it didn't come. I am not getting any clue from logs too. Any suggestions or pointers I should look into ?
Code:[root@linux-client ~]# systemctl start snmpd.service
Job for snmpd.service failed because a timeout was exceeded. See "systemctl status snmpd.service" and "journalctl -xe" for details.
[root@linux-client ~]# systemctl status snmpd.service
snmpd.service - Simple Network Management Protocol (SNMP) Daemon.
Loaded: loaded (/usr/lib/systemd/system/snmpd.service; enabled; vendor preset: disabled)
Active: failed (Result: timeout) since Thu 2024-07-25 23:48:23 UTC; 5s ago
Process: 37227 ExecStart=/usr/sbin/snmpd $OPTIONS -f (code=exited, status=0/SUCCESS)
Main PID: 37227 (code=exited, status=0/SUCCESS)
Jul 25 23:46:47 linux-client systemd[1]: Starting Simple Network Management Protocol (SNMP) Daemon....
Jul 25 23:48:17 linux-client systemd[1]: snmpd.service start operation timed out. Terminating.
Jul 25 23:48:23 linux-client systemd[1]: Failed to start Simple Network Management Protocol (SNMP) Daemon..
Jul 25 23:48:23 linux-client systemd[1]: Unit snmpd.service entered failed state.
Jul 25 23:48:23 linux-client systemd[1]: snmpd.service failed.
[root@linux-client ~]#
[root@linux-client ~]# cat /var/log/snmp.log
NET-SNMP version 5.7.2
Received TERM or STOP signal... shutting down...
[root@linux-client ~]#/var/log/messages shows -
Code:Jul 25 23:46:23 linux-client-prod dbus[1232]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
Jul 25 23:46:23 linux-client-prod dbus[1232]: [system] Successfully activated service 'org.freedesktop.problems'
Jul 25 23:46:47 linux-client-prod systemd: Starting Simple Network Management Protocol (SNMP) Daemon....
Jul 25 23:48:17 linux-client-prod systemd: snmpd.service start operation timed out. Terminating.
Jul 25 23:48:23 linux-client-prod systemd: Failed to start Simple Network Management Protocol (SNMP) Daemon..
Jul 25 23:48:23 linux-client-prod systemd: Unit snmpd.service entered failed state.
Jul 25 23:48:23 linux-client-prod systemd: snmpd.service failed.Thanks
EDIT - Looks like there were some bad entries in snmpd.conf. After fixing those, it worked, hence resolving this.