Lost the contents of our /etc/snmp/snmp.conf file

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
randlebailey
Posts: 14
Joined: Thu Mar 28, 2019 1:20 pm

Lost the contents of our /etc/snmp/snmp.conf file

Post by randlebailey »

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.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Lost the contents of our /etc/snmp/snmp.conf file

Post by mbellerue »

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.

Code: Select all

mibs +MyNetworking-MIB
mibs+MyBrandNameServer-MIB
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.
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!
randlebailey
Posts: 14
Joined: Thu Mar 28, 2019 1:20 pm

Re: Lost the contents of our /etc/snmp/snmp.conf file

Post by randlebailey »

Awesome - thanks for the reply!

Feel free to lock this thread with my thanks.
randlebailey
Posts: 14
Joined: Thu Mar 28, 2019 1:20 pm

Re: Lost the contents of our /etc/snmp/snmp.conf file

Post by randlebailey »

I was able to restore the latest backup snmp.conf file and it has the very same line as my updated one did. :roll:

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

Thanks again!
Locked