Page 1 of 1
Changing SNMP community for networtk device
Posted: Mon Jul 03, 2017 10:40 am
by vmesquita
Hello,
I would like to change the SNMP community for network devices. For Status checks it seems fairly easy, just edit the service check (although it would be good to have a way of doing it all at once, instead of one by one). However I can't find it where I should change for Bandwidth checks. Where can I find this?
Re: Changing SNMP community for networtk device
Posted: Wed Jul 05, 2017 10:55 am
by tmcdonald
Bandwidth checks are performed a little differently, in that they use MRTG under the hood so there is another layer of configs for each check. While you could edit the MRTG configs by hand, it would probably be easiest to re-run the wizard with the new value.
Re: Changing SNMP community for networtk device
Posted: Thu Jul 06, 2017 3:47 pm
by vmesquita
Thanks! I was able to find the mrtg config files and it seems quite easy to change (We don't want to lose the bandwidth usage history). However I can't find how to restart the mrtg service so the config files are read again. How do I go about it?
Re: Changing SNMP community for networtk device
Posted: Thu Jul 06, 2017 3:53 pm
by tmcdonald
That's just on a 5-minute cron, give it some time and it should pick all that up.
Re: Changing SNMP community for networtk device
Posted: Wed Jul 19, 2017 9:47 am
by vmesquita
Hi,
I was able to make the change on the status checks easily, I just changed the config and worked. However I can't get it to work on the bandwidth checks. I edited the file /etc/mrtg/conf.d/[switch IP].cfg and replaced all occurrences of "public" with the new community name, waited for a day but the bandwidth information comes as zero for all interfaces (which is incorrect). Is there somewhereelse I need to change something?
Re: Changing SNMP community for networtk device
Posted: Wed Jul 19, 2017 2:10 pm
by dwhitfield
What language is the system?
https://support.nagios.com/kb/article.php?id=10 may be of use.
Regardless of language, you may want to take a look at
https://support.nagios.com/kb/article.php?id=29
If neither of those resolves the issue, can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the ***Download Profile*** button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info). This will give us access to many of the logs we would otherwise ask for individually. If security is a concern, you can unzip the profile take out what you like, and then zip it up again. We may end up needing something you remove, but we can ask for that specifically.
After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.
Re: Changing SNMP community for networtk device
Posted: Mon Jul 24, 2017 4:52 pm
by vmesquita
The problem actually was that we chose a new community name with "@" in it, and this was incompatible with the config file. We tried with a name with only regular letters and number and it worked fine. Thanks for all help!
Re: Changing SNMP community for networtk device
Posted: Tue Jul 25, 2017 9:03 am
by bolson
Closing topic as resolved.
Thank you for using the Nagios Support Forum.