Re: [Nagios-users] Bonding/Teaming Monitoring

2010-08-29 Thread Jones, Stuart
We're using port status check of the Gigabit ports used for the
EtherChannel, for a C3750 stack & Gi1/0/1:
check_snmp!-C  -o ifOperStatus.10201 -r 1 -m RFC1212-MIB



From: Robert Jackson [mailto:r...@walkermartyn.co.uk] 
Sent: Tuesday, 17 August 2010 1:55 PM
To: Nagios Users List
Subject: [Nagios-users] Bonding/Teaming Monitoring



My current situation is that I have 2 core switches (Cisco 2960G's) in a
failover capability. Every one of our servers (Windows, RHEL & Solaris)
has NIC bonding/teaming enabled and obviously one switch serves network
access to NIC #0, the other switch serves network access to NIC #1.

I'm looking for the best way to setup failover monitoring of the switch
ports and server connections under my setup.




The information in this internet E-mail is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is unauthorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
Walker Martyn Ltd or any of its affiliates. If you are not the intended
recipient please contact administra...@walkermartyn.co.uk.

Walker Martyn Ltd, company number SC197533. Company is registered in
Scotland and has its registered office at 1 Park Circus Place, Glasgow
G3 6AH, UK.

 

--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d___
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 script output issue

2010-08-29 Thread newme me
 Folks,

I switched to "check_http" plugin (official nagios plugin) but that also has
same problem.

Initially when I start nagios then the status on the Nagios Web interface is
same as the one returned from commandline.

After some time the status becomes critical but is not as same as the
commandline. Command line returns the correct status of OK instead of what
the Nagios web interface shows as "CRITICAL"

Result from commandline(& browser) -
./check_http -H xyz.com -p  -u /abc -t 3
OK

Result from Nagios Interface -
nodename nor servname provided, or not known
HTTP CRITICAL - Unable to open TCP socket

I am thinking that this has something to do with Nagios as the box is
behaving just fine based on the commandline result(and verified on the URL
through the browser).

Please help!

Thanks,
Allan.

On Thu, Aug 26, 2010 at 10:26 PM, newme me  wrote:

> Hi Folks,
>
> Nagios is acting a little weird for me, I have this external script which I
> hooked into Nagios, it merely does a curl/wget on a URL and returns the
> status based on string in the content/output. Initially for 2-3 hrs the
> script returns the right status and Nagios reports correctly i.e. OK, WARN,
> ERROR based on the exit from the script. After 2-3 hrs output which was (and
> should be) OK or WARN starts returning CRITICAL and the output line says
> "Application is" and not even "Application is ERROR" or "Application is
> FATAL".
>
> There is nothing in the logs to suggest what could be the problem. Have you
> experienced this before and let me know the corrective action. I am running
> Nagios on Mac OSX.
>
> Here is the script for the curious -
>
> #!/bin/bash
>
> read URL < "$1"
>
> STATUS=`curl -s $URL |grep summary|awk -F\" '{print $2}'`
> echo "Application is $STATUS"
> echo "curl $URL"
>
> case $STATUS in
> OK)
>exit 0
>;;
> WARN)
>   exit 1
>   ;;
> ERROR)
>   exit 2
>   ;;
> FATAL)
>   exit 2
>   ;;
> *)
>   exit 2
>   ;;
> esac
>
> Thanks,
>
> Allan.
--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d___
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