На 22.3.2007 16:41 Alexander Iliev пише:
> Здравейте.
>
> Боря един nagios и горе-долу съм го нагласил, но явно има проблем с
> notification-ите, а именно - не праща такива.
>
> През конзолата с потребител nagios успявам да пратя поща със абсолютно
> същата команда, която е конфигурирана като host-notify-by-email. Няма
> върнати писма от този потребител, няма нищо в опашката.
>
> Малко конфигурации:
>
> ------------------
> define contact{
>         contact_name                    sasoiliev
>         alias                           Alexander Iliev
>         host_notification_period        always
>         service_notification_period     always
>         host_notification_options       d,u,r,f,n
>         service_notification_options    w,u,c,r,f,n
>         host_notification_commands      host-notify-by-email
>         service_notification_commands   notify-by-email
>         email                           [EMAIL PROTECTED]
>         }
>
> define contactgroup{
>         contactgroup_name               all
>         alias                           Everyone
>         members                         sasoiliev
>         }
>
> define host{
>         name                    generic-host
>         max_check_attempts      5
>         check_period            always
>         check_command           check-host-alive
>         contact_groups          all
>         notification_interval   0
>         notification_period     always
>         notification_options    d,u,r,f
>         notifications_enabled   1
>         register                0
>         }
>
> define host{
>         host_name               www
>         alias                   web server
>         address                 X.X.X.X
>         use                     generic-host
>         }
>
> # cat /etc/nagios/nagios.cfg | grep notification | grep -E '^[^#]'
> log_notifications=1
> notification_timeout=30
> enable_notifications=1
> ------------------
>
> За тоя примерния хост да кажем отрязвам достъпа към него от машината,
> където е nagios-а за да симулирам, че е down. Nagios-а се усеща, че е
> down машината, но не праща нищичко.
>
> Явно не мога да се сетя как да търся такъв проблем в google, понеже
> нищо интересно не намерих, пък не е да не съм търсил.
>
> Ще съм благодарен на всякакви предложения и идеи.
>
> Поздрави,

А какво имаш в commands.cfg за notify-by-email и host-notify-by-email ?

-- 
This correspondence is strictly confidential. Any screening, filtering
and/or production for the purpose of public or otherwise disclosure is
forbidden without written permission by the author signed above. If you are
not the intended recipient, please immediately notify the sender and
permanently delete any copies

PGP KeyID: 0x3118168B
Keyserver: pgp.mit.edu
Key fingerprint BB50 2983 0714 36DC D02E  158A E03D 56DA 3118 168B

Attachment: pgpfjAH3Lnqpo.pgp
Description: PGP signature

_______________________________________________
Lug-bg mailing list
[email protected]
http://linux-bulgaria.org/mailman/listinfo/lug-bg

Reply via email to