[Nagios-users] Nagios Plugin for IPTABLES Monitoring

2013-05-14 Thread Thilakraj . Shanmugam
Greetings! Could someone send me nagios plugin which is tested and works well for monitoring IPTABLES in Linux. I have tested below script but it is not returning correct output to nagios server. If I execute script manually, it shows correct output... But if I execute via ./check_nrpe - H l

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

2013-05-14 Thread Thilakraj . Shanmugam
Hi Deborah, Thanks for the response.. please find the details below. [root@abc libexec]# pwd /usr/local/nagios/libexec [root@abc libexec]# ./check_iptables.sh <- Executing manually script + IPT=/sbin/iptables + GREP=/bi

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

2013-05-28 Thread Thilakraj . Shanmugam
Hi Deborah et al, I have tested with nagios user as well.. still no luck with that. Could you some one update if you have any solution on this case. Kind Regards, Thilak From: Deborah Martin [mailto:deborah.mar...@kognitio.com] Sent: Tuesday, 14 May 2013 7:30 PM To: Nagios Users List Subject:

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

2013-05-29 Thread Thilakraj . Shanmugam
Please find the details Sudoers Definition:- nagios zurich= NOPASSWD: /sbin/iptables, /usr/local/nagios/libexec/check_iptables.sh, /usr/local/nagios/libexec/check_nrpe /var/log/secure: su: pam_unix(su:session): session opened for user nagios by root(uid=0) su: pam_unix(su:session): session cl

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 ACCEPT

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-07-25 Thread Thilakraj . Shanmugam
results. Good Luck! Kind Regards, Thilakraj Shanmugam From: Thilakraj.Shanmugam Sent: Wednesday, 29 May 2013 3:39 PM To: Nagios Users List Subject: RE: Nagios Plugin for IPTABLES Monitoring Hi Deborah et al, I have tested with nagios user as well.. still no luck with that. Could you some one

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

2013-07-25 Thread Thilakraj . Shanmugam
/iptables, /usr/local/nagios/libexec/check_nrpe Note: Do remember to mention your own server name Now you can test your plugin via check_NRPE and it will give you expected results. Good Luck! Kind Regards, Thilakraj Shanmugam From: Thilakraj.Shanmugam Sent: Wednesday, 29 May 2013