check_iptables
Posted: Tue Dec 31, 2013 9:54 am
I am trying to get the check_iptables plugin working to allow me to monitor one of our server's firewall rules. I have been looking at this problem long enough, the problem is proably staring me in the face, and I cannot see it.
My monitoring server is Nagios Core 3.4.1 on top of Debian Wheezy. The server I am monitoring is also Debian Wheezy.
The command configuration (check_iptables.cfg) is defined as follows.
define command{
command_name check_iptables
command_line /usr/lib/nagios/plugins/check_iptables.sh -T '$ARG1$' -r '$ARG2$'
}
The check is being called using the following
define service{
use generic-service
host_name DNS-SRVR-02
service_description IPTables
check_command check_iptables!INPUT!103
}
The result I am receiving is "Usage: /usr/lib/nagios/check_iptables.sh -T <table> -r <min rules>. I am able to run this command from the command line as the nagios user without any problem.
What am I missing?
Thank you in advance for your assistance, and I hope everyone has a happy new year.
Jay
My monitoring server is Nagios Core 3.4.1 on top of Debian Wheezy. The server I am monitoring is also Debian Wheezy.
The command configuration (check_iptables.cfg) is defined as follows.
define command{
command_name check_iptables
command_line /usr/lib/nagios/plugins/check_iptables.sh -T '$ARG1$' -r '$ARG2$'
}
The check is being called using the following
define service{
use generic-service
host_name DNS-SRVR-02
service_description IPTables
check_command check_iptables!INPUT!103
}
The result I am receiving is "Usage: /usr/lib/nagios/check_iptables.sh -T <table> -r <min rules>. I am able to run this command from the command line as the nagios user without any problem.
What am I missing?
Thank you in advance for your assistance, and I hope everyone has a happy new year.
Jay