Re: [Nagios-users] High Availabilty with Nagios

2013-05-10 Thread Andreas Ericsson
On 2013-05-09 11:19, Steve Shipway wrote:
 Does anyone have an HA setup for Nagios that works?

 I'm thinking of creating a NEB module that will link two Nagios
 setups, and replicate over all status changes, config changes,
 downtime, comments, etc etc and then set the 'standby' Nagios to be
 checks/notifications disabled when in standby mode, and enabled when
 in active mode.  Then put the two behind a failover load balancer
 (F5, Foundry or apache reverse proxy).

 However this would be too much work if someone else has already found
 an equivalent solution.

 I've looked at Merlin but it doesn't seem to do what I'm after (and
 the documentation is practically nonexistant - much the same as the
 NEB API documentation, in fact).  Mod_gearman lets me have redundant
 checks and replicate *active* checks, but not commands, downtime or
passive checks.


Merlin would do exactly that if you set one of the nodes as a poller
but having all hosts assigned to it. When the poller goes down, the
master will by default take over checks for it.

Merlin is actually pretty well documented, but as textfiles that you
have to read the oldschool way. If there's anything you find lacking
from the HOWTO document or the README, please let me know and I'll
amend it.


 Does anyone out there have a workable way to get an active/standby or
 active/active Nagios setup?  Would be interested in hearing all
 ideas...


Well, we have about 800 of them.

-- 
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.

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
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] High Availabilty with Nagios

2013-05-10 Thread Andreas Ericsson
On 2013-05-09 11:50, Supporto Tecnico - Crazy Network wrote:
 I would be interested too, i'm actually using merlind for this right
 now, but i would like to dont have for example double notifications if a
 server goes down.. and i do want both nagios set for notify, since if
 one is down (for any reason) the other one should be able to check and
 notify and vice-versa


Double notifications is a bug, unless you send passive checkresults to
both masters, in which case it's by design. Usually people want to solve
passive checks by arranging a single target ip or hostname to send to
and then add peered nodes at that tier as necessary, so as to not have
to send checkresults to multiple nodes from all the monitored machines.

-- 
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.

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
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] Trying to figure out the PCRE expression for Nagiosgraph Map

2013-05-10 Thread Percy Kwong
I'm writing a pcre rule for a nagios map file.

The output for one query would be:

PROCS OK: 11 processes with args 'apache'

What would the map rule look like that would do the following?

1. Begin with PROCS OK:
2. End with args 'apache'
3. Extract only the numeric value before the word processes?

Assuming it would be a nested regex within the regex.

So basically, the map regex would only return 11, but enforce the rules 
above?

Just trying to understand the logic behind this.

Thanks.

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
___
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] Trying to figure out the PCRE expression for Nagiosgraph Map

2013-05-10 Thread Claudio Kuenzler
 The output for one query would be:

 PROCS OK: 11 processes with args 'apache'


Well first of all you'd have to make sure that nagiosgraph also takes the
output in account.
It's always better to do that with perfdata...

You have the choice to also take the output as source to parse, although I
strongly recommend to use perfdata. That's what it is for.



 What would the map rule look like that would do the following?

 1. Begin with PROCS OK:
 2. End with args 'apache'
 3. Extract only the numeric value before the word processes?


The regex would look something like this:

/output:PROCS.*:(\d+) processes.*/

assuming that you don't care about the args and the status (OK, WARNING,
CRITICAL) part.
Only the digit (11) would be taken out of the output in this case.
--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may___
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