Nagios è un sistema modulare che viene utilizzato per monitorare le reti . E 'utilizzato per monitorare i servizi come HTTP, SMTP , e server di nomi di dominio su host remoti . Sostegno Nagios ' per SNMP permette anche di vedere i carichi di processori su router e server . Per aggiungere un contatto a Nagios è necessario utilizzare la funzione di " definire contatto " e impostare i parametri di tale contatto. Istruzioni
1
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 5555555@pager.sample.com
}
Sostituire il nome e l' indirizzo e-mail con il contatto che si desidera aggiungere .
< br > 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
< p > 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
< p > }
5
Modificare il file " services.cfg /etc /nagios /" e aggiungere le seguenti righe per definire i servizi da monitorare :
definire servizio {
< p > 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
}