Re: [Nagios-users] check_fping timing

2008-10-18 Thread hiren
On Thu, 2008-10-16 at 10:03 -0400, Michael W. Lucas wrote:
 Hi,
 
 At times, latency rises on my network.  I'm trying to give check_fping
 a high timeout, 10 seconds to warn and 12 for critical.  It seems that
 check_fping returns too quickly, however.  Here, I've cranked up the
 warn and critical levels to an absurd level for illustration purposes,
 and timed the process.
 
 # /usr/bin/time ./check_fping -H roxsw001 -w 100.0,80% -c 1200.0,100% 
 -b 56
 FPING CRITICAL - roxsw001 (loss=100% )|loss=100%;80;100;0;100
 0.51 real 0.00 user 0.00 sys
 
 The check returns in half a second.  Obviously, my timeout isn't working.
 
 Any thoughts on why this is, or what I can do?  Surely someone else is
 checking hosts on an intermittently slow network?

seems like the values passed to -w and -c are round trip times that the
check uses to gauge on. it isn't passing those values to fping when it
runs fping. all it seems to pass is packet size, packet count and
server.
perhaps paste the results after running in verbose mode.
if fping accepts a timeout, perhaps the check should be passing that to
fping.

the version of check_fping I'm looking at is:
nagios-plugins-trunk-200809161200

 
 Thanks,
 ==ml
 


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] check_fping timing

2008-10-16 Thread Michael W. Lucas

Hi,

At times, latency rises on my network.  I'm trying to give check_fping
a high timeout, 10 seconds to warn and 12 for critical.  It seems that
check_fping returns too quickly, however.  Here, I've cranked up the
warn and critical levels to an absurd level for illustration purposes,
and timed the process.

# /usr/bin/time ./check_fping -H roxsw001 -w 100.0,80% -c 1200.0,100% 
-b 56
FPING CRITICAL - roxsw001 (loss=100% )|loss=100%;80;100;0;100
0.51 real 0.00 user 0.00 sys

The check returns in half a second.  Obviously, my timeout isn't working.

Any thoughts on why this is, or what I can do?  Surely someone else is
checking hosts on an intermittently slow network?

Thanks,
==ml

-- 
Michael W. Lucas[EMAIL PROTECTED], [EMAIL PROTECTED]
http://www.BlackHelicopters.org/~mwlucas/
My pessimism extends to the point of even suspecting the sincerity of
  the pessimists. -- Jean Rostand, French biologist and philosopher

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_fping

2007-01-21 Thread Az
Lars Stavholm wrote:
 I'm trying to use the check_fping plugin and when
 I run it separately on the command line it works
 just fine, but when I let nagios run it I always
 get a warning status. Anyone seen this?
   
Have you tried running fping itself as the nagios user? You'll probably 
get the following...

[EMAIL PROTECTED]:~$ /usr/local/sbin/fping
This program can only be run by root, or it must be setuid root.

Thus, you'll need to address this before the check_fping plugin will work.

Cheers.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] check_fping

2007-01-21 Thread Lars Stavholm
Az wrote:
 Lars Stavholm wrote:
 I'm trying to use the check_fping plugin and when
 I run it separately on the command line it works
 just fine, but when I let nagios run it I always
 get a warning status. Anyone seen this?
   
 Have you tried running fping itself as the nagios user? You'll probably
 get the following...
 
 [EMAIL PROTECTED]:~$ /usr/local/sbin/fping
 This program can only be run by root, or it must be setuid root.
 
 Thus, you'll need to address this before the check_fping plugin will work.

Yes, thank you, I just discovered that. However, all I got from
check_fping was FPING - WARNING, somewhat misleading. A bit of
guesswork and trial and error showed that the check_fping has to
be executed as root. In my environment all nagios processes are
run by nagios, so I did the suid trick and now it works.

Thank you
/Lars

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


[Nagios-users] check_fping

2007-01-20 Thread Lars Stavholm
Hi All!

I'm trying to use the check_fping plugin and when
I run it separately on the command line it works
just fine, but when I let nagios run it I always
get a warning status. Anyone seen this?

/Lars

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null