nagios email notification / avagy hol vannak az emailek?

Sziasztok!

Van 3db nagios szerver amelyek ugyanolyan elv alapjan vannak bekonfiguralva, ezekbol megis csak 1 mukodik kifogastalanul...mindegyik atesett mar upgrade-en OS szinten, a nagios verzioszint megegyezo...

A hibajelenseg a kovetkezo:

Letre van hozva a, b es c felhasznalo, ezt a nagios contactnak nevezi, ezek a felhasznalok rendelkeznek email cimmel...a contactokat, contactgroupba lehet szervezni, tehat pl. a contact tagja z groupnak...tehat azok a szervizek es hosztok [erre a 2db altipusra bontja a nagios a figyelni kivant szolgaltatasokat, eszkozoket] ahol a z group van megadva mint contact, azok az 'a' felhasznalonak fognak notificationt kuldeni, abban az esetben ha nem elerheto pl. egy ping health check-nel a pl. a 192.168.1.1-en logo router...

A problema az, hogy a 3db nagios szerverbol 2db nem mindegyik contactgroupnak vagy nem mindegyik hosztrol, szervizrol hajlando notification email-t kuldeni, egyelore szamomra teljesen ismeretlen okbol...az os logjaiban jol laccik, hogy a nagios ezekben az esetekben meg sem probalja meghivni a kis rutinja alapjan a mail parancsot, hiaba valtozott a szolgaltatas statusza, ami a webes feluleten is jol laccik...

Otlet?

Koszi

Hozzászólások

Mindegyik generic-host -ot használ? Abban van nálad megadva, hogy mi alapján történjen az értesítés?

egyik sem hasznal generic-host -ot, amit default-bol a nagios letrehozott generic-host_nagios2.cfg -t es generic-service_nagios2.cfg -t, azt nem hasznalom, ezek helyett en hoztam letre ...-host.cfg es ...-service.cfg fajlokat, kulon minden grouphoz.

--
Vittem a buliba egy üveg sósavat. Oldódjon a hangulat...

Szia.

Az értesítéseket a contact-oknál is külön felül lehet definiálni. Ott megfelelőek az alábbi beállítások:

host_notifications_enabled
service_notifications_enabled
service_notification_period
host_notification_period
service_notification_options
host_notification_options

Üdv: Zoli

mindketto: gipszjakab

define contactgroup{
contactgroup_name gipszjakab
alias gipszjakab
members gipszjakab
}

define contact{
contact_name gipszjakab
alias gipszjakab
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r,f,s
host_notification_commands d,u,r,f,s
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
email gipszjakab@gipszjakab.hu
}

--
Vittem a buliba egy üveg sósavat. Oldódjon a hangulat...

define host{
name xyz-host ; The name of this host template
notifications_enabled 1 ; Host notifications are enabled
event_handler_enabled 1 ; Host 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_information 1 ; Retain non-status information across program restarts
check_command check_telnet
max_check_attempts 2
notification_interval 0
notification_period 24x7
notification_options d,u,r,f,s
contact_groups gipszjakab
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
--------------------------------------------------------------------------------------------------

define service{
name xyz-service ; The 'name' of this service template
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_information 1 ; Retain non-status information across program restarts
notification_interval 0 ; Only send notifications on status change by default.
is_volatile 0
check_period 24x7
normal_check_interval 5
retry_check_interval 1
max_check_attempts 2
notification_period 24x7
notification_options w,u,c,r,f,s
contact_groups gipszjakab
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
}

--
Vittem a buliba egy üveg sósavat. Oldódjon a hangulat...

Ha jol ertem, azt irtad, hogy 3 felhasznalobol csak az 'a' nevu van a 'z' nevu contact groupban. Ha a templateben csak 'z' groupot adod meg contact_groups-nak, akkor szerintem 'b' es 'c' nem fog ertesitest kapni. Ha azt szeretned, hogy minden contact kapjon ertesitest, akkor azokat is meg kell adnod a contact_groups alatt.

Remelem tudtam segiteni.

na de varj.

define contactgroup{
contactgroup_name gipszjakab
alias gipszjakab
members gipszjakab
}

define contact{
contact_name gipszjakab
alias gipszjakab
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r,f,s
host_notification_commands d,u,r,f,s
service_notification_commands notify-service-by-email
host_notification_commands notify-host-by-email
email gipszjakab@gipszjakab.hu
}

ez alapjan es a define host es define service konfigok alapjan szerintem gipszjakabnak kellene kapnia notification-t, vagy mit nezek el?

mert gipszjakab bizony igy nem kap mailt...pedig szerintem kellene neki...

--
Vittem a buliba egy üveg sósavat. Oldódjon a hangulat...