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
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 $?
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