Red Hat Bugzilla – Bug 535786
autodiscover SNMP address and port by parsing snmpd.conf when discovering Apache servers
Last modified: 2013-09-03 12:58:02 EDT
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-2446
Deon, we should doc this as a known issue.
Just to check, the issue is that the discovery process does *not* get the address and port from the .conf file?
Correct, the discovery always just sets the SNMP host property to "127.0.0.1" and the port property to "1610". If these are not the correct values, it's up to the user to update the connection properties via the Apache resource's Inventory>Connection tab in the GUI.
This is in the known issues:
This has been implemented in master by commit 9bf39010bcf60ad0cd52876be3f1255329cf656e
Verifying that I am seeing the SNMP host property set to 127.0.0.1 and the port to 1610 for my Apache servers.
127.0.0.1 and 1610 are default values.
Please re-test this by changing the configuration in snmpd.conf to some non-standard values and running the discovery. The discovered values should of course correspond to the ones in the config file, not the default.
adding information on Apache SNMP installation and configuration .... for my own reference.
...specifically step #8 on changing port
Verified on build#140 (Version: 4.1.0-SNAPSHOT Build Number: 5905b70)
Modified the file /etc/httpd/conf/snmpd.conf with below line:
Discovered apache resource. Navigated to the Inventory->Connection Settings tab of the apache resource and verified that the field 'SNMP Agent Host' displays value '10.65.193.104' and the field 'SNMP Agent Port' displays the value '8161'. Please refer the attached screenshot.
Marking as verified.
Created attachment 505203 [details]
Bulk closing of old issues that are in VERIFIED state.