Hi Team,
Thanks for your further input.
So based on your command, do we need to create 100 lines of commands to cover all the DB connections if Nagios is monitoring 100 DBs.
any other way to narrow down the lines of scripts or better way you can suggest.
Thank you.
Multiple Nagios session in the database
Re: Multiple Nagios session in the database
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: Multiple Nagios session in the database
You should be able to create a command called check_netstat, with this as the command line -
From there, assign a service to those hosts you'd like to monitor that have a DB as it will populate the $HOSTADDRESS$ from there.
Code: Select all
netstat|grep $hostaddress$:port|wc -l
Former Nagios Employee