Page 1 of 1
How do I change the SNMP community string on a host
Posted: Tue Mar 21, 2017 4:20 pm
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,
Re: How do I change the SNMP community string on a host
Posted: Tue Mar 21, 2017 4:59 pm
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.
Re: How do I change the SNMP community string on a host
Posted: Wed Mar 22, 2017 4:31 pm
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
Re: How do I change the SNMP community string on a host
Posted: Wed Mar 22, 2017 4:36 pm
by dwhitfield
You could also do it in the Bulk Modifications Tool, if you are an Enterprise customer.
Re: How do I change the SNMP community string on a host
Posted: Thu Mar 23, 2017 12:06 pm
by pclements
Thank you all for your help.
Re: How do I change the SNMP community string on a host
Posted: Thu Mar 23, 2017 12:21 pm
by cdienger
Are we okay closing the thread at this point?
Re: How do I change the SNMP community string on a host
Posted: Thu Mar 23, 2017 4:13 pm
by pclements
Yes, thank you.