modificare il file " contacts.cfg etc /nagios /" e aggiungere le seguenti righe per definire un contatto : 
 
 definire contatto { 
 
 contact_name John 
 
 alias John Doe 
 
 service_notification_period 24x7 
 
 host_notification_period 24x7 
 
 service_notification_options w , u , c, r 
 
 host_notification_options d , u , r 
 
 service_notification_commands notify-by - mail, notify- by - pager 
 
 host_notification_commands host- notify- by - email , host- notify- by - epager 
 
 email John @ sample.com 
 
 cercapersone [email protected] 
 
 } 
 
 Sostituire il nome e l' indirizzo e-mail con il contatto che si desidera aggiungere . 
 
 2 
 Modificare il file " contactgroups.cfg /etc /nagios /" e aggiungere le seguenti righe per aggiungere gli utenti ai gruppi : 
 
 definire contactgroup { 
 
 contactgroup_name router_admin 
 
 alias amministratori di rete 
 
 membri John 
 
 } 
 3 
 Modificare il file " hosts.cfg /etc /nagios /" e aggiungere il seguenti righe per definire i padroni di casa a controllare : 
 
 definiscono host { 
 
 uso campione -conduttore 
 
 host_name gw1.sample.com 
 
alias Gateway Router < br indirizzo >
 10.0.0.1 
 
check_command check- host- Alive
 max_check_attempts 20 
 
 notification_interval 240 
 
 notification_period 24x7 
 
 notification_options d , u , r 
 
 } 
 4 
 Modificare il file " hostgroups.cfg /etc /nagios /" e aggiungere le seguenti righe per aggiungere i padroni di casa per i gruppi : 
 
 definire hostgroup { 
 router hostgroup_name 
 
 
 alias router 
 
 contact_groups router_admin 
 membri 
 gw1.sample.com 
 
 } 
 5 
 Modificare il file " services.cfg /etc /nagios /" e aggiungere le seguenti righe per definire i servizi da monitorare : 
 
 definire servizio { 
 
 uso del campione - service 
 
 host_name mail.sample.com 
 
 service_description SMTP 
 
 is_volatile 0 
 
 check_period 24x7 
 
 max_check_attempts 3 
 
 normal_check_interval 5 
 
 retry_check_interval 1 
 
 contact_groups SERVER_ADMIN 
 
 notification_interval 240 
 
 notification_period 24x7 
 
 notification_options w , u , C, R 
 
 check_command check_smtp 
 
 } 
 
              
networking © www.354353.com