Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring

2013-05-31 Thread C. Bensend
Ran as nagios user and please find the details below. ( iptables Stopped) [nagios@server ~]$ /usr/bin/sudo /sbin/iptables -nvL | /bin/grep 'Chain' | /bin/awk '{ print $2 }'| /bin/grep Cid | /usr/bin/wc -l| echo $? 0 That 'echo $?' was supposed to be on the next line, not a continuation of

Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring

2013-05-31 Thread Thilakraj . Shanmugam
Please find the details.. [nagios@server ~]$ /usr/bin/sudo /sbin/iptables -nvL | /bin/grep 'Chain' | /bin/awk '{ print $2 }'| /bin/grep Cid | /usr/bin/wc -l 0 [nagios@server ~]$ /usr/bin/sudo /sbin/iptables -nvL | /bin/grep Cid | /usr/bin/wc -l 0 [nagios@server ~]$ [nagios@server ~]$ echo $?

Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring

2013-05-31 Thread C. Bensend
OK. So, what differs when you try that first command when iptables *is* running? Please find the details.. [nagios@server ~]$ /usr/bin/sudo /sbin/iptables -nvL | /bin/grep 'Chain' | /bin/awk '{ print $2 }'| /bin/grep Cid | /usr/bin/wc -l 0 [nagios@server ~]$ /usr/bin/sudo