[Nagios-users] Advice on setting up escalations

2010-07-27 Thread Mike A. Leonetti
Because people say that I go about things in a too complicated way,
rather than just posting what I want to do I'd like to try posting my
goal :D.

The goal is this:
- "Account managers" get alerts of only their clients (which consist of
certain hosts and all of their services) during work hours
- "On-call technicians" get alerts of only clients after hours.
- "Escalation team" gets alerts of all clients 24x7 but only if the
alert isn't responded to after 1 alert.
- "Nagios admin" gets alerted on all alerts

I have nagios functioning now with a 24x7 notification schedule just
notifying a group of people, but my company wanted to switch it up. Some
direction on the best way of doing this would be very appreciated.

Thanks.

-- 
Mike A. Leonetti
As warm as green tea


--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
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] Is there a way to have Nagios generate a non-critical event for "Return code of 126 is out of bounds"

2010-07-27 Thread Matthew Dougherty
When file permissions are wrong or other issues occur, nagios may be
prevented from executing a test but it generates a CRITICAL service
alert.

In this case I do not want to notify the application owner but instead
the nagios owner and I don't want it to be CRITICAL because it doesn't
indicate a service outage.

Is there a way configure how this is handled?

Matthew Dougherty
mdoug...@inch.com
973-325-8556


Matthew Dougherty
mdoug...@inch.com
973-325-8556
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/___
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] timeperiod not behaving as expected

2010-07-27 Thread Assaf Flatto
Carl

You have the right idea but wrong setup .
What you want to do it check : credit_card_hours .
and notification changed to  : credit_card_hours , that means it will 
only alert you in the hours that it is not " administratively down".

so have these directives changed :

notification_period credit_card_hours

check_periodcredit_card_hours

that should solve your alerts issue.

Assaf
Carl Karsten wrote:
> So I took over someone's nagios setup - it works fine except it checks
> that a box is up 24x7 but the box has a cronjob that does 0600 ifup,
> 2000 ifdown;  so I get a wad of email every night telling me the box
> is down, and then the resolved when it comes back up.  So I tried to
> fix it, and now I get more email.
>
> Here is a diff of what I changed, my credit_card_hours, and the part
> of server.cfg that I think is relevant.
>
> ju...@four:~/temp$ diff nag0.txt nag1.txt
> 1d0
> <
> 6c5
> < check_period24x7; By
> default, Linux hosts are checked round the clock
> ---
>   
>> check_periodcredit_card_hours
>> 
> 12,14c11,12
> < ; Note that
> the notification_period variable is being overridden from
> < ; the value
> that is inherited from the generic-host template!
> < notification_interval   60  ; Resend
> notifications every 2 hours
> ---
>   
>> notification_interval   60
>> 
>
>
> define timeperiod{
> timeperiod_name credit_card_hours
> alias   when credit cards can be processed
>
> sunday  06:00-20:00
> monday  06:00-20:00
> tuesday 06:00-20:00
> wednesday   06:00-20:00
> thursday06:00-20:00
> friday  06:00-20:00
> saturday06:00-20:00
>
>
> define host{
> use linux-server; This
> template inherits other values from the generic-host template
> host_name   mcve.cteusa.com ; The
> name of this host
> hostgroups  linux-servers
> check_periodcredit_card_hours
> check_interval  5   ; Actively
> check the host every 5 minutes
> retry_interval  1   ; Schedule
> host check retries at 1 minute intervals
> max_check_attempts  10  ; Check each
> Linux host 10 times (max)
> check_command   check-host-alive ; Default
> command to check Linux hosts
> notification_period 24x7; Linux admins hate to
> be woken up, so we only notify during the day
>
> notification_interval   60
> notification_optionsd,u,r   ; Only send
> notifications for specific host states
> contact_groups  admins  ;
> Notifications get sent to the admins by default
> register1
> }
>
> define service{
> use generic-service ; Inherit default
> values from a template
> host_name   mcve.cteusa.com
> service_description SMTP
> check_command   check_smtp!-t 5
> }
> define service{
> use generic-service ; Inherit default
> values from a template
> host_name   mcve.cteusa.com
> service_description SSH
> check_command   check_ssh
> }
> define service{
> use generic-service ; Name
> of service template to use
> host_name   mcve.cteusa.com
> service_description PING
> check_command   check_ping!100.0,20%!500.0,60%
> }
>
>
>   


--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
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 Community Down?

2010-07-27 Thread Tony Yarusso
On Tue, 2010-07-27 at 15:45 -0400, Matt Simmons wrote:
> Do the people who run the website look at this list, or does anyone
> have the contact for them?
> 
> On Tue, Jul 27, 2010 at 1:20 PM, Michael Friedrich
>  wrote:
> > On 2010-07-27 17:35, Matt Simmons wrote:
> >> I'm getting a 302 whenever I try to connect to the Nagios community
> >> site (http://community.nagios.org/) as linked to by the main site.
> >>
> >
> > This has been redirecting to the main page for a while now. Probably
> > because the Nagios community site has been hacked if this blog post
> > tells the truth.
> >
> > http://blog.sucuri.net/2010/07/nagios-community-site-hacked.html
> >

I don't actually run the site, but am in the same office as the guy who
does, so...close enough.  :)

I can confirm that it is indeed still the result of the WordPress
installation being hacked, as Michael noted.  I don't know what our plan
or timeline for addressing it is.

-- 
Tony Yarusso
Technical Team
___
Nagios Enterprises, LLC
Email:  tyaru...@nagios.com
Web:www.nagios.com


--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
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 Community Down?

2010-07-27 Thread Matt Simmons
Do the people who run the website look at this list, or does anyone
have the contact for them?

On Tue, Jul 27, 2010 at 1:20 PM, Michael Friedrich
 wrote:
> On 2010-07-27 17:35, Matt Simmons wrote:
>> I'm getting a 302 whenever I try to connect to the Nagios community
>> site (http://community.nagios.org/) as linked to by the main site.
>>
>
> This has been redirecting to the main page for a while now. Probably
> because the Nagios community site has been hacked if this blog post
> tells the truth.
>
> http://blog.sucuri.net/2010/07/nagios-community-site-hacked.html
>
> "It looks like a .htaccess redirection, but it might be something else.
> They are using an old version of WordPress, which may explain the
> compromise. We recommend people stay way from the site until it gets fixed."
>
>
>> Is this related to the wiki issue or something else? (Or did I not get
>> the memo?)
>>
>
> The wiki could have suffered from that too, but if no-one affiliated to
> those servers tells anything, we can just guess.
>
> Kind regards,
> Michael
>
> --
> DI (FH) Michael Friedrich
>
> Vienna University Computer Center
> Universitaetsstrasse 7 A-1010 Vienna, Austria
>
> email:  michael.friedr...@univie.ac.at
> phone:  +43 1 4277 14359
> fax:    +43 1 4277 14279
> web:    http://www.univie.ac.at/zid
>
> Icinga Core&  IDOUtils Developer
> http://www.icinga.org
>
>
> --
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> ___
> 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
>



-- 
LITTLE GIRL: But which cookie will you eat FIRST?
COOKIE MONSTER: Me think you have misconception of cookie-eating process.

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
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] timeperiod not behaving as expected

2010-07-27 Thread Carl Karsten
So I took over someone's nagios setup - it works fine except it checks
that a box is up 24x7 but the box has a cronjob that does 0600 ifup,
2000 ifdown;  so I get a wad of email every night telling me the box
is down, and then the resolved when it comes back up.  So I tried to
fix it, and now I get more email.

Here is a diff of what I changed, my credit_card_hours, and the part
of server.cfg that I think is relevant.

ju...@four:~/temp$ diff nag0.txt nag1.txt
1d0
<
6c5
< check_period24x7; By
default, Linux hosts are checked round the clock
---
> check_periodcredit_card_hours
12,14c11,12
< ; Note that
the notification_period variable is being overridden from
< ; the value
that is inherited from the generic-host template!
< notification_interval   60  ; Resend
notifications every 2 hours
---
>
> notification_interval   60


define timeperiod{
timeperiod_name credit_card_hours
alias   when credit cards can be processed

sunday  06:00-20:00
monday  06:00-20:00
tuesday 06:00-20:00
wednesday   06:00-20:00
thursday06:00-20:00
friday  06:00-20:00
saturday06:00-20:00


define host{
use linux-server; This
template inherits other values from the generic-host template
host_name   mcve.cteusa.com ; The
name of this host
hostgroups  linux-servers
check_periodcredit_card_hours
check_interval  5   ; Actively
check the host every 5 minutes
retry_interval  1   ; Schedule
host check retries at 1 minute intervals
max_check_attempts  10  ; Check each
Linux host 10 times (max)
check_command   check-host-alive ; Default
command to check Linux hosts
notification_period 24x7; Linux admins hate to
be woken up, so we only notify during the day

notification_interval   60
notification_optionsd,u,r   ; Only send
notifications for specific host states
contact_groups  admins  ;
Notifications get sent to the admins by default
register1
}

define service{
use generic-service ; Inherit default
values from a template
host_name   mcve.cteusa.com
service_description SMTP
check_command   check_smtp!-t 5
}
define service{
use generic-service ; Inherit default
values from a template
host_name   mcve.cteusa.com
service_description SSH
check_command   check_ssh
}
define service{
use generic-service ; Name
of service template to use
host_name   mcve.cteusa.com
service_description PING
check_command   check_ping!100.0,20%!500.0,60%
}


-- 
Carl K

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
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 Community Down?

2010-07-27 Thread Michael Friedrich
On 2010-07-27 17:35, Matt Simmons wrote:
> I'm getting a 302 whenever I try to connect to the Nagios community
> site (http://community.nagios.org/) as linked to by the main site.
>

This has been redirecting to the main page for a while now. Probably 
because the Nagios community site has been hacked if this blog post 
tells the truth.

http://blog.sucuri.net/2010/07/nagios-community-site-hacked.html

"It looks like a .htaccess redirection, but it might be something else. 
They are using an old version of WordPress, which may explain the 
compromise. We recommend people stay way from the site until it gets fixed."


> Is this related to the wiki issue or something else? (Or did I not get
> the memo?)
>

The wiki could have suffered from that too, but if no-one affiliated to 
those servers tells anything, we can just guess.

Kind regards,
Michael

-- 
DI (FH) Michael Friedrich

Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria

email:  michael.friedr...@univie.ac.at
phone:  +43 1 4277 14359
fax:+43 1 4277 14279
web:http://www.univie.ac.at/zid

Icinga Core&  IDOUtils Developer
http://www.icinga.org


--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
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 Community Down?

2010-07-27 Thread Assaf Flatto
Matt Simmons wrote:
> I'm getting a 302 whenever I try to connect to the Nagios community
> site (http://community.nagios.org/) as linked to by the main site.
>
> Is this related to the wiki issue or something else? (Or did I not get
> the memo?)
>
> --Matt
>
>
>   
I am able to access the website , with no problems.

Assaf

-- 
Never,Ever Cut A Deal With a Dragon 


Next year I will be doing the London to Paris bike ride to 
raise money for the DogTrust (www.dogtrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto


--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
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] Nagios Community Down?

2010-07-27 Thread Matt Simmons
I'm getting a 302 whenever I try to connect to the Nagios community
site (http://community.nagios.org/) as linked to by the main site.

Is this related to the wiki issue or something else? (Or did I not get
the memo?)

--Matt


-- 
LITTLE GIRL: But which cookie will you eat FIRST?
COOKIE MONSTER: Me think you have misconception of cookie-eating process.

--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
___
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