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?
Changing SNMP community for networtk device
Re: Changing SNMP community for networtk device
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.
Former Nagios employee
Re: Changing SNMP community for networtk device
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
That's just on a 5-minute cron, give it some time and it should pick all that up.
Former Nagios employee
Re: Changing SNMP community for networtk device
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?
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?
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Changing SNMP community for networtk device
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.
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
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!
-
bolson
Re: Changing SNMP community for networtk device
Closing topic as resolved.
Thank you for using the Nagios Support Forum.
Thank you for using the Nagios Support Forum.