[Nagios-users] usa of multiple templates in contact-definition

2008-09-22 Thread Ilya Ruprecht
Dear list,

following situation:

two contact-templates are defined:

-
# 
# Normal workhours, 8-17
define contact{
namecontact-at-workhours
use generic-contact
service_notification_commands   notify-service-by-email
host_notification_commands  notify-host-by-email
register0   
}

# and one hour before work and 3 hours after, 7-8 + 17-21
define contact{
namecontact-at-prepostworkhours
use generic-contact
service_notification_period prepostworkhours
host_notification_periodprepostworkhours
service_notification_commands   
notify-service-by-email,notify-service-by-sms
host_notification_commands  notify-host-by-email,notify-host-by-sms 
register0
}
# 

# 
define timeperiod{
timeperiod_name workhours
alias   Normal Work Hours
monday  08:00-17:00
tuesday 08:00-17:00
wednesday   08:00-17:00
thursday08:00-17:00
friday  08:00-17:00
}

define timeperiod{
timeperiod_name prepostworkhours
alias   Eine Stunde VOR der Schicht und die Spätschicht 
inklusive
monday  07:00-8:00,17:00-21:00
tuesday 07:00-8:00,17:00-21:00
wednesday   07:00-8:00,17:00-21:00
thursday07:00-8:00,17:00-21:00
friday  07:00-8:00,17:00-21:00
}
# 
-

Then a contact person is defined:

-
define contact{
contact_nameiruprecht
use 
contact-at-workhours,contact-at-prepostworkhours
alias   Vladimirs Vecgailis
email   [EMAIL PROTECTED]
pager   0179123123123
}
-

So far so good.

The problem is - the contact "iruprecht" is getting notifications only in the 
"workhours".

I also see in the "View config"-menu, that  "iruprecht" will get notified only 
in the "workhours".

The thing is, as far as i know YOU CAN use multiple template-references in the 
contact-definition.
(At least it was told so by the speaker in a 
presentation(http://www.linuxtag.org/2008/de/conf/events/vp-mittwoch/vortragsdetails.html?talkid=64)
 at the LinuxTag 2008.

But somehow it seems not to work..


The Nagios-version used is 3.0.3.


Thanks in advance!

Ilya Ruprecht


-- 
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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] "notification_interval" from the "serviceescalation" is ignored?

2007-08-30 Thread Ilya Ruprecht
Hi all again!

I installed Nagios 3.0b2 and tested the serviceescalations with it - with
the same result:

"notification_interval" is ignored if i enter a value another then "0"(zero).
If i enter a zero - or even nothing - then i see in the webgui -
"Notify Only Once (No Re-notification)" in the "Notification Interval"-column 
for
these hosts.
Even if I enter an clearly nonsense, like "jsdfjfsdakjl" - the value is ignored 
and
the "pre-flight-check" dont brings an error.


It's a BUG! Isn't it?


Ilya

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
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] "notification_interval" from the "serviceescalation" is ignored?

2007-08-30 Thread Ilya Ruprecht
Hi admins!


Following situation: Debian 4.0 + Nagios 3.0b1.


I defined a service-template SSH:


define service{
namecheck-ssh-service ; The 
'name' of this service template
check_command   check_ssh
service_description SSH
active_checks_enabled   1   ; Active 
service checks are enabled
passive_checks_enabled  1   ; Passive 
service checks are enabled/accepted
parallelize_check   1   ; Active 
service checks should be parallelized (disabling this can lead to major 
performance problems)
obsess_over_service 1   ; We should 
obsess over this service (if necessary)
check_freshness 0   ; Default is to 
NOT check service 'freshness'
notifications_enabled   1   ; Service 
notifications are enabled
event_handler_enabled   1   ; Service event 
handler is enabled
flap_detection_enabled  1   ; Flap 
detection is enabled
failure_prediction_enabled  1   ; Failure 
prediction is enabled
process_perf_data   1   ; Process 
performance data
retain_status_information   1   ; Retain status 
information across program restarts
retain_nonstatus_information1   ; Retain 
non-status information across program restarts
is_volatile 0   ; The service 
is not volatile
check_period24x7; The service 
can be checked at any time of the day
max_check_attempts  3   ; Re-check the 
service up to 3 times in order to determine its final (hard) state
normal_check_interval   10  ; Check the 
service every 10 minutes under normal conditions
retry_check_interval1   ; Re-check the 
service every two minutes until a hard state can be determined
contact_groups  linux-admins; Notifications 
get sent out to everyone in the 'admins' group
notification_optionsw,u,c,r ; Send 
notifications about warning, unknown, critical, and recovery events
notification_interval   60  ; Re-notify 
about service problems every hour
notification_period 24x7; Notifications 
can be sent out at any time
register0   ; DONT REGISTER 
THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
}



Then i defined a hostgroup, for which i use the SSH service


define hostgroup{
hostgroup_name  vpn-server
alias   VPN-Gateways
members vpn-gw1-remote,vpn-gw1-local
}



Now i defined a service that uses the SSH-template and
is applied to the group "vpn-server"


define service{
use check-ssh-service
notes   SSH auf Linux-Servern
hostgroup_name  vpn-server
service_description SSH
}



And at last i defined two service-escalations for SSH

(i've set the intervals so short only for testing purposes)

define serviceescalation{
hostgroup_name  vpn-server
service_description SSH
first_notification  1
last_notification   5
notification_interval   3
contact_groups  linux-admins
}

define serviceescalation{
hostgroup_name  vpn-server
service_description SSH
first_notification  5
last_notification   0
notification_interval   10
contact_groups  linux-admins
}


"interval_length" is set to 60 seconds in nagios.cfg.

So far, so good.



1. PROBLEM:
===

Now, i get following notifications (these here are the syslog-entries):


Aug 30 13:05:38 unicorn nagios: SERVICE ALERT: 
vpn-gw1-local;SSH;CRITICAL;SOFT;1;CRITICAL - Socket timeout after 10 seconds 
Aug 30 13:06:38 unicorn nagios: SERVICE ALERT: 
vpn-gw1-local;SSH;CRITICAL;SOFT;2;CRITICAL - Socket timeout after 10 s