Learning Academy

The Cure of Ignorance is to Question. MUHAMMAD (PBUH)

Monitoring

How to install Nagios on CentOS?

Contacts/Contacts groups CFG

[root@yourmachine  objects] vim contacts.cfg

# service_notification_options are w,u,c,r,f,n
# w=warning u=unknown c=critical r=recovery f=flapping n=none
# host_notification_options d,u,r,f,n
# d=down u=unreachable r=recovery f=flapping n=none

define contact{
contact_name                                    me
alias                                                   me
service_notification_period                24×7
host_notification_period                   24×7
service_notification_options               c,r
host_notification_options                  d,r
service_notification_commands          notify-by-email
host_notification_commands             host-notify-by-email
email                                                 me@myemailaddress.whatever
}

define contact{
contact_name                                        you
alias                                                       you
service_notification_period                   workhours
host_notification_period                      workhours
service_notification_options                 c,r
host_notification_options                    d,r
service_notification_commands            notify-by-email
host_notification_commands                host-notify-by-email
email                                                    root@youremailaddress.whatever
}

Muhammad Shaukat

Content Developer at LearnAcad.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pin It on Pinterest