Nagios XI - API to Update Macro Passwords

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bsanjay
Posts: 86
Joined: Mon Apr 29, 2019 9:38 am

Nagios XI - API to Update Macro Passwords

Post by bsanjay »

Hello Team,
We are trying to automate some process like changing macro values or passwords in Nagios XI. Please let us know if there is any API available to achieve this functionality.

Let's say , if I have a one service monitoring which is using macro $USER8$ and one plain password as part of Nagios check. If some day this password changes on remote DB Server then instead of manually changing both the macro value and plain password in Nagios XI check, I want to invoke some API and update this passwords automatically.

Example Nagios Check:
/usr/local/nagios/libexec/check_oracle_health --connect 'mydbserver:8822/prfc' --username $USER8$ --password secondpassword --mode connection-time --warning 1 --critical 5

$USER8$=firstpassword
Plain Password = secondpassword


Please let me know in case of any queries.

Best Regards,
BSanjay
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Nagios XI - API to Update Macro Passwords

Post by benjaminsmith »

Hi BSanjay,

That's currently not supported vis the REST API. I can submit a feature request on your behalf if you'd like. Please keep in mind that the decision to implement the enhancement is at the discretion of our development team.

As a workaround, you could create a shell script to update/modify the file (/usr/local/nagios/etc/resource.cfg).
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
bsanjay
Posts: 86
Joined: Mon Apr 29, 2019 9:38 am

Re: Nagios XI - API to Update Macro Passwords

Post by bsanjay »

Hello Benjaminsmith,
Thanks for the response. Please submit a feature request for the same.

Best Regards,
BSanjay
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Nagios XI - API to Update Macro Passwords

Post by benjaminsmith »

Hi BSanjay,
Thanks for the response. Please submit a feature request for the same.

Will do. Please keep in mind that the decision to implement the enhancement is at the discretion of our development team.

Thank you for using Nagios.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked