Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nagios Benachrichtigungen per email
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
aZZe
l33t
l33t


Joined: 20 Feb 2003
Posts: 965
Location: Dinslaken, Germany

PostPosted: Thu Jul 27, 2006 8:52 am    Post subject: Nagios Benachrichtigungen per email Reply with quote

Hallo!

Ich habe meinem Nagios System mehere Kontakte hinzugefügt, an die er Warnungen per email verschicken soll.

/etc/nagios/contacts.cfg

Code:

define contact{
        contact_name                    nagios
        alias                           Nagios Admin
   service_notification_period   24x7
   host_notification_period   24x7
        service_notification_options    u,c
        host_notification_options       d,u
        service_notification_commands   notify-by-email
        host_notification_commands      host-notify-by-email
        email                           test1@home.lan
   }

                  
define contact{
   contact_name         test2
   alias            Nagios Sub Admin
   service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r,f
        host_notification_options       r,d,u
        service_notification_commands   notify-by-email
        host_notification_commands      host-notify-by-email
        email                           test2@home.lan
        }
                              


/etc/nagios/contactgroups.cfg
Code:

define contactgroup{
        contactgroup_name       localadmins
        alias                   Local Site Administrators
        members                 nagios,test2
     }


Jetzt bin ich hingegangen und habe die email Adresse von nagios die ja wie oben beschrieben test1@home.lan war auf irgendwas anderes gestellt in dem Fall nagios@localhost, da eigentlich nur noch test2 emails erhalten sollte. Trotzdem bekommt test1@home.lan immer noch jede Menge emails vom nagios System! Die Frage ist nun warum? Die email Adresse taucht doch in keiner Config mehr auf.
_________________
ASUS 4A785TD-V EVO with AMD Phenom(tm) II X4 965
4GB RAM DDR3-1333
ATI Radeon HD4870
Back to top
View user's profile Send private message
aZZe
l33t
l33t


Joined: 20 Feb 2003
Posts: 965
Location: Dinslaken, Germany

PostPosted: Thu Jul 27, 2006 9:28 am    Post subject: Reply with quote

Oh mann! Sorry Jungs ich war mal wieder ein wenig voreilig. Nagios hatte sich komplett aufgehangen und hat dadurch die neuen Einstellungen nicht übernommen. Ich musste alle nagios und check_ping Prozesse per Hand killen, dann neustarten und dann war alles wieder hübsch.
_________________
ASUS 4A785TD-V EVO with AMD Phenom(tm) II X4 965
4GB RAM DDR3-1333
ATI Radeon HD4870
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum