Hi,
I am using check_db2_health plugin https://exchange.nagios.org/directory/P ... th/details to monitor the db
Here I should use this plugin like this
/usr/local/nagios/libexec/check_db2_health --hostname 192.168.0.119 --port 50000 --username=lcuser --password=password --mode=connection-time --database=SAMPLE
But user don't want to mention the password here while running the command and if he mention also it will expire every 90 days.
Is there any way without providing password to monitor them using this plugin
Check_db2 monitoring plugin
Re: Check_db2 monitoring plugin
The plugin doesn't support it so your options are:
1. Modify the plugin to do what you want (you would need to architect/develop the new functionality)
2. Setup a user macro that has the password defined and use the user macro $USERn$ in place of the password in the XI configs:
https://assets.nagios.com/downloads/nag ... ponent.pdf
NOTE that the user macro will not work from the CLI like this:
But it would work in the CCM test command and after applying configuration since it's XI that is expanding the user macros.
So go edit the service in the CCM, and change the --password=password to --password='$USER9$' (or whatever your next user macro number is) and it should pop up a blue icon you can click on that will allow you to enter the password. Then save and apply configuration.
1. Modify the plugin to do what you want (you would need to architect/develop the new functionality)
2. Setup a user macro that has the password defined and use the user macro $USERn$ in place of the password in the XI configs:
https://assets.nagios.com/downloads/nag ... ponent.pdf
NOTE that the user macro will not work from the CLI like this:
Code: Select all
/usr/local/nagios/libexec/check_db2_health --hostname 192.168.0.119 --port 50000 --username=lcuser --password='$USERn$' --mode=connection-time --database=SAMPLE
So go edit the service in the CCM, and change the --password=password to --password='$USER9$' (or whatever your next user macro number is) and it should pop up a blue icon you can click on that will allow you to enter the password. Then save and apply configuration.
Re: Check_db2 monitoring plugin
Can you help us with option 1?
Re: Check_db2 monitoring plugin
I apologize but custom development of new functionality is not included in support, that is why I listed that you will need to architect/develop it. We do offer paid custom development, if that is something you are interested in you can email [email protected] (or call) to get more information/a quote.
Thank you!
Thank you!