Check_db2 monitoring plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srivemp1
Posts: 18
Joined: Thu Sep 19, 2019 7:25 am

Check_db2 monitoring plugin

Post by srivemp1 »

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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Check_db2 monitoring plugin

Post by ssax »

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:

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 
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.
srivemp1
Posts: 18
Joined: Thu Sep 19, 2019 7:25 am

Re: Check_db2 monitoring plugin

Post by srivemp1 »

Can you help us with option 1?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Check_db2 monitoring plugin

Post by ssax »

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!
Locked