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,
How do I change the SNMP community string on a host
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: How do I change the SNMP community string on a host
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
Re: How do I change the SNMP community string on a host
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
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
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
Thank you all for your help.
Re: How do I change the SNMP community string on a host
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.
Re: How do I change the SNMP community string on a host
Yes, thank you.