[Nagios-users] check_icmp/ping works but native ping fails

2009-03-25 Thread Richard Aseltine

Looks like I need an education here.

check_icmp and check_ping can check a particular device but native ping fails. 
Any help with understanding this would be great..

Thanks

Dick

_
Internet Explorer 8 – Now Available. Faster, safer, easier.
http://clk.atdmt.com/MRT/go/141323790/direct/01/--
___
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_icmp/ping works but native ping fails

2009-03-25 Thread Richard Aseltine


  ping PHIPACHP02OPE19 1   
no answer from PHIPACHP02OPE19

***

./check_ping -H PHIPACHP02OPE19 -w 1000.0,20% -c 2000.0,60%
OK - PHIPACHP02OPE19: rta 0.681ms, lost 0%|rta=0.681ms;1000.000;2000.000;0; 
pl=0%;20;60;; 

Still puzzled

Thanks




 From: m...@ena.com
 To: nagios-users@lists.sourceforge.net
 Date: Wed, 25 Mar 2009 14:58:29 -0500
 Subject: Re: [Nagios-users] check_icmp/ping works but native ping fails
 
 
 On Mar 25, 2009, at 12:54 PM, Richard Aseltine wrote:
 
  Looks like I need an education here.
 
  check_icmp and check_ping can check a particular device but native  
  ping fails. Any help with understanding this would be great..
 
 check_icmp uses it's own sockets code. check_ping is just a wrapper  
 for 'native ping' (i.e. /bin/ping). if check_ping works, regular old  
 ping must as well.
 
 You can see the flags the check_ping is passing to /bin/ping by  
 passing verbose flags --
 
 $ ./plugins/check_ping -H localhost -w 10,10% -c 50,50% -vv
 CMD: /bin/ping -n -U -w 10 -c 5 localhost
 PING OK - Packet loss = 0%, RTA = 0.04 ms
 10.00:10% 50.00:50%
 
 
 --
 Marc
 
 
 --
 ___
 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

_
Hotmail® is up to 70% faster. Now good news travels really fast.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009--
___
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] (no subject)

2007-12-01 Thread Richard Aseltine

Has anyone successfully compiled nagios-plugins-snmp C plugins with solaris 9? 

Solaris 9
gcc 3.4.6
net-snmp-5.4.1


make  all-recursive
make[1]: Entering directory `/home/rha/nagios-plugins-snmp'
Making all in src
make[2]: Entering directory `/home/rha/nagios-plugins-snmp/src'
if gcc -DLOCALEDIR=\/usr/local/nagios/share/locale\ -DHAVE_CONFIG_H -I. -I. 
-I.. -g -O2 -Usolaris2 -Dsolaris2=solaris2 -I/usr/local/ssl/include -I. 
-I/usr/local/include -MT nagios_common_snmp.o -MD -MP -MF 
.deps/nagios_common_snmp.Tpo -c -o nagios_common_snmp.o nagios_common_snmp.c; 
\
then mv -f .deps/nagios_common_snmp.Tpo 
.deps/nagios_common_snmp.Po; else rm -f .deps/nagios_common_snmp.Tpo; exit 
1; fi
nagios_common_snmp.c: In function `get_options':
nagios_common_snmp.c:565: error: storage size of 'long_options' isn't known
nagios_common_snmp.c:565: error: storage size of `long_options' isn't known
make[2]: *** [nagios_common_snmp.o] Error 1
make[2]: Leaving directory `/home/rha/nagios-plugins-snmp/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rha/nagios-plugins-snmp'
make: *** [all] Error 2

_
Connect and share in new ways with Windows Live.
http://www.windowslive.com/connect.html?ocid=TXT_TAGLM_Wave2_newways_112007-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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] nagios-plugins-snmp solaris 9 compile problem

2007-12-01 Thread Richard Aseltine

Has anyone successfully compiled nagios-plugins-snmp C plugins with solaris 9? 

Solaris 9
gcc 3.4.6
net-snmp-5.4.1


make  all-recursive
make[1]: Entering directory `/home/rha/nagios-plugins-snmp'
Making all in src
make[2]: Entering directory `/home/rha/nagios-plugins-snmp/src'
if gcc -DLOCALEDIR=\/usr/local/nagios/share/locale\ -DHAVE_CONFIG_H -I. -I. 
-I.. -g -O2 -Usolaris2 -Dsolaris2=solaris2 -I/usr/local/ssl/include -I. 
-I/usr/local/include -MT nagios_common_snmp.o -MD -MP -MF 
.deps/nagios_common_snmp.Tpo -c -o nagios_common_snmp.o nagios_common_snmp.c; 
\
then mv -f .deps/nagios_common_snmp.Tpo 
.deps/nagios_common_snmp.Po; else rm -f .deps/nagios_common_snmp.Tpo; exit 
1; fi
nagios_common_snmp.c: In function `get_options':
nagios_common_snmp.c:565: error: storage size of 'long_options' isn't known
nagios_common_snmp.c:565: error: storage size of `long_options' isn't known
make[2]: *** [nagios_common_snmp.o] Error 1
make[2]: Leaving directory `/home/rha/nagios-plugins-snmp/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/rha/nagios-plugins-snmp'
make: *** [all] Error 2

_
Connect and share in new ways with Windows Live.
http://www.windowslive.com/connect.html?ocid=TXT_TAGLM_Wave2_newways_112007-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
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] Nagios-3.x Solaris 9 Build Problem

2007-10-10 Thread Richard Aseltine

Alex wrote

 hmm, what about

 file /opt/nagios/bin/nagios

# file /opt/nagios/bin/nagios
/opt/nagios/bin/nagios: ELF 32-bit MSB executable SPARC Version 1, dynamically 
linked, stripped

Darren Dunham wrote

 Can you run/truss it as nagios?

I cannot run it as root or nagios. Below is from root. Without truss and with 
truss.

# /opt/nagios/bin/nagios -v /opt/nagios/etc/nagios.cfg
Killed

/export/home
# truss /opt/nagios/bin/nagios -v /opt/nagios/etc/nagios.cfg
truss: cannot execute program: /opt/nagios/bin/nagios


Andreas Ericsson wrote


 other don't have execute permissions here. I wonder what kind of umask you
 were using to get this to happen. Try
 
   chmod 755 /opt/nagios/bin/nagios

 before trying to start it again.

As stated to Darren I ran it a nagios user and root. I did try changing the 
permissions anyway.


Thanks for the input guys. I'm scratching my head on this one. I've build 
Nagios with out issue many times.








 Date: Wed, 10 Oct 2007 10:59:55 +0200
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 CC: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nagios-3.x Solaris 9 Build Problem
 
 Richard Aseltine wrote:
  That's what I was suppose to show instead of the startup
  
  # ls -l /opt/nagios/bin/nagios
  -rwxrwxr--   1 nagios   nagios   1268772 Oct  9 18:41 /opt/nagios/bin/nagios
  
 
 other don't have execute permissions here. I wonder what kind of umask you
 were using to get this to happen. Try
 
   chmod 755 /opt/nagios/bin/nagios
 
 before trying to start it again.
 
 -- 
 Andreas Ericsson   [EMAIL PROTECTED]
 OP5 AB www.op5.se
 Tel: +46 8-230225  Fax: +46 8-230231
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 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

_
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
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] Nagios-3.x Solaris 9 Build Problem

2007-10-10 Thread Richard Aseltine

Thanks Darren.

It looks like I have a bad build environment. The nagios binary that got 
installed by make install is hosed. 

file /opt/nagios/bin/nagios didn't show it but ldd did:

# ldd nagios
ldd: nagios: file has insecure interpreter ELF

The nagios binary in the build directory is fine.

Thanks to everyone for the help!!!

 Date: Wed, 10 Oct 2007 17:30:47 +
 From: [EMAIL PROTECTED]
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nagios-3.x Solaris 9 Build Problem
 
 On Wed, Oct 10, 2007 at 08:09:55AM -0400, Richard Aseltine wrote:
  Darren Dunham wrote
  
   Can you run/truss it as nagios?
  
  I cannot run it as root or nagios. Below is from root. Without truss and 
  with truss.
  
  # /opt/nagios/bin/nagios -v /opt/nagios/etc/nagios.cfg
  Killed
  
  /export/home
  # truss /opt/nagios/bin/nagios -v /opt/nagios/etc/nagios.cfg
  truss: cannot execute program: /opt/nagios/bin/nagios
 
 It's acting like an invalid binary.  The 'exec' call is failing.
 Someone asked about 'file /opt/nagios/bin/nagios'.  That and running
 'ldd' on the binary as well might show something.
 
 But either way it seems like the build is bad.  Can you delete the
 executable from the build directory and re-make it?  Any difference?
 Can you show the output from the make for just that step?
 
 -- 
 Darren Dunham   [EMAIL PROTECTED]
 Senior Technical Consultant TAOShttp://www.taos.com/
 Got some Dr Pepper?   San Francisco, CA bay area
   This line left intentionally blank to confuse you. 
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 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

_
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
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] (no subject)

2007-10-09 Thread Richard Aseltine

Has anyone successfully build Nagios-3.x on Solaris 2.9? I have build previous 
releases without any problems. I hope someone can point me in the right 
direction. Here is what happens when I try to start the damon.

# /etc/init.d/nagios start 
-n Starting nagios:
Killed
CONFIG ERROR!  Start aborted.  Check your Nagios configuration.

# truss /opt/nagios/bin/nagios -v /opt/nagios/etc/nagios.cfg
truss: cannot execute program: /opt/nagios/bin/nagios

-rwxr-xr-x   1 root root5163 Oct  9 18:42 /etc/init.d/nagios

Thanks

_
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
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] Nagios-3.x Solaris 9 Build Problem

2007-10-09 Thread Richard Aseltine

Has anyone successfully build Nagios-3.x on Solaris 2.9? I have build
previous releases without any problems. I hope someone can point me in
the right direction. Here is what happens when I try to start the damon.

# /etc/init.d/nagios start 
-n Starting nagios:
Killed
CONFIG ERROR!  Start aborted.  Check your Nagios configuration.

# truss /opt/nagios/bin/nagios -v /opt/nagios/etc/nagios.cfg
truss: cannot execute program: /opt/nagios/bin/nagios

-rwxr-xr-x   1 root root5163 Oct  9 18:42 /etc/init.d/nagios

Thanks

_
Peek-a-boo FREE Tricks  Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
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] Nagios-3.x Solaris 9 Build Problem

2007-10-09 Thread Richard Aseltine

That's what I was suppose to show instead of the startup

# ls -l /opt/nagios/bin/nagios
-rwxrwxr--   1 nagios   nagios   1268772 Oct  9 18:41 /opt/nagios/bin/nagios

 Date: Tue, 9 Oct 2007 20:22:47 -0400
 From: [EMAIL PROTECTED]
 To: nagios-users@lists.sourceforge.net
 Subject: Re: [Nagios-users] Nagios-3.x Solaris 9 Build Problem
 
 what is the output of 
 
 ls -l /opt/nagios/bin/nagios
 
 On Tue, Oct 09, 2007 at 03:46:50PM -0400, Richard Aseltine wrote:
  
  Has anyone successfully build Nagios-3.x on Solaris 2.9? I have build
  previous releases without any problems. I hope someone can point me in
  the right direction. Here is what happens when I try to start the damon.
  
  # /etc/init.d/nagios start 
  -n Starting nagios:
  Killed
  CONFIG ERROR!  Start aborted.  Check your Nagios configuration.
  
  # truss /opt/nagios/bin/nagios -v /opt/nagios/etc/nagios.cfg
  truss: cannot execute program: /opt/nagios/bin/nagios
  
  -rwxr-xr-x   1 root root5163 Oct  9 18:42 /etc/init.d/nagios
  
  Thanks
  
  _
  Peek-a-boo FREE Tricks  Treats for You!
  http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us
  -
  This SF.net email is sponsored by: Splunk Inc.
  Still grepping through log files to find problems?  Stop.
  Now Search log events and configuration files using AJAX and a browser.
  Download your FREE copy of Splunk now  http://get.splunk.com/
  ___
  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
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 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

_
Climb to the top of the charts!  Play Star Shuffle:  the word scramble 
challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
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