Re: [Nagios-users] circular parent/child chain

2012-11-19 Thread Andreas Ericsson
On 11/17/2012 06:08 PM, Lucy Pelzer wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi List,
 
 I am in charge for a big network infrastructure and at the moment we
 evaluate solutions for our nagios monitoring with configuration via
 monarch. I really would like to create the new solution with nagios and
 puppet. There is only one big problem. In our infrastructure there are a
 lot of switches connected together like this:
 

| switch-1 |

  /   \
 / \
/   \
 
| switch-2 |-| switch-3 |
 
 | |
 | |
 
| switch-5 |-| switch-4 |
 
 
 All the time I try to configure this switch connections in nagios with
 more than one parent, where the hosts are at the same time parent and
 child, I get the following error:
 
 ERROR: The host 'switch-2' is part of a circular parent/child chain!
 ...
 
 I know by now that this is because nagios has to be hierarchically, but
 I do not understand why. Maybe somebody could tell me exactly why I
 can’t configure this in nagios or better could tell me how I can do it.
 I only found the explanation that this could conduct a deadlock. Maybe I
 am wrong, but is this not a likely network infrastructure? At last it is
 no problem to build something like this with STP running in your network.
 

It is, but parent-child relations concern network data flows, and not
necessarily the cables connecting various pieces of equipment.

In your case switch5 should have switch2 as parent, switch4 should have
switch3 as parent, switch2 and switch3 should both have switch1 as
parent.

Think of how the traffic goes. It will never travel like this:
  switch1 - switch2 - switch3 - switch4
but it will travel like this:
  switch1 - switch3 - switch4

(assuming you have a somewhat sane network, that is).

-- 
Andreas Ericsson   andreas.erics...@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
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_http status 503 gives 200 OK

2012-11-19 Thread Jaap van Arragon
Hello,

Does anyone know why it gives me a 200 back?

If you need more info, I will gladly provide it ;-)

Thank you.

Regards,

Jaap 


On 11/16/12 11:54 AM, Jaap van Arragon j.vanarra...@lukkien.com wrote:

 Hello,
 
 I¹m trying to use the check_http plugin to verify if one of our website is
 available. 
 
 When I check our website it gives me a 200 OK status code back even when the
 website isn¹t available en the URL gives me a 503 status code through the
 browser.
 
 After some searching I came across the post below:
 
 http://permalink.gmane.org/gmane.network.nagios.plugins.devel/485
 
 This states that there is a bug in check_http. The only thing is that the post
 is from 2003 so I expect that the necessary changes are already in the new
 release. 
 
 Things I¹ve tried:
 
 - recompiled the latest version of the check_http plugin but the necessary
 changes seems to be integrated there already.
 - updated the plugins package to the latest version for our release
 
 Check:
 /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2
 
 Packages:
 
 ii nagios-images 0.5
 ii nagios-nrpe-plugin 2.12-4ubuntu1.10.04.1
 ii nagios-nrpe-server 2.12-4ubuntu1.10.04.1
 ii nagios-plugins 1.4.14-1ubuntu1
 ii nagios-plugins-basic 1.4.14-1ubuntu1
 ii nagios-plugins-standard 1.4.14-1ubuntu1
 ii nagios3 3.2.0-4ubuntu2.2
 ii nagios3-cgi 3.2.0-4ubuntu2.2
 ii nagios3-common 3.2.0-4ubuntu2.2
 ii nagios3-core 3.2.0-4ubuntu2.2
 ii nagiosgrapher 1.7.1-1
 
 Does anyone know why it gives me a status 200 OK back? At the moment I can't
 rely on my Nagios checks..
 
 Thank you in advance
 
 Regards
 Jaap



--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
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_http status 503 gives 200 OK

2012-11-19 Thread Ryan Edwards
You said u are using it like so:

   Check:
   /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1
-c2

Maybe drop the IP address?  I dunno, maybe cuz you have both IP and the url
its causing problems. Maybe its replying on the IP, but not on the URL your
providing.  You prob only need one or the other if im not mistaken

Cheers!


On Mon, Nov 19, 2012 at 7:14 AM, Jaap van Arragon
j.vanarra...@lukkien.comwrote:

 Hello,

 Does anyone know why it gives me a 200 back?

 If you need more info, I will gladly provide it ;-)

 Thank you.

 Regards,

 Jaap


 On 11/16/12 11:54 AM, Jaap van Arragon j.vanarra...@lukkien.com wrote:

  Hello,
 
  I¹m trying to use the check_http plugin to verify if one of our website
 is
  available.
 
  When I check our website it gives me a 200 OK status code back even when
 the
  website isn¹t available en the URL gives me a 503 status code through the
  browser.
 
  After some searching I came across the post below:
 
  http://permalink.gmane.org/gmane.network.nagios.plugins.devel/485
 
  This states that there is a bug in check_http. The only thing is that
 the post
  is from 2003 so I expect that the necessary changes are already in the
 new
  release.
 
  Things I¹ve tried:
 
  - recompiled the latest version of the check_http plugin but the
 necessary
  changes seems to be integrated there already.
  - updated the plugins package to the latest version for our release
 
  Check:
  /usr/local/nagios/libexec/check_http -I ip address -u http://url
 -w1 -c2
 
  Packages:
 
  ii nagios-images 0.5
  ii nagios-nrpe-plugin 2.12-4ubuntu1.10.04.1
  ii nagios-nrpe-server 2.12-4ubuntu1.10.04.1
  ii nagios-plugins 1.4.14-1ubuntu1
  ii nagios-plugins-basic 1.4.14-1ubuntu1
  ii nagios-plugins-standard 1.4.14-1ubuntu1
  ii nagios3 3.2.0-4ubuntu2.2
  ii nagios3-cgi 3.2.0-4ubuntu2.2
  ii nagios3-common 3.2.0-4ubuntu2.2
  ii nagios3-core 3.2.0-4ubuntu2.2
  ii nagiosgrapher 1.7.1-1
 
  Does anyone know why it gives me a status 200 OK back? At the moment I
 can't
  rely on my Nagios checks..
 
  Thank you in advance
 
  Regards
  Jaap




 --
 Monitor your physical, virtual and cloud infrastructure from a single
 web console. Get in-depth insight into apps, servers, databases, vmware,
 SAP, cloud infrastructure, etc. Download 30-day Free Trial.
 Pricing starts from $795 for 25 servers or applications!
 http://p.sf.net/sfu/zoho_dev2dev_nov
 ___
 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




-- 
Christianity: The belief that some cosmic Jewish Zombie can make you live
forever if you symbolically eat his flesh and telepathically tell him that
you accept him as your master, so he can remove an evil force from your
soul that is present in humanity because a rib-woman was convinced by a
talking snake to eat from a magical tree.  Makes perfect sense!
--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov___
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] little question about disable notification and schedule downtime

2012-11-19 Thread Marco Borsani
Hi all

 

Reading for the first time the docs it seems that these 2 options do the
same thing. Is it ?

 

Is the only difference that the first one disable the notification forever,
while the other only in a particular timeperiod ?

 

Both do not stop the service checks.

 

Marco Borsani

Unix and Monitoring Sysadmin

Technical Operations Dpt.

tel: +39 010 4310115

fax: +39 02 30130311

cell: +39 329 5953944

ITnet Srl

Società con socio unico

Direzione e Coordinamento di Libero S.r.l.

 

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov___
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_http status 503 gives 200 OK

2012-11-19 Thread Jaap van Arragon
Thank you for your reply.

I¹ve tried the check without the ip adress option but it makes no
difference.

Any other ideas?

Thanks.


On 11/19/12 2:29 PM, Ryan Edwards wyi...@gmail.com wrote:

 You said u are using it like so:
 
    Check:
    /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1
 -c2
 
 Maybe drop the IP address?  I dunno, maybe cuz you have both IP and the url
 its causing problems. Maybe its replying on the IP, but not on the URL your
 providing.  You prob only need one or the other if im not mistaken
 
 Cheers!
 
 
 On Mon, Nov 19, 2012 at 7:14 AM, Jaap van Arragon j.vanarra...@lukkien.com
 wrote:
 Hello,
 
 Does anyone know why it gives me a 200 back?
 
 If you need more info, I will gladly provide it ;-)
 
 Thank you.
 
 Regards,
 
 Jaap
 
 
 On 11/16/12 11:54 AM, Jaap van Arragon j.vanarra...@lukkien.com wrote:
 
  Hello,
 
  I¹m trying to use the check_http plugin to verify if one of our website is
  available.
 
  When I check our website it gives me a 200 OK status code back even when
 the
  website isn¹t available en the URL gives me a 503 status code through the
  browser.
 
  After some searching I came across the post below:
 
  http://permalink.gmane.org/gmane.network.nagios.plugins.devel/485
 
  This states that there is a bug in check_http. The only thing is that the
 post
  is from 2003 so I expect that the necessary changes are already in the new
  release.
 
  Things I¹ve tried:
 
  - recompiled the latest version of the check_http plugin but the necessary
  changes seems to be integrated there already.
  - updated the plugins package to the latest version for our release
 
  Check:
  /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1
 -c2
 
  Packages:
 
  ii nagios-images 0.5
  ii nagios-nrpe-plugin 2.12-4ubuntu1.10.04.1
  ii nagios-nrpe-server 2.12-4ubuntu1.10.04.1
  ii nagios-plugins 1.4.14-1ubuntu1
  ii nagios-plugins-basic 1.4.14-1ubuntu1
  ii nagios-plugins-standard 1.4.14-1ubuntu1
  ii nagios3 3.2.0-4ubuntu2.2
  ii nagios3-cgi 3.2.0-4ubuntu2.2
  ii nagios3-common 3.2.0-4ubuntu2.2
  ii nagios3-core 3.2.0-4ubuntu2.2
  ii nagiosgrapher 1.7.1-1
 
  Does anyone know why it gives me a status 200 OK back? At the moment I
 can't
  rely on my Nagios checks..
 
  Thank you in advance
 
  Regards
  Jaap
 
 
 
 
-
-
 Monitor your physical, virtual and cloud infrastructure from a single
 web console. Get in-depth insight into apps, servers, databases, vmware,
 SAP, cloud infrastructure, etc. Download 30-day Free Trial.
 Pricing starts from $795 for 25 servers or applications!
 http://p.sf.net/sfu/zoho_dev2dev_nov
 ___
 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
 
 

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov___
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] little question about disable notification and schedule downtime

2012-11-19 Thread Onotsky, Steve x55328
Correct.  The former will cause notifications to remain disabled until told 
otherwise; the latter only for as long as specified.  You should read up on the 
difference between Fixed and Flexible scheduled downtime while you're at it.

If you want service/host checks disabled, you need to select that option from 
the web GUI (or drop that command into nagios.cmd).

Cheers


Steve Onotsky
Team Lead, Server Support
Broadridge
Investor Communication Solutions, Canada
5970 Chedworth Way
Mississauga  ON  L5R 4G5
Tel: (905) 507-5328
Fax: (905) 507-5312
Inet: steve.onot...@broadridge.commailto:steve.onot...@broadridge.com

The purpose of the universe is to explore the realm of possibility.
Our purpose is to witness it. - S. James Gates Jr.

From: Marco Borsani [mailto:m.bors...@it.net]
Sent: Monday, November 19, 2012 10:11 AM
To: NAGIOS
Subject: [Nagios-users] little question about disable notification and schedule 
downtime

Hi all

Reading for the first time the docs it seems that these 2 options do the same 
thing. Is it ?

Is the only difference that the first one disable the notification forever, 
while the other only in a particular timeperiod ?

Both do not stop the service checks.

Marco Borsani
Unix and Monitoring Sysadmin
Technical Operations Dpt.
tel: +39 010 4310115
fax: +39 02 30130311
cell: +39 329 5953944
ITnet Srl
Società con socio unico
Direzione e Coordinamento di Libero S.r.l.


This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov___
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_http status 503 gives 200 OK

2012-11-19 Thread Joerg Linge

Your example

 /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2

is a proxy request!

-I = ip address to connect to
-H = HTTP/1.1 Host Header
-u = relative url to fetch without protocol infos like http://

some examples

check nagios.org

OMD[gearman]:~/lib/nagios/plugins$ ./check_http -H nagios.org
HTTP OK: HTTP/1.1 200 OK - 54919 bytes in 1.703 second response time 
|time=1.703114s;;;0.00 size=54919B;;;0


OMD[gearman]:~/lib/nagios/plugins$ host nagios.org
nagios.org has address 96.126.126.159

ok, nagios .org runns on 96.126.126.159
lets check a non existing page. we got 404!

OMD[gearman]:~/lib/nagios/plugins$ ./check_http -I 96.126.126.159 -H nagios.org 
-u /404
HTTP WARNING: HTTP/1.1 404 Not Found - 17141 bytes in 0.536 second response 
time |time=0.536015s;;;0.00 size=17141B;;;0

lets ask nagios.org for icinga.org ;) and we will get a 302

OMD[gearman]:~/lib/nagios/plugins$ ./check_http -I 96.126.126.159 -H icinga.org 
-u /
HTTP OK: HTTP/1.1 302 Found - 242 bytes in 1.837 second response time 
|time=1.837209s;;;0.00 size=242B;;;0

Joerg

Am 19.11.2012 um 17:14 schrieb Jaap van Arragon j.vanarra...@lukkien.com:

 Thank you for your reply.
 
 I’ve tried the check without the ip adress option but it makes no difference.
 
 Any other ideas?
 
 Thanks.
 
 
 On 11/19/12 2:29 PM, Ryan Edwards wyi...@gmail.com wrote:
 
 You said u are using it like so:
 
Check:
/usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 
 -c2
 
 Maybe drop the IP address?  I dunno, maybe cuz you have both IP and the url 
 its causing problems. Maybe its replying on the IP, but not on the URL your 
 providing.  You prob only need one or the other if im not mistaken
 
 Cheers!
 
 
 On Mon, Nov 19, 2012 at 7:14 AM, Jaap van Arragon j.vanarra...@lukkien.com 
 wrote:
 Hello,
 
 Does anyone know why it gives me a 200 back?
 
 If you need more info, I will gladly provide it ;-)
 
 Thank you.
 
 Regards,
 
 Jaap
 
 
 On 11/16/12 11:54 AM, Jaap van Arragon j.vanarra...@lukkien.com wrote:
 
  Hello,
 
  I’m trying to use the check_http plugin to verify if one of our website is
  available.
 
  When I check our website it gives me a 200 OK status code back even when 
  the
  website isn’t available en the URL gives me a 503 status code through the
  browser.
 
  After some searching I came across the post below:
 
  http://permalink.gmane.org/gmane.network.nagios.plugins.devel/485
 
  This states that there is a bug in check_http. The only thing is that the 
  post
  is from 2003 so I expect that the necessary changes are already in the new
  release.
 
  Things I’ve tried:
 
  - recompiled the latest version of the check_http plugin but the necessary
  changes seems to be integrated there already.
  - updated the plugins package to the latest version for our release
 
  Check:
  /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 
  -c2
 
  Packages:
 
  ii nagios-images 0.5
  ii nagios-nrpe-plugin 2.12-4ubuntu1.10.04.1
  ii nagios-nrpe-server 2.12-4ubuntu1.10.04.1
  ii nagios-plugins 1.4.14-1ubuntu1
  ii nagios-plugins-basic 1.4.14-1ubuntu1
  ii nagios-plugins-standard 1.4.14-1ubuntu1
  ii nagios3 3.2.0-4ubuntu2.2
  ii nagios3-cgi 3.2.0-4ubuntu2.2
  ii nagios3-common 3.2.0-4ubuntu2.2
  ii nagios3-core 3.2.0-4ubuntu2.2
  ii nagiosgrapher 1.7.1-1
 
  Does anyone know why it gives me a status 200 OK back? At the moment I 
  can't
  rely on my Nagios checks..
 
  Thank you in advance
 
  Regards
  Jaap
 
 
 
 --
 Monitor your physical, virtual and cloud infrastructure from a single
 web console. Get in-depth insight into apps, servers, databases, vmware,
 SAP, cloud infrastructure, etc. Download 30-day Free Trial.
 Pricing starts from $795 for 25 servers or applications!
 http://p.sf.net/sfu/zoho_dev2dev_nov
 ___
 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
 
 
 --
 Monitor your physical, virtual and cloud infrastructure from a single
 web console. Get in-depth insight into apps, servers, databases, vmware,
 SAP, cloud infrastructure, etc. Download 30-day Free Trial.
 Pricing starts from $795 for 25 servers or applications!
 http://p.sf.net/sfu/zoho_dev2dev_nov___
 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] need testers for latest check_netint (especially those using --cisco and --STP options)

2012-11-19 Thread William Leibzon
Hey y'all nagios guys and gals,

I need some testers for newest version of check_netint.pl (previously known
as check_snmp_netint and originally check_smp_int) since I made a bunch of
code updates this weekend. And I'm running cloud environment and can not
quickly test --cisco and --stp options. If you're using this plugin with
cisco switches and using these options, please get the latest dev (2.4a8)
and see if it works as before:
  https://github.com/willixix/WL-NagiosPlugins/blob/dev/check_netint.pl

Also those who've been pitching me to support 48+ port switches with one
check, I added --bulk_snmp_queries option. You can test if that made things
faster. I'm actually not sure if it would, because the plugin does does not
do get_next on a tree which is what bulk query is supposed to speed up.

Lastly this plugin now supports checking interfaces on a local linux
machine instead of just SNNP. Feel free to test this as well. And if you
are using FreeBSD or Solaris or some other unix, please consider helping
out with a code to support your platform.

Send all comments/issues/reports to my private email.

Thanks,

William
--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov___
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] circular parent/child chain

2012-11-19 Thread Lucy Pelzer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi List,

thanks for your fast replies, but I think you missed my point. I know
that I could configure one parent and alert about spanning tree or do a
lot of other stuff, but this would not help me at all in the following
situations.

Lets say that I have a lot of important infrastructure behind switch-4
and switch-5 and that the normal stp way is to route through switch-2
for switch-5 and for switch-4 to switch-3. Lets also suggest that at
switch-2 there is not that much important infrastructure. If now
switch-2 is failing at the same time a really important infrastructure
behind switch-5 fails. I will only get informed that switch-2 failed,
because switch-5 is a child of switch-2, but I will not be informed
about the more important stuff at switch-5. Now I will spend a lot of
time to exchange switch-2 before I even find out that there is something
really important at switch-5 going on only because I could not give it a
second parent (switch-4). Maybe the other problem would have been fixed
in minutes if I would have known about it. I think it is a bad idea to
have such parent/child chains. And please keep in mind that this is just
a simple example and that a network can be much bigger than just 5 switches.

The other point is that I will never see the real network infrastructure
in the statusmap. As far as I can read the documentation I should also
be able to build up my whole infrastructure like it is in the statusmap.
Or for what is it at all?

I would be really pleased if somebody could answer my question.

- - Why is it in nagios not possible to be parent/child of a other host at
the same time?
- - Why is it a deadlock and where is the problem?


Greetings
Lucy

On 17.11.2012 21:44, Giles Coochey wrote:
 On 17/11/2012 17:08, Lucy Pelzer wrote:
 Hi List,
 
 I am in charge for a big network infrastructure and at the moment we
 evaluate solutions for our nagios monitoring with configuration via
 monarch. I really would like to create the new solution with nagios and
 puppet. There is only one big problem. In our infrastructure there are a
 lot of switches connected together like this:
 

| switch-1 |

  /   \
 / \
/   \
 
| switch-2 |-| switch-3 |
 
 | |
 | |
 
| switch-5 |-| switch-4 |
 
 Hi Lucy,
 
 Although you have redundant physical interconnects for your switches,
 Spanning Tree, or Rapid Spanning Tree or even Multiple Spanning Tree
 protocols are taking effect and (probably) setting switch-1 as the Root
 with the other switches set to a higher spanning tree priority value -
 in any case, at layer two, during normal operation you don't have
 multiple active parents in the layer-2 infrastructure.
 
 While you have redundancy, physically for your infrastructure, you are
 only using those links (for each VLAN at least), in a non-redundant way.
 
 Setup your Nagios child / parent relationships as per spanning tree has
 worked out how it should be when everything is up, add some monitoring
 for spanning-tree within Nagios, that way everything will work, and
 you'll always be informed when something is wrong.
 
 Thanks
 
 Giles
 
 
 All the time I try to configure this switch connections in nagios with
 more than one parent, where the hosts are at the same time parent and
 child, I get the following error:
 
 ERROR: The host 'switch-2' is part of a circular parent/child chain!
 ...
 
 I know by now that this is because nagios has to be hierarchically, but
 I do not understand why. Maybe somebody could tell me exactly why I
 can’t configure this in nagios or better could tell me how I can do it.
 I only found the explanation that this could conduct a deadlock. Maybe I
 am wrong, but is this not a likely network infrastructure? At last it is
 no problem to build something like this with STP running in your network.
 
 
 Great Thanks in advanced
 
 Lucy

 --

 Monitor your physical, virtual and cloud infrastructure from a single
 web console. Get in-depth insight into apps, servers, databases, vmware,
 SAP, cloud infrastructure, etc. Download 30-day Free Trial.
 Pricing starts from $795 for 25 servers or applications!
 http://p.sf.net/sfu/zoho_dev2dev_nov
 ___
 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_http status 503 gives 200 OK

2012-11-19 Thread Jaap van Arragon
Hey Joerg,


The 4xx and 3xx error are handeld correctly but not the 5xx error ;-)


any ideas?


Regards,
Jaap 
  _  

From: Joerg Linge [mailto:pitchf...@ederdrom.de]
To: Nagios Users List [mailto:nagios-users@lists.sourceforge.net]
Sent: Mon, 19 Nov 2012 18:07:52 +0100
Subject: Re: [Nagios-users] Check_http status 503 gives 200 OK


  Your example
  
   /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2
  
  is a proxy request!
  
  -I = ip address to connect to
  -H = HTTP/1.1 Host Header
  -u = relative url to fetch without protocol infos like http://
  
  some examples
  
  check nagios.org
  
  OMD[gearman]:~/lib/nagios/plugins$ ./check_http -H nagios.org
  HTTP OK: HTTP/1.1 200 OK - 54919 bytes in 1.703 second response time 
|time=1.703114s;;;0.00 size=54919B;;;0
  
  
  OMD[gearman]:~/lib/nagios/plugins$ host nagios.org
  nagios.org has address 96.126.126.159
  
  ok, nagios .org runns on 96.126.126.159
  lets check a non existing page. we got 404!
  
  OMD[gearman]:~/lib/nagios/plugins$ ./check_http -I 96.126.126.159 -H 
nagios.org -u /404
  HTTP WARNING: HTTP/1.1 404 Not Found - 17141 bytes in 0.536 second response 
time |time=0.536015s;;;0.00 size=17141B;;;0
  
  lets ask nagios.org for icinga.org ;) and we will get a 302
  
  OMD[gearman]:~/lib/nagios/plugins$ ./check_http -I 96.126.126.159 -H 
icinga.org -u /
  HTTP OK: HTTP/1.1 302 Found - 242 bytes in 1.837 second response time 
|time=1.837209s;;;0.00 size=242B;;;0
  
  Joerg
  
  Am 19.11.2012 um 17:14 schrieb Jaap van Arragon j.vanarra...@lukkien.com:
  
   Thank you for your reply.
   
   I’ve tried the check without the ip adress option but it makes no 
difference.
   
   Any other ideas?
   
   Thanks.
   
   
   On 11/19/12 2:29 PM, Ryan Edwards wyi...@gmail.com wrote:
   
   You said u are using it like so:
   
  Check:
  /usr/local/nagios/libexec/check_http -I ip address -u http://url 
-w1 -c2
   
   Maybe drop the IP address?  I dunno, maybe cuz you have both IP and the 
url its causing problems. Maybe its replying on the IP, but not on the URL your 
providing.  You prob only need one or the other if im not mistaken
   
   Cheers!
   
   
   On Mon, Nov 19, 2012 at 7:14 AM, Jaap van Arragon 
j.vanarra...@lukkien.com wrote:
   Hello,
   
   Does anyone know why it gives me a 200 back?
   
   If you need more info, I will gladly provide it ;-)
   
   Thank you.
   
   Regards,
   
   Jaap
   
   
   On 11/16/12 11:54 AM, Jaap van Arragon j.vanarra...@lukkien.com wrote:
   
Hello,
   
I’m trying to use the check_http plugin to verify if one of our website 
is
available.
   
When I check our website it gives me a 200 OK status code back even 
when the
website isn’t available en the URL gives me a 503 status code through 
the
browser.
   
After some searching I came across the post below:
   
http://permalink.gmane.org/gmane.network.nagios.plugins.devel/485
   
This states that there is a bug in check_http. The only thing is that 
the post
is from 2003 so I expect that the necessary changes are already in the 
new
release.
   
Things I’ve tried:
   
- recompiled the latest version of the check_http plugin but the 
necessary
changes seems to be integrated there already.
- updated the plugins package to the latest version for our release
   
Check:
/usr/local/nagios/libexec/check_http -I ip address -u http://url 
-w1 -c2
   
Packages:
   
ii nagios-images 0.5
ii nagios-nrpe-plugin 2.12-4ubuntu1.10.04.1
ii nagios-nrpe-server 2.12-4ubuntu1.10.04.1
ii nagios-plugins 1.4.14-1ubuntu1
ii nagios-plugins-basic 1.4.14-1ubuntu1
ii nagios-plugins-standard 1.4.14-1ubuntu1
ii nagios3 3.2.0-4ubuntu2.2
ii nagios3-cgi 3.2.0-4ubuntu2.2
ii nagios3-common 3.2.0-4ubuntu2.2
ii nagios3-core 3.2.0-4ubuntu2.2
ii nagiosgrapher 1.7.1-1
   
Does anyone know why it gives me a status 200 OK back? At the moment I 
can't
rely on my Nagios checks..
   
Thank you in advance
   
Regards
Jaap
   
   
   
   
--
   Monitor your physical, virtual and cloud infrastructure from a single
   web console. Get in-depth insight into apps, servers, databases, vmware,
   SAP, cloud infrastructure, etc. Download 30-day Free Trial.
   Pricing starts from $795 for 25 servers or applications!
   http://p.sf.net/sfu/zoho_dev2dev_nov
   ___
   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
   
   
   
--
   Monitor your physical, virtual and cloud infrastructure from a single
   

Re: [Nagios-users] Check_http status 503 gives 200 OK

2012-11-19 Thread Joerg Linge
Please provide a complete example!
check_http works correct since years

Joerg

Am 19.11.2012 um 23:00 schrieb Jaap van Arragon j.vanarra...@lukkien.com:

 Hey Joerg,
 
 The 4xx and 3xx error are handeld correctly but not the 5xx error ;-)
 
 any ideas?
 
 Regards,
 Jaap 
 From: Joerg Linge [mailto:pitchf...@ederdrom.de]
 To: Nagios Users List [mailto:nagios-users@lists.sourceforge.net]
 Sent: Mon, 19 Nov 2012 18:07:52 +0100
 Subject: Re: [Nagios-users] Check_http status 503 gives 200 OK
 
 
 Your example
 
 /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2
 
 is a proxy request!
 
 -I = ip address to connect to
 -H = HTTP/1.1 Host Header
 -u = relative url to fetch without protocol infos like http://
 
 some examples
 
 check nagios.org
 
 OMD[gearman]:~/lib/nagios/plugins$ ./check_http -H nagios.org
 HTTP OK: HTTP/1.1 200 OK - 54919 bytes in 1.703 second response time 
 |time=1.703114s;;;0.00 size=54919B;;;0
 
 
 OMD[gearman]:~/lib/nagios/plugins$ host nagios.org
 nagios.org has address 96.126.126.159
 
 ok, nagios .org runns on 96.126.126.159
 lets check a non existing page. we got 404!
 
 OMD[gearman]:~/lib/nagios/plugins$ ./check_http -I 96.126.126.159 -H 
 nagios.org -u /404
 HTTP WARNING: HTTP/1.1 404 Not Found - 17141 bytes in 0.536 second response 
 time |time=0.536015s;;;0.00 size=17141B;;;0
 
 lets ask nagios.org for icinga.org ;) and we will get a 302
 
 OMD[gearman]:~/lib/nagios/plugins$ ./check_http -I 96.126.126.159 -H 
 icinga.org -u /
 HTTP OK: HTTP/1.1 302 Found - 242 bytes in 1.837 second response time 
 |time=1.837209s;;;0.00 size=242B;;;0
 
 Joerg
 
 Am 19.11.2012 um 17:14 schrieb Jaap van Arragon j.vanarra...@lukkien.com:
 
  Thank you for your reply.
  
  I’ve tried the check without the ip adress option but it makes no 
  difference.
  
  Any other ideas?
  
  Thanks.
  
  
  On 11/19/12 2:29 PM, Ryan Edwards wyi...@gmail.com wrote:
  
  You said u are using it like so:
  
  Check:
  /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 
  -c2
  
  Maybe drop the IP address? I dunno, maybe cuz you have both IP and the url 
  its causing problems. Maybe its replying on the IP, but not on the URL 
  your providing. You prob only need one or the other if im not mistaken
  
  Cheers!
  
  
  On Mon, Nov 19, 2012 at 7:14 AM, Jaap van Arragon 
  j.vanarra...@lukkien.com wrote:
  Hello,
  
  Does anyone know why it gives me a 200 back?
  
  If you need more info, I will gladly provide it ;-)
  
  Thank you.
  
  Regards,
  
  Jaap
  
  
  On 11/16/12 11:54 AM, Jaap van Arragon j.vanarra...@lukkien.com wrote:
  
   Hello,
  
   I’m trying to use the check_http plugin to verify if one of our website 
   is
   available.
  
   When I check our website it gives me a 200 OK status code back even 
   when the
   website isn’t available en the URL gives me a 503 status code through 
   the
   browser.
  
   After some searching I came across the post below:
  
   http://permalink.gmane.org/gmane.network.nagios.plugins.devel/485
  
   This states that there is a bug in check_http. The only thing is that 
   the post
   is from 2003 so I expect that the necessary changes are already in the 
   new
   release.
  
   Things I’ve tried:
  
   - recompiled the latest version of the check_http plugin but the 
   necessary
   changes seems to be integrated there already.
   - updated the plugins package to the latest version for our release
  
   Check:
   /usr/local/nagios/libexec/check_http -I ip address -u http://url 
   -w1 -c2
  
   Packages:
  
   ii nagios-images 0.5
   ii nagios-nrpe-plugin 2.12-4ubuntu1.10.04.1
   ii nagios-nrpe-server 2.12-4ubuntu1.10.04.1
   ii nagios-plugins 1.4.14-1ubuntu1
   ii nagios-plugins-basic 1.4.14-1ubuntu1
   ii nagios-plugins-standard 1.4.14-1ubuntu1
   ii nagios3 3.2.0-4ubuntu2.2
   ii nagios3-cgi 3.2.0-4ubuntu2.2
   ii nagios3-common 3.2.0-4ubuntu2.2
   ii nagios3-core 3.2.0-4ubuntu2.2
   ii nagiosgrapher 1.7.1-1
  
   Does anyone know why it gives me a status 200 OK back? At the moment I 
   can't
   rely on my Nagios checks..
  
   Thank you in advance
  
   Regards
   Jaap
  
  
  
  --
  Monitor your physical, virtual and cloud infrastructure from a single
  web console. Get in-depth insight into apps, servers, databases, vmware,
  SAP, cloud infrastructure, etc. Download 30-day Free Trial.
  Pricing starts from $795 for 25 servers or applications!
  http://p.sf.net/sfu/zoho_dev2dev_nov
  ___
  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
  
  
  --
  Monitor your physical, 

Re: [Nagios-users] Check_http status 503 gives 200 OK

2012-11-19 Thread Jaap van Arragon
Herewith

define service{
use generic-service_24x7
host_name   www1
service_description check http url
check_command   check_http! -u
http://www.testsomething.com -w 5 -c 8
 }

This gives me a 

HTTP OK: HTTP/1.1 200 OK - 414 bytes in 0.002 second response time 

Back.


But in the browser the check gives me a

503 statuscode back.

The Nagios check_http script isn't detecting this 503 error message.

Regards,

Jaap


On 11/20/12 8:20 AM, Joerg Linge pitchf...@ederdrom.de wrote:

 Please provide a complete example!
 check_http works correct since years
 
 Joerg
 
 Am 19.11.2012 um 23:00 schrieb Jaap van Arragon j.vanarra...@lukkien.com:
 
 Hey Joerg,
 
 The 4xx and 3xx error are handeld correctly but not the 5xx error ;-)
 
 any ideas?
 
 Regards,
 Jaap 
 From: Joerg Linge [mailto:pitchf...@ederdrom.de]
 To: Nagios Users List [mailto:nagios-users@lists.sourceforge.net]
 Sent: Mon, 19 Nov 2012 18:07:52 +0100
 Subject: Re: [Nagios-users] Check_http status 503 gives 200 OK
 
 
 Your example
 
 /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2
 
 is a proxy request!
 
 -I = ip address to connect to
 -H = HTTP/1.1 Host Header
 -u = relative url to fetch without protocol infos like http://
 
 some examples
 
 check nagios.org
 
 OMD[gearman]:~/lib/nagios/plugins$ ./check_http -H nagios.org
 HTTP OK: HTTP/1.1 200 OK - 54919 bytes in 1.703 second response time
 |time=1.703114s;;;0.00 size=54919B;;;0
 
 
 OMD[gearman]:~/lib/nagios/plugins$ host nagios.org
 nagios.org has address 96.126.126.159
 
 ok, nagios .org runns on 96.126.126.159
 lets check a non existing page. we got 404!
 
 OMD[gearman]:~/lib/nagios/plugins$ ./check_http -I 96.126.126.159 -H
 nagios.org -u /404
 HTTP WARNING: HTTP/1.1 404 Not Found - 17141 bytes in 0.536 second response
 time |time=0.536015s;;;0.00 size=17141B;;;0
 
 lets ask nagios.org for icinga.org ;) and we will get a 302
 
 OMD[gearman]:~/lib/nagios/plugins$ ./check_http -I 96.126.126.159 -H
 icinga.org -u /
 HTTP OK: HTTP/1.1 302 Found - 242 bytes in 1.837 second response time
 |time=1.837209s;;;0.00 size=242B;;;0
 
 Joerg
 
 Am 19.11.2012 um 17:14 schrieb Jaap van Arragon j.vanarra...@lukkien.com:
 
 Thank you for your reply.
 
 I¹ve tried the check without the ip adress option but it makes no
 difference.
 
 Any other ideas?
 
 Thanks.
 
 
 On 11/19/12 2:29 PM, Ryan Edwards wyi...@gmail.com wrote:
 
 You said u are using it like so:
 
 Check:
 /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1
 -c2
 
 Maybe drop the IP address? I dunno, maybe cuz you have both IP and the url
 its causing problems. Maybe its replying on the IP, but not on the URL your
 providing. You prob only need one or the other if im not mistaken
 
 Cheers!
 
 
 On Mon, Nov 19, 2012 at 7:14 AM, Jaap van Arragon
 j.vanarra...@lukkien.com wrote:
 Hello,
 
 Does anyone know why it gives me a 200 back?
 
 If you need more info, I will gladly provide it ;-)
 
 Thank you.
 
 Regards,
 
 Jaap
 
 
 On 11/16/12 11:54 AM, Jaap van Arragon j.vanarra...@lukkien.com wrote:
 
 Hello,
 
 I¹m trying to use the check_http plugin to verify if one of our website
 is
 available.
 
 When I check our website it gives me a 200 OK status code back even when
 the
 website isn¹t available en the URL gives me a 503 status code through the
 browser.
 
 After some searching I came across the post below:
 
 http://permalink.gmane.org/gmane.network.nagios.plugins.devel/485
 
 This states that there is a bug in check_http. The only thing is that the
 post
 is from 2003 so I expect that the necessary changes are already in the
 new
 release.
 
 Things I¹ve tried:
 
 - recompiled the latest version of the check_http plugin but the
 necessary
 changes seems to be integrated there already.
 - updated the plugins package to the latest version for our release
 
 Check:
 /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1
 -c2
 
 Packages:
 
 ii nagios-images 0.5
 ii nagios-nrpe-plugin 2.12-4ubuntu1.10.04.1
 ii nagios-nrpe-server 2.12-4ubuntu1.10.04.1
 ii nagios-plugins 1.4.14-1ubuntu1
 ii nagios-plugins-basic 1.4.14-1ubuntu1
 ii nagios-plugins-standard 1.4.14-1ubuntu1
 ii nagios3 3.2.0-4ubuntu2.2
 ii nagios3-cgi 3.2.0-4ubuntu2.2
 ii nagios3-common 3.2.0-4ubuntu2.2
 ii nagios3-core 3.2.0-4ubuntu2.2
 ii nagiosgrapher 1.7.1-1
 
 Does anyone know why it gives me a status 200 OK back? At the moment I
 can't
 rely on my Nagios checks..
 
 Thank you in advance
 
 Regards
 Jaap
 
 
 
 --
 
 Monitor your physical, virtual and cloud infrastructure from a single
 web console. Get in-depth insight into apps, servers, databases, vmware,
 SAP, cloud infrastructure, etc. Download 30-day Free Trial.
 Pricing starts from $795 for 25 servers or applications!
 http://p.sf.net/sfu/zoho_dev2dev_nov