:
These are a collection of local modules for monitoring Mongodb from outside, with a software agent.
Module data
module_begin
module_name MongoDB_Status
module_type generic_proc
module_exec ps aux | grep mongod | grep -v grep | wc -l
module_end
module_begin
module_name MongoDB_Opened_Files
module_type generic_data
module_exec lsof -l | grep mongod | wc -l
module_end
module_begin
module_name MongoDB_Memory%
module_type generic_data
module_exec ps aux | grep mongod | grep -v grep | awk '{ print $4 }'
module_end
module_begin
module_name MongoDB_CPU%
module_type generic_data
module_exec ps aux | grep mongod | grep -v grep | awk '{ print $3 }'
module_end
module_plugin grep_log /var/log/mongodb/mongodb.log MongoDB_logfile .
(Visited 385 times, 1 visits today)

