Multiple Nagios session in the database

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Multiple Nagios session in the database

Post 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.
Thanks & Regards,
I2MP Team.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Multiple Nagios session in the database

Post 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.
Former Nagios Employee
Locked