How do I change the SNMP community string on a host

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
pclements
Posts: 16
Joined: Thu Jan 12, 2017 5:20 pm

How do I change the SNMP community string on a host

Post by pclements »

First I am new to Nagios.

How do I display the configuration of a host including the SNMP string monitored properties (hostname, date time, status, interfaces, etc) and then change the community sting. I am using the latest version of Nagios XI on CentOS. Another question How do I globally change the SNMP community string for all hosts at the same time?

Thank you,
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: How do I change the SNMP community string on a host

Post by avandemore »

It depends on exactly what context you are talking about, but the service definition would be the most common place. Using a template, you can change the template and have it apply to all the services using it.
Previous Nagios employee
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How do I change the SNMP community string on a host

Post by rkennedy »

To build off of what @avandemore mentioned, templates are a really good way to control things on a large scale. (in conjunction with host groups)

If you're just looking at a dynamic way to control only the community string, take a look at how your checks are setup. You may be able to use a $USER#$ macro from resource.cfg to populate anywhere in the XI instance. https://assets.nagios.com/downloads/nag ... Macros.pdf
Former Nagios Employee
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: How do I change the SNMP community string on a host

Post by dwhitfield »

You could also do it in the Bulk Modifications Tool, if you are an Enterprise customer.
pclements
Posts: 16
Joined: Thu Jan 12, 2017 5:20 pm

Re: How do I change the SNMP community string on a host

Post by pclements »

Thank you all for your help.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How do I change the SNMP community string on a host

Post by cdienger »

Are we okay closing the thread at this point?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
pclements
Posts: 16
Joined: Thu Jan 12, 2017 5:20 pm

Re: How do I change the SNMP community string on a host

Post by pclements »

Yes, thank you.
Locked