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

2013-05-30 Thread C. Bensend
I'm assuming that this check is running *on* the host 'zurich'? /var/log/secure should be listing an entry, if sudo is being run. Manually, *as the nagios user*, what happens when you do the following? /usr/bin/sudo /sbin/iptables -nvL | /bin/grep 'Chain' | \ /bin/awk '{ print $2 }'|

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

2013-05-30 Thread Eliezer Croitoru
Or instead use a specific REJECT rule on specific port that otherwise will work and test it via a small script that will return if ok or not.. can work like this: echo server startup on upper ports threaded. test a client on it. get result and close both server and client. can be very simple to

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

2013-05-30 Thread Thilakraj . Shanmugam
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 [nagios@server ~]$ /usr/bin/sudo /sbin/iptables -nvL Chain INPUT (policy