Nagios XI - API to Update Macro Passwords
Posted: Thu Jan 23, 2020 1:18 pm
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
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