i.g. nagiosでip_conntrackの値を取得できるようにするプラグインをインストールする
# cd /usr/lib64/nagios/plugins/ # wget https://raw.github.com/S1100/nagios-plugin-ip_conntrack/master/check_ip_conntrack.pl # chmod 755 check_ip_conntrack.pl
# time /usr/lib64/nagios/plugins/check_ip_conntrack.pl -w 80 -c 90 ip_conntrack OK - table usage = 5.9%, count = 3893 real 0m0.008s user 0m0.007s sys 0m0.001s
# vi /etc/nagios/nrpe.cfg
# ip_contrack command[check_ip_conntrack]=/usr/lib64/nagios/plugins/check_ip_conntrack.pl -w 80 -c 90
# /usr/lib64/nagios/plugins/check_nrpe -H db13 -c check_ip_conntrack ip_conntrack OK - table usage = 6.5%, count = 4291
# vi /etc/nagios/servers/groups/DbBackup_group.cfg
### ip_contrack define service{ use backup-service hostgroup_name dbb-hosts service_description check_ip_conntrack check_command check_nrpe!check_ip_conntrack notifications_enabled 1 }
# nagios -v /etc/nagios/nagios.cfg Nagios Core 3.2.3 ~省略~ Total Warnings: 0 Total Errors: 0 Things look okay - No serious problems were detected during the pre-flight check
/etc/init.d/nagios reload