Page 2 of 2

Re: Multiple Nagios session in the database

Posted: Tue Jan 19, 2016 8:03 am
by RIDS_I2MP
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.

Re: Multiple Nagios session in the database

Posted: Tue Jan 19, 2016 12:06 pm
by rkennedy
You should be able to create a command called check_netstat, with this as the command line -

Code: Select all

netstat|grep $hostaddress$:port|wc -l
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.