Nagios is een modulair systeem dat wordt gebruikt om netwerken te controleren . Het wordt gebruikt om diensten zoals http , smtp , en domain name servers op remote hosts te controleren . Nagios ' ondersteuning voor snmp kunt u ook processorbelasting op routers en servers te zien . Om een contactpersoon toe te voegen aan Nagios moet u de functie " definiëren contact" te gebruiken en stel de parameters van dat contact . Instructies 1 Bewerk het " etc /nagios /contacts.cfg " bestand en voeg de volgende regels toe aan een contact : definiëren contact { 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 kennis - per - email , kennis - door - pager host_notification_commands gastheer - kennis - per - email , gastheer - notify- by - epager email John @ sample.com pager [email protected] } Vervang de naam en e-mailadressen van de contactpersoon die u wilt toevoegen . < br > 2 Bewerk de " /etc /nagios /contactgroups.cfg " bestand en voeg de volgende regels aan de gebruikers toevoegen aan groepen : definiëren contactgroep { contactgroup_name router_admin alias Beheerders Netwerk leden John } 3 Bewerk de " /etc /nagios /hosts.cfg " bestand en voeg de volgende regels toe aan het hosts te definiëren te controleren : definiëren gastheer { gebruik sample - gastheer host_name gw1.sample.com alias Gateway Router < br adres > 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 Bewerk de " /etc /nagios /hostgroups.cfg " bestand en voeg de volgende regels toe aan het hosts toe te voegen aan de groepen : definiëren hostgroup { hostgroup_name routers alias routers contact_groups router_admin leden gw1.sample.com } 5 Bewerk de " /etc /nagios /services.cfg " bestand en voeg de volgende regels toe aan de diensten te definiëren te controleren : definiëren dienst { gebruik sample - dienst 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 }
|