[Nagios-users-br] Nagios Distribuído

2011-04-01 Thread Gerheim
Olá,

Sou novo em Nagios e to com uma dúvida.
Estou pesquisando uma forma de configurar um cenário da seguinte forma:

   - Um Nagios central com o Centreon
   - Um (ou vários) Nagios satélites, também com Centreon

No Nagios central existirão todos os objetos (hosts, hostgroups, services,
etc ...) e a administração será feita pelo Centreon.
Já no(s) Nagios satélites serão configurados somente alguns objetos e
administrados por um Centreon local.
A idéia é fazer com que os Nagios satélites fiquem responsáveis somente por
monitorarem aqueles objetos definidos de acordo com a política. Os Nagios
satélites fariam a monitoracao e enviariam o resultado para o Nagios
central. Dessa forma eu garantiria independencia entre todos os Nagios.
As soluções que achei -  Mod_Gearman, NCSA e DNX - não fazem isso (pelo que
entendi).

Existe alguma forma de fazer isso?

No mais, obrigado.

*Wallace Knopp de Menezes Gerheim*
--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki


Re: [Nagios-users] nagios send_nsca

2011-04-01 Thread Julian_Grunnell
Ah, that's it Jim - thanks works a treat now!!
 
Thanks.
Julian Grunnell | UNIX Analyst, Infrastructure | TD Waterhouse
T: +44 (0) 113 346 2824 | M: +44 (0) 788 935 2527



Jim Avery j...@jimavery.me.uk 
31/03/2011 16:25
Please respond to
Nagios Users List nagios-users@lists.sourceforge.net


To
Nagios Users List nagios-users@lists.sourceforge.net
cc
julian_grunn...@tdwh.co.uk
Subject
Re: [Nagios-users] nagios send_nsca






On 31 March 2011 14:42,  julian_grunn...@tdwh.co.uk wrote:

 Hi - hope someone can help me with the above, I want to use this to send
 multiple lines of output via send_nsca and them to be displayed as 
separate
 lines in Nagios under the Status Information box BUT ALL for the same
 Service check. I've done this in the past and can't for the life of me
 remember how I did it now. So the input file will be something like 
this:

 serverservice check status code   This is line 1br This 
is
 line 2br This is line 3br etc.

 Like I say I'm sure at a previous role I was doing it like this and it
 worked fine, however now all I get displayed in Nagios is:

 This is line 1br This is line 2br This is line 3br etc.

 Rather than:

 This is line 1
 This is line 2
 This is line 3
 etc.


I'm not entirely sure, but is it this directive in cgi.cfg you need?:-

# ESCAPE HTML TAGS
# This option determines whether HTML tags in host and service
# status output is escaped in the web interface.  If enabled,
# your plugin output will not be able to contain clickable links.

escape_html_tags=0

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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


___

Consider the environment: Please don't print this e-mail unless you really need 
to.

Confidentiality:  This email and its attachments are intended for the above 
named only and may be confidential.  If they have come to you in error you must 
take no action based on them, nor must you copy or show them to anyone; please 
reply to this email and highlight the error.

Viruses:  Although we have taken steps to ensure that this email and 
attachments are free from any virus, we advise that in keeping with good 
computing practice the recipient should ensure that they are actually 
virus-free.

Brokerage services provided by TD Waterhouse Investor Services (Europe) Limited 
(a subsidiary of The Toronto-Dominion Bank).  Authorised and regulated by the 
Financial Services Authority (FSA registered number 141282), member of the 
London Stock Exchange and the PLUS market. Incorporated in England and Wales 
under registration number 2101863.  Registered office: Exchange Court, Duncombe 
Street, Leeds LS1 4AX. Banking services provided by TD Waterhouse Bank N.V. 
authorised and regulated by De Nederlandsche Bank and the Financial Services 
Authority for UK Business (FSA registered number 216791).  Incorporated in the 
Netherlands and registered as a branch in England and Wales under branch 
registration number BR006780.
___
--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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] Escalating notifications

2011-04-01 Thread Patrik Båt
Hello mailinglist!

im trying to get a notification like this:

in first hardstate, email staff. (notication 1)

at the other notification (notification 2) im sending a SMS to the
oncall.

But the problem is, that on recovery im only getting a SMS due to the
sms escalation is in use.

Anyone have any good way to get this to work?

1. MAIL Problem
2. SMS Problem

On recovery:

1. Mail Recovery
2. SMS Recovery

with 2 escalations, i get like this:

1. Mail problem
2. Mail problem, SMS problem

recovery:

1. SMS recovery.

Config:

# SMS

define serviceescalation {
host_name *
service_description *
first_notification 2
last_notification 3
notification_interval 0
contacts oncall
}

define hostescalation {
host_name *
first_notification 2
last_notification 3
notification_interval 0
contacts oncall
}

# MAIL

define serviceescalation {
host_name *
service_description *
first_notification 1
last_notification 1
notification_interval 10 
contacts sysadmin.reports
}

define hostescalation {
host_name *
first_notification 1
last_notification 1
notification_interval 10
contacts sysadmin.reports
}

i have tried with diffrent last_notifications and so on, but with no
luck.

Regards Patrik Båt.



signature.asc
Description: This is a digitally signed message part
--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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] check_san_switch

2011-04-01 Thread Tntteam
Hi,

I'm looking for a check_san_switch plugin, I found this one :

http://exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/SAN-and-NAS/Check-SAN-Switch-Health/details

But only checks the san switch health.

Anyone knowns about a plugin that would output performance data of san
switch ports ?

Thanks
--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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] monitor http traffic

2011-04-01 Thread Giles Coochey

On 01/04/2011 01:48, khurram aziz wrote:
Can you share configurations here cauz i am not really in da mood of 
buying books at the moment :)



Are you in 'da mood' of paying a consultant to do it for you?

--
Best Regards,

Giles Coochey
NetSecSpec Ltd
NL T-Systems Mobile: +31 681 265 086
NL Mobile: +31 626 508 131
GIB Mobile: +350 5401 6693
Email/MSN/Live Messenger: gi...@coochey.net
Skype: gilescoochey





smime.p7s
Description: S/MIME Cryptographic Signature
--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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_san_switch

2011-04-01 Thread Yueh-Hung Liu
does it provide SNMP objects for querying?


On Fri, Apr 1, 2011 at 6:43 PM, Tntteam tntt...@free.fr wrote:
 Hi,

 I'm looking for a check_san_switch plugin, I found this one :

 http://exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/SAN-and-NAS/Check-SAN-Switch-Health/details

 But only checks the san switch health.

 Anyone knowns about a plugin that would output performance data of san
 switch ports ?

 Thanks

 --
 Create and publish websites with WebMatrix
 Use the most popular FREE web apps or write code yourself;
 WebMatrix provides all the features you need to develop and
 publish your website. http://p.sf.net/sfu/ms-webmatrix-sf

 ___
 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


--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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_san_switch

2011-04-01 Thread tntteam
Hi,

Yes, as stated before check_san_switch_health from nagios exchange works (via 
snmp ofc).

I can read the performance value via snmpwalk. I wanted to know if someone 
already done the work of creating a plugin for this.

Thanks

- Mail Original -
De: Yueh-Hung Liu yuehung@gmail.com
À: Nagios Users List nagios-users@lists.sourceforge.net
Envoyé: Vendredi 1 Avril 2011 13h16:34 GMT +01:00 Amsterdam / Berlin / Berne / 
Rome / Stockholm / Vienne
Objet: Re: [Nagios-users] check_san_switch

does it provide SNMP objects for querying?


On Fri, Apr 1, 2011 at 6:43 PM, Tntteam tntt...@free.fr wrote:
 Hi,

 I'm looking for a check_san_switch plugin, I found this one :

 http://exchange.nagios.org/directory/Plugins/Hardware/Storage-Systems/SAN-and-NAS/Check-SAN-Switch-Health/details

 But only checks the san switch health.

 Anyone knowns about a plugin that would output performance data of san
 switch ports ?

 Thanks

 --
 Create and publish websites with WebMatrix
 Use the most popular FREE web apps or write code yourself;
 WebMatrix provides all the features you need to develop and
 publish your website. http://p.sf.net/sfu/ms-webmatrix-sf

 ___
 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


--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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] Escalating notifications

2011-04-01 Thread Paul M. Dubuc
Patrik Båt wrote:
 Hello mailinglist!

 im trying to get a notification like this:

 in first hardstate, email staff. (notication 1)

 at the other notification (notification 2) im sending a SMS to the
 oncall.

 But the problem is, that on recovery im only getting a SMS due to the
 sms escalation is in use.

 Anyone have any good way to get this to work?

 1. MAIL Problem
 2. SMS Problem

 On recovery:

 1. Mail Recovery
 2. SMS Recovery

 with 2 escalations, i get like this:

 1. Mail problem
 2. Mail problem, SMS problem

 recovery:

 1. SMS recovery.

 Config:

 # SMS

 define serviceescalation {
  host_name *
  service_description *
  first_notification 2
  last_notification 3
  notification_interval 0
  contacts oncall
   }

 define hostescalation {
  host_name *
  first_notification 2
  last_notification 3
  notification_interval 0
  contacts oncall
   }

 # MAIL

 define serviceescalation {
  host_name *
  service_description *
  first_notification 1
  last_notification 1
  notification_interval 10
  contacts sysadmin.reports
   }

 define hostescalation {
  host_name *
  first_notification 1
  last_notification 1
  notification_interval 10
  contacts sysadmin.reports
   }

 i have tried with diffrent last_notifications and so on, but with no
 luck.

 Regards Patrik BÃ¥t.


Try using a separate escalation for the recovery events.  The recovery event 
is the last numbered event so it's hard to catch without a specific 
escalation.  Example:

define serviceescalation {
host_name *
service_description *
first_notification 1
last_notification 0
notification_interval 0
contacts sysadmin.reports,oncall
escalation_options r
}

define hostescalation {
host_name *
first_notification 1
last_notification 0
notification_interval 0
contacts sysadmin.reports,oncall
escalation_options r
}


--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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] monitor http traffic

2011-04-01 Thread Ennis Ibarra
We've implemented a custom plugin using wget, it is kind of touchy when it 
comes to performance info, but it will log into your app (if it is password 
driven) with a user and by grep-ing the output you'll be able to tell the 
status. 

wget -O your-temp-file -q --user=usr --password='pass' 
http://${hostname}:port 

Hope this helps, we all need a break some time. 

Have a nice one! 



- Original Message - 
From: khurram aziz khurramazizkha...@yahoo.com 
To: Nagios Users List nagios-users@lists.sourceforge.net 
Sent: Thursday, March 31, 2011 5:48:20 PM 
Subject: Re: [Nagios-users] monitor http traffic 




Can you share configurations here cauz i am not really in da mood of buying 
books at the moment :) 
Khurram Aziz Khalid 





From: Jim Avery j...@jimavery.me.uk 
To: Nagios Users List nagios-users@lists.sourceforge.net 
Sent: Fri, April 1, 2011 3:39:11 AM 
Subject: Re: [Nagios-users] monitor http traffic 

On 31 March 2011 21:51, khurram aziz  khurramazizkha...@yahoo.com  wrote: 
 Hi, 
 
 I have a windows server 2003 based web server ( IIS) that has 5 websites 
 running on it and each web site has a application pool allocated to it. What 
 I want to do is to add this web server in my Nagios so that I can keep an 
 eye on whether these services are running or not and at the same time also 
 to graph their performance using pnp4nagios... 
 
 can some1 walk me through the configurations plz... 


Wolfgang Barth walked me through all this sort of stuff. 

http://nostarch.com/nagios.htm 

hth, 

Jim 

-- 
Create and publish websites with WebMatrix 
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf 
___ 
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 


-- 
Create and publish websites with WebMatrix 
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf 

___ 
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 --
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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] Escalating notifications

2011-04-01 Thread Patrik Båt
Smart thinking there, works perfectly!

Thanks alot!

On Fri, 2011-04-01 at 09:49 -0400, Paul M. Dubuc wrote:
 Patrik Båt wrote:
  Hello mailinglist!
 
  im trying to get a notification like this:
 
  in first hardstate, email staff. (notication 1)
 
  at the other notification (notification 2) im sending a SMS to the
  oncall.
 
  But the problem is, that on recovery im only getting a SMS due to the
  sms escalation is in use.
 
  Anyone have any good way to get this to work?
 
  1. MAIL Problem
  2. SMS Problem
 
  On recovery:
 
  1. Mail Recovery
  2. SMS Recovery
 
  with 2 escalations, i get like this:
 
  1. Mail problem
  2. Mail problem, SMS problem
 
  recovery:
 
  1. SMS recovery.
 
  Config:
 
  # SMS
 
  define serviceescalation {
   host_name *
   service_description *
   first_notification 2
   last_notification 3
   notification_interval 0
   contacts oncall
  }
 
  define hostescalation {
   host_name *
   first_notification 2
   last_notification 3
   notification_interval 0
   contacts oncall
  }
 
  # MAIL
 
  define serviceescalation {
   host_name *
   service_description *
   first_notification 1
   last_notification 1
   notification_interval 10
   contacts sysadmin.reports
  }
 
  define hostescalation {
   host_name *
   first_notification 1
   last_notification 1
   notification_interval 10
   contacts sysadmin.reports
  }
 
  i have tried with diffrent last_notifications and so on, but with no
  luck.
 
  Regards Patrik BÃ¥t.
 
 
 Try using a separate escalation for the recovery events.  The recovery event 
 is the last numbered event so it's hard to catch without a specific 
 escalation.  Example:
 
 define serviceescalation {
   host_name *
   service_description *
   first_notification 1
   last_notification 0
   notification_interval 0
   contacts sysadmin.reports,oncall
   escalation_options r
 }
 
 define hostescalation {
   host_name *
   first_notification 1
   last_notification 0
   notification_interval 0
   contacts sysadmin.reports,oncall
   escalation_options r
 }
 



signature.asc
Description: This is a digitally signed message part
--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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] monitor http traffic

2011-04-01 Thread Francisco Neira
2011/4/1 Giles Coochey gi...@coochey.net

 On 01/04/2011 01:48, khurram aziz wrote:

 Can you share configurations here cauz i am not really in da mood of
 buying books at the moment :)

  Are you in 'da mood' of paying a consultant to do it for you?


:-)))

-- 
Francisco Neira, ISO 27002
Usuario Linux # 165985
ISACA No.565432, IEEE No.90934498
Lima, Peru -05:00 GMT
--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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] Escalating notifications

2011-04-01 Thread Edwin Zoeller
This is also what I am looking for. Where would you put the separate 
escalation? 

-Original Message-
From: Paul M. Dubuc [mailto:w...@paul.dubuc.org] 
Sent: Friday, April 01, 2011 8:49 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Escalating notifications

Patrik Båt wrote:
 Hello mailinglist!

 im trying to get a notification like this:

 in first hardstate, email staff. (notication 1)

 at the other notification (notification 2) im sending a SMS to the 
 oncall.

 But the problem is, that on recovery im only getting a SMS due to the 
 sms escalation is in use.

 Anyone have any good way to get this to work?

 1. MAIL Problem
 2. SMS Problem

 On recovery:

 1. Mail Recovery
 2. SMS Recovery

 with 2 escalations, i get like this:

 1. Mail problem
 2. Mail problem, SMS problem

 recovery:

 1. SMS recovery.

 Config:

 # SMS

 define serviceescalation {
  host_name *
  service_description *
  first_notification 2
  last_notification 3
  notification_interval 0
  contacts oncall
   }

 define hostescalation {
  host_name *
  first_notification 2
  last_notification 3
  notification_interval 0
  contacts oncall
   }

 # MAIL

 define serviceescalation {
  host_name *
  service_description *
  first_notification 1
  last_notification 1
  notification_interval 10
  contacts sysadmin.reports
   }

 define hostescalation {
  host_name *
  first_notification 1
  last_notification 1
  notification_interval 10
  contacts sysadmin.reports
   }

 i have tried with diffrent last_notifications and so on, but with no 
 luck.

 Regards Patrik BÃ¥t.


Try using a separate escalation for the recovery events.  The recovery event is 
the last numbered event so it's hard to catch without a specific escalation.  
Example:

define serviceescalation {
host_name *
service_description *
first_notification 1
last_notification 0
notification_interval 0
contacts sysadmin.reports,oncall
escalation_options r
}

define hostescalation {
host_name *
first_notification 1
last_notification 0
notification_interval 0
contacts sysadmin.reports,oncall
escalation_options r
}


--
Create and publish websites with WebMatrix Use the most popular FREE web apps 
or write code yourself; WebMatrix provides all the features you need to develop 
and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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] Escalating notifications

2011-04-01 Thread Paul M. Dubuc
Same place you put the others.  The thing that makes them only apply to 
recovery events is the

escalation_options r

directive.

Edwin Zoeller wrote:
 This is also what I am looking for. Where would you put the separate 
 escalation?

 -Original Message-
 From: Paul M. Dubuc [mailto:w...@paul.dubuc.org]
 Sent: Friday, April 01, 2011 8:49 AM
 To: Nagios Users List
 Subject: Re: [Nagios-users] Escalating notifications

 Patrik Båt wrote:
 Hello mailinglist!

 im trying to get a notification like this:

 in first hardstate, email staff. (notication 1)

 at the other notification (notification 2) im sending a SMS to the
 oncall.

 But the problem is, that on recovery im only getting a SMS due to the
 sms escalation is in use.

 Anyone have any good way to get this to work?

 1. MAIL Problem
 2. SMS Problem

 On recovery:

 1. Mail Recovery
 2. SMS Recovery

 with 2 escalations, i get like this:

 1. Mail problem
 2. Mail problem, SMS problem

 recovery:

 1. SMS recovery.

 Config:

 # SMS

 define serviceescalation {
   host_name *
   service_description *
   first_notification 2
   last_notification 3
   notification_interval 0
   contacts oncall
  }

 define hostescalation {
   host_name *
   first_notification 2
   last_notification 3
   notification_interval 0
   contacts oncall
  }

 # MAIL

 define serviceescalation {
   host_name *
   service_description *
   first_notification 1
   last_notification 1
   notification_interval 10
   contacts sysadmin.reports
  }

 define hostescalation {
   host_name *
   first_notification 1
   last_notification 1
   notification_interval 10
   contacts sysadmin.reports
  }

 i have tried with diffrent last_notifications and so on, but with no
 luck.

 Regards Patrik BÃ¥t.


 Try using a separate escalation for the recovery events.  The recovery event 
 is the last numbered event so it's hard to catch without a specific 
 escalation.  Example:

 define serviceescalation {
   host_name *
   service_description *
   first_notification 1
   last_notification 0
   notification_interval 0
   contacts sysadmin.reports,oncall
   escalation_options r
 }

 define hostescalation {
   host_name *
   first_notification 1
   last_notification 0
   notification_interval 0
   contacts sysadmin.reports,oncall
   escalation_options r
 }


 --
 Create and publish websites with WebMatrix Use the most popular FREE web apps 
 or write code yourself; WebMatrix provides all the features you need to 
 develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
 ___
 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

 --
 Create and publish websites with WebMatrix
 Use the most popular FREE web apps or write code yourself;
 WebMatrix provides all the features you need to develop and
 publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
 ___
 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


--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
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