From: Jamie G. <jg...@sp...> - 2012-04-26 12:27:36
|
Thanks for the response Alejandro, When specifying the username and password, it returns a different error: 500 Internal Server Error at /usr/share/opennms/bin/provision.pl line 620 main::put(x.x.x.x, 'community=public', '/snmpConfig') called at /usr/share/opennms/bin/provision.pl line 548 main::cmd_snmp('set', x.x.x.x, 'public') called at /usr/share/opennms/bin/provision.pl line 110 Jamie From: Alejandro Galue [mailto:ag...@sy...] Sent: Thursday, April 26, 2012 7:53 AM To: General OpenNMS Discussion Subject: Re: [opennms-discuss] Configure Discovery via web interface not saving changes to discovery-configuration.xml Hello, On Apr 25, 2012, at 10:52 PM, Jamie Goggin wrote: 401 Bad credentials at /usr/share/opennms/bin/provision.pl line 620 main::put(x.x.x.x, 'community=CommunityString', '/snmpConfig') called at /usr/share/opennms/bin/provision.pl line 548 main::cmd_snmp('set', x.x.x.x, 'CommunityString') called at /usr/share/opennms/bin/provision.pl line 110 The command has been run as root, so I don't know what credentials it needs to run. It is also still not updating by the web interface. You must use the same credentials used to access the administration pages of the WebUI of OpenNMS. The script provision.pl uses the REST API to perform all the operations. If you execute the script without parameters you'll see some useful information: --username The username to use when connecting to the RESTful API. This user must have administrative privileges in the OpenNMS web UI. Defaults to 'admin'. --password The password associated with the administrative username specified in -username. Defaults to 'admin'. Alejandro. |