Re: [Zope] zope and nagios

2006-04-03 Thread Chris Withers

robert rottermann wrote:
nagios calls the intranet main page and checks if it finds designed by 
redCOR in the response.
Somehow a not responding (vs not running) zope does not trigger the 
nagios rule.


Maybe you have an error page somewhere which also contains those words?

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] zope and nagios

2006-03-31 Thread Chris Withers

robert rottermann wrote:

When you have zope running on top of zeo and stop zeo
you still can ask for a page and it will be returned correctly.


We have a zeoup-based plugin that checks for that, lemme know if you're 
interested and I'll see if I can put it somewhere public.



We run into situations where zope (actually a plone site) does not respond
to user requests. However nagios does not complain.


Huh? That makes no sense... what, exactly, was nagios checking here and 
what were the user requests?


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] zope and nagios

2006-03-31 Thread Martijn Pieters
On 3/30/06, robert rottermann [EMAIL PROTECTED] wrote:
 Hi there,
 I would like to test if zope is running using nagios.

 I would be gratefull if somebody could could point me to some info
 how to best do this.
 I am especially interested to learn what to test to detect a running but
 not responding zope.
 Just looking up a page seems not to do the trick.

Looking up the page, and getting a timeout would be a good indicator,
I should think.

Anyway, we use a little nagios plugin from Gocept, get it from their SVN at:

  http://svn.gocept.com/repos/gocept/ZNagios/trunk/

(viewcvs view at: http://svn.gocept.com/viewcvs/ZNagios/trunk/)

It let's us also monitor database size, reference count and the error log.

--
Martijn Pieters
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


RE: [Zope] zope and nagios

2006-03-31 Thread Doyon, Jean-Francois
Actually, I'd love to have a look at your zeoup-based plugin myself :)

As Chris suggests, it is normal for Zope to keep running after it loses its
ZEO connection.  If you're worried about that, setup a separate ZEO monitor.

Cheers,
J.F.

-Original Message-
From: Chris Withers [mailto:[EMAIL PROTECTED] 
Sent: March 31, 2006 2:47 AM
To: robert rottermann
Cc: Doyon, Jean-Francois; zope
Subject: Re: [Zope] zope and nagios

robert rottermann wrote:
 When you have zope running on top of zeo and stop zeo you still can 
 ask for a page and it will be returned correctly.

We have a zeoup-based plugin that checks for that, lemme know if you're
interested and I'll see if I can put it somewhere public.

 We run into situations where zope (actually a plone site) does not 
 respond to user requests. However nagios does not complain.

Huh? That makes no sense... what, exactly, was nagios checking here and what
were the user requests?

cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
- http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] zope and nagios

2006-03-31 Thread robert rottermann

Chris Withers wrote:

robert rottermann wrote:

When you have zope running on top of zeo and stop zeo
you still can ask for a page and it will be returned correctly.


We have a zeoup-based plugin that checks for that, lemme know if 
you're interested and I'll see if I can put it somewhere public.

yes thanks. I am interested


We run into situations where zope (actually a plone site) does not 
respond

to user requests. However nagios does not complain.


Huh? That makes no sense... what, exactly, was nagios checking here 
and what were the user requests?



nagios calls the intranet main page and checks if it finds designed by
redCOR in the response.
Somehow a not responding (vs not running) zope does not trigger the
nagios rule.

thanks
robert


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


RE: [Zope] zope and nagios

2006-03-30 Thread Doyon, Jean-Francois
Actually to detect whether it is *running* fetching a page will do the
trick.  That's what we do here and it works fine.

That will NOT detect however if Zope is running, but errors are occuring.  I
sthat what you really want?

Why would looking up a page not do the trick?

J.F. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
robert rottermann
Sent: March 30, 2006 1:21 PM
To: zope
Subject: [Zope] zope and nagios

Hi there,
I would like to test if zope is running using nagios.

I would be gratefull if somebody could could point me to some info how to
best do this.
I am especially interested to learn what to test to detect a running but not
responding zope.
Just looking up a page seems not to do the trick.

thanks

robert
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] zope and nagios

2006-03-30 Thread Ron Bickers
On Thu March 30 2006 13:21, robert rottermann wrote:

 I would like to test if zope is running using nagios.

 I would be gratefull if somebody could could point me to some info
 how to best do this.
 I am especially interested to learn what to test to detect a running but
 not responding zope.
 Just looking up a page seems not to do the trick.

As far as I'm concerned, a not responding Zope and a not running Zope are the 
same thing.  check_http with the Zope port (and other necessary parameters) 
works fine for me.

You could write a custom check that does whatever you want (including 
checking the logs or zopectl), but I think that's more trouble than it's 
worth.

-- 
Ron
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] zope and nagios

2006-03-30 Thread robert rottermann

Doyon, Jean-Francois wrote:

Actually to detect whether it is *running* fetching a page will do the
trick.  That's what we do here and it works fine.

That will NOT detect however if Zope is running, but errors are occuring.  I
sthat what you really want?

Why would looking up a page not do the trick?

J.F. 

  

When you have zope running on top of zeo and stop zeo
you still can ask for a page and it will be returned correctly.
But you can not do nothing sensible on your site.

we do check with nagios for a page (looking for a spcial string).
We run into situations where zope (actually a plone site) does not respond
to user requests. However nagios does not complain.

Robert


begin:vcard
fn:robert  rottermann
n:rottermann;robert 
email;internet:[EMAIL PROTECTED]
tel;work:031 333 10 20
tel;fax:031 333 10 23
tel;home:031 333 36 03
x-mozilla-html:FALSE
version:2.1
end:vcard

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )