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

2013-07-25 Thread Thilakraj . Shanmugam
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 Ok - if I look at your output, manually, when

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

2013-07-25 Thread Thilakraj . Shanmugam
: Thilakraj.Shanmugam [mailto:thilakraj.shanmu...@canberra.edu.au] Sent: Thursday, 25 July 2013 5:37 PM To: Nagios Users List Subject: Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring Hello All, I have found the helpful fix after much of struggle, it might be useful someone want

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

2013-06-21 Thread Percy Kwong
manually, are you doing this as the same user that check_nrpe will use ? Regards, Deborah *From:*Thilakraj.Shanmugam [mailto:thilakraj.shanmu...@canberra.edu.au] *Sent:* 14 May 2013 08:43 *To:* nagios-users@lists.sourceforge.net *Subject:* [Nagios-users] Nagios Plugin for IPTABLES Monitoring

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

2013-05-31 Thread C. Bensend
: [Nagios-users] Nagios Plugin for IPTABLES Monitoring 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

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

2013-05-31 Thread Thilakraj . Shanmugam
$? 0 [nagios@servef ~]$ Yes, Server = zurich -Original Message- From: C. Bensend [mailto:be...@bennyvision.com] Sent: Friday, 31 May 2013 8:05 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring Ran as nagios user and please find

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

2013-05-31 Thread C. Bensend
: Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring 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

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

2013-05-30 Thread C. Bensend
Subject: Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring Where's your sudoers definition that allows the nagios user to run any commands via sudo? And what does /var/log/secure (or equivalent) think about the nagios user trying to run sudo? I have tested with nagios user as well

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
@lists.sourceforge.netmailto:nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring Where's your sudoers definition that allows the nagios user to run any commands via sudo? And what does /var/log/secure (or equivalent) think about the nagios user

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

2013-05-29 Thread C. Bensend
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 Ok - if I look at your output, manually, when the plugin is run

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

2013-05-29 Thread Thilakraj . Shanmugam
closed for user nagios -Original Message- From: C. Bensend [mailto:be...@bennyvision.com] Sent: Wednesday, 29 May 2013 7:59 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring Where's your sudoers definition that allows the nagios

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

2013-05-28 Thread Thilakraj . Shanmugam
: Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring Ok - if I look at your output, manually, when the plugin is run as the root user it produces the correct result. But, you haven't said what the nrpe user is that is running on the remote node and whether the same manual run of the check

[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

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

2013-05-14 Thread Deborah Martin
] Sent: 14 May 2013 08:43 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios Plugin for IPTABLES Monitoring 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

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

2013-05-14 Thread Thilakraj . Shanmugam
is not running May 14 18:52:28 abc nrpe[31158]: Return Code: 2, Output: Firewall is not running Kind Regards, Thilak From: Deborah Martin [mailto:deborah.mar...@kognitio.com] Sent: Tuesday, 14 May 2013 6:44 PM To: Nagios Users List Subject: Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring

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

2013-05-14 Thread Joerg Linge
Kind Regards, Thilak From: Deborah Martin [mailto:deborah.mar...@kognitio.com] Sent: Tuesday, 14 May 2013 6:44 PM To: Nagios Users List Subject: Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring Hi, What is the wrong output being returned ? This might give us all a clue

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

2013-05-14 Thread Deborah Martin
...@canberra.edu.au] Sent: 14 May 2013 08:43 To: nagios-users@lists.sourceforge.netmailto:nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios Plugin for IPTABLES Monitoring Greetings! Could someone send me nagios plugin which is tested and works well for monitoring IPTABLES in Linux. I

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

2013-05-14 Thread Sunil Sankar
, Deborah ** ** *From:* Thilakraj.Shanmugam [mailto:thilakraj.shanmu...@canberra.edu.au] *Sent:* 14 May 2013 09:58 *To:* Nagios Users List *Subject:* Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring ** ** Hi Deborah, Thanks for the response.. please find the details below

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

2013-05-14 Thread Werner Flamme
...@kognitio.com] *Sent:* Tuesday, 14 May 2013 6:44 PM *To:* Nagios Users List *Subject:* Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring ** ** Hi, What is the wrong output being returned ? This might give us all a clue as to the cause of the problem. When you run the check

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

2013-05-14 Thread Roger Bell_West
On Tue, May 14, 2013 at 01:12:23PM +0200, Werner Flamme wrote: Sunil Sankar [14.05.2013 12:41]: try setting the suid for this script Set a script suid? Which operating system supports that? Better would be to enable the NRPE user to run a specific iptables invocation via sudoers.