Monitoring fluentd with Nagios

Here’s just a few Nagios command strings you can use to monitor fluentd. I’ve thrown in a check for elasticsearch in case you’re monitoring an EFK system.

For checking td-agent. We should have 2 process, parent and child…

/usr/local/nagios/libexec/check_procs -w 2:2 -C ruby -a td-agent

For checking vanilla fluentd. Be aware your version name may differ…

/usr/local/nagios/libexec/check_procs -w 2:2 -C fluentd1.9

Check tcp ports. You requirements will vary…

/usr/local/nagios/libexec/check_tcp -H hostname -p 24224
/usr/local/nagios/libexec/check_tcp -H hostname -p 24230
/usr/local/nagios/libexec/check_tcp -H hostname -p 42185
/usr/local/nagios/libexec/check_tcp -H hostname -p 42186
/usr/local/nagios/libexec/check_tcp -H hostname -p 42187

For checking there is an elasticsearch process..

/usr/local/nagios/libexec/check_procs -w 1:1 -C java -a elasticsearch

Leave a Reply