Re: mongoDB Nagios Monitoring
Posted: Thu Dec 18, 2014 2:09 am
Ok back to some basics.
This is correct:
OR
This is correct:
This is NOT correct:
Your service definition should be:
This is correct:
Specifically, when logged onto the remote host you should be able to test "locally" executing:rmuhammadali wrote:2) command @ my client /etc/nagios/nrpe.cfg
Code: Select all
command[check_mongo_free]=/usr/lib64/nagios/plugins/check_mongodb -A connections -P 27017 -W 80 -C 90
Code: Select all
/usr/lib64/nagios/plugins/check_nrpe -H localhost -p 5666 -c check_mongo_freeCode: Select all
/usr/local/nagios/plugins/check_nrpe -H localhost -p 5666 -c check_mongo_freeThis is correct:
This is NOT required:rmuhammadali wrote:5) my configurations @ nagios server /etc/nagios/myconf
Code: Select all
define command { command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -t 160 }
This is because you have already defined all the parameters (test, port, warning, critical) on the remote host, so sending the arguments are not required.rmuhammadali wrote:5) my configurations @ nagios server /etc/nagios/myconf
Code: Select all
define command { command_name check_mongodb command_line $USER1$/check_mongodb.py -H $HOSTADDRESS$ -A $ARG1$ -P $ARG2$ -W $ARG3$ -C $ARG4$ }
This is NOT correct:
rmuhammadali wrote:5) my configurations @ nagios server /etc/nagios/myconf
Code: Select all
define service{ use generic-service host_name CENT service_description Mongo Free Connections check_command check_nrpe!check_mongo_free!connections!27017!70!80 }
Your service definition should be:
Code: Select all
define service{
use generic-service
host_name CENT
service_description Mongo Free Connections
check_command check_nrpe!check_mongo_free
}