Merhabalar,

Icinga server #apt-get install postfix kurulumunu yaptim....


icinga server dan gelen Critical ve Warning mesajlarini cok gec aliyorum.. 
acaba neyden kaynaklanabilir ? ben yapmis oldugum konfigurasyonu buraya 
yaziyorum... Test icin HDD ve CPU nun degerlerini düsrüdüm Icinga da Critical 
uyarisi aliyorum  Hardiksin Uyarisi Maile geliyor ama gec geliyor..... CPU hic 
gelmiyor.. Acaba nerede yanlis yapiyorum ?


#  nano /etc/icinga/objects/contacts_icinga.cfg


define contact {
        contact_name                             root
        host_notifications_enabled           1
        host_notification_period               24x7
        host_notification_options             d,u,r
        host_notification_commands        notify-host-by-email
        service_notifications_enabled      1
        service_notification_period          24x7
        service_notification_options          w,u,c,r
        #service_notification_commands  notify-by-email
        service_notification_commands   notify-service-by-email
        email                                        [email protected]
        }




define contactgroup{
        contactgroup_name       admins
        alias                             Icinga Administrators
        members                      root


        }






# nano /usr/share/doc/icinga-common/examples/template-object/contacts.cfg


define contact{
        contact_name                    icingaadmin             ; Short name of 
user
        use                                   generic-contact         ; Inherit 
default values from generic-contact template (defined above)
        alias                                  Icinga Admin            ; Full 
name of user


        email                                 [email protected]          ; <<***** 
CHANGE THIS TO YOUR EMAIL ADDRESS ******
        }






###############################################################################
###############################################################################
#
# CONTACT GROUPS
#
###############################################################################
###############################################################################


# We only have one contact in this simple configuration file, so there is
# no need to create more than one contact group.


define contactgroup{
        contactgroup_name       admins
        alias                             Icinga Administrators
        members                      icingaadmin
        }




# nano /etc/icinga/commands.cfg




# 'notify-host-by-email' command definition
define command{
        command_name    notify-host-by-email
        command_line    /usr/bin/printf "%b" "***** Icinga *****\n\n 
\Notification Type: $NOTIFICATIONTYPE$\n \Host: $HOSTNAME$\n \State: 
$HOSTSTATE$\n \Address: $HOSTADDRESS$\n \Info: $HOSTOUTPUT$\n\n \ Date/Time: 
$LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: 
$HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
        }


# 'notify-service-by-email' command definition
define command{
        command_name    notify-service-by-email
        command_line    /usr/bin/printf "%b" "***** Icinga *****\n\n 
\Notification Type: $NOTIFICATIONTYPE$\n\n \Service: $SERVICEDESC$\n \Host: 
$HOSTALIAS$\n \Address: $HOSTADDRESS$\n \State: $SERVICESTATE$\n\n \Date/Time: 
$LONGDATETIME$\n\n \Additional Info:\n\n \$SERVICEOUTPUT$\n" | /usr/bin/mail -s 
"** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is 
$SERVICESTATE$ **" $CONTACTEMAIL$
        }




# nano windows.cfg






define host{
        use                          generic-host            ; Name of host 
template to use
        host_name               test
        alias                         test
        address                    192.168.200.21
        contact_groups          admins
        contacts                    root
        }




define service{
        use                                        generic-service         ; 
Name of service template to use
        host_name                              test
        service_description                  Disk FreeSpace
        check_command                      check_snmp_storage!public![^C]:!1!2
        notification_period                    24x7
        notification_interval                  30
        notification_options                  c,w
        check_period                          24x7
        check_interval                         5
        retry_interval                          1
        max_check_attempts              10
        contact_groups                      admins
        contacts                                root


        }




define service{
        use                                     generic-service         ; Name 
of service template to use
        host_name                           test
        service_description               CPU Load
        check_command                   snmp_cpu!public!1!2
        notification_period                24x7
        notification_interval              30
        notification_options               c,w
        check_period                       24x7
        check_interval                     5
        retry_interval                      1
        max_check_attempts           10
        contact_groups                   admins
        contacts                            root
        }




# nano /etc/postfix/main.cf




# See /usr/share/postfix/main.cf.dist for a commented, more complete version




# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname


smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no


# appending .domain is the MUA's job.
append_dot_mydomain = no


# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h


readme_directory = no


# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache


# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.


myhostname = icingamon.test.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = icingamon.test.com, localhost.test.com, , localhost
relayhost = 192.168.200.121     ( Exchange Server Ip si )
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all






 





_______________________________________________
Linux-sunucu E-Posta Listesi
[email protected]

Liste kurallarını http://liste.linux.org.tr/kurallar.php  bağlantısından 
okuyabilirsiniz;

Bu Listede neden bulunduğunuzu bilmiyorsanız veya artık bu listeden gelen 
e-postaları almak istemiyorsanız aşağıdaki bağlantı adresini kullanarak 1 
dakika içinde üyeliğinizi sonlandırabilirsiniz.
https://liste.linux.org.tr/mailman/listinfo/linux-sunucu

Cevap