I was following steps to update our snmp.conf file when I ended up with only 1 line in it that contains:
mibs +ALL
Prior to issuing the command to add this line, I did not create a copy of my snmp.conf file. I fear I've overwritten some important info. I have NOT restarted the httpd service yet.
1) Will this single entry be sufficient to allow our snmp queries to continue to work?
2) If I have to restore my snmp.conf file, how can I do this? I have a recent weekly backup in /store/backups and a recent snapshot.
3) I'm not sure what was in our snmp.conf file prior to be overwritten, thus the restore looks most viable.
Lost the contents of our /etc/snmp/snmp.conf file
-
- Posts: 14
- Joined: Thu Mar 28, 2019 1:20 pm
Re: Lost the contents of our /etc/snmp/snmp.conf file
Having mibs +ALL basically loads up all of the mibs that the system has access to. As a result, this may throw a bunch of warnings. But it should be just fine. Alternately, you can specify which mib file(s) you would like to load. Like so.
If you would rather just restore the snmp.conf file, you can download a backup, and extract the snmp.conf file. I am attaching a screenshot for reference. Just extract the snmp.conf file from the etc-snmp.tar.gz file within the Nagios backup, and either get it copied over to the server, or copy/pate the contents. Whatever you're most comfortable with.
Code: Select all
mibs +MyNetworking-MIB
mibs+MyBrandNameServer-MIB
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 14
- Joined: Thu Mar 28, 2019 1:20 pm
Re: Lost the contents of our /etc/snmp/snmp.conf file
Awesome - thanks for the reply!
Feel free to lock this thread with my thanks.
Feel free to lock this thread with my thanks.
-
- Posts: 14
- Joined: Thu Mar 28, 2019 1:20 pm
Re: Lost the contents of our /etc/snmp/snmp.conf file
I was able to restore the latest backup snmp.conf file and it has the very same line as my updated one did.
I made this way too difficult. But at least I can restore single files now.
Thanks again!

I made this way too difficult. But at least I can restore single files now.
Thanks again!