Difference between revisions of "Nagios"
(→Monitoring met Nagios) |
(→Monitoring met Nagios) |
||
| Line 1: | Line 1: | ||
= Monitoring met Nagios = |
= Monitoring met Nagios = |
||
| + | == Uwork opzet == |
||
Nagios kent een hierarchische organisatie en laat met de parameter cfg_dir toe dat Uwork de configuratiebestanden voor de klant in verschillende directories vastlegt, telkens met de naam <domein>.cfg. Voor elke klant is zo'n configuratiebestand aanwezig in elk van de volgende directories: |
Nagios kent een hierarchische organisatie en laat met de parameter cfg_dir toe dat Uwork de configuratiebestanden voor de klant in verschillende directories vastlegt, telkens met de naam <domein>.cfg. Voor elke klant is zo'n configuratiebestand aanwezig in elk van de volgende directories: |
||
<pre> |
<pre> |
||
| Line 9: | Line 10: | ||
* http://s23.org/wiki/Nagios/checks/ldap |
* http://s23.org/wiki/Nagios/checks/ldap |
||
Uitzoeken, https mobile.cir |
Uitzoeken, https mobile.cir |
||
| + | == Specificatie van checks == |
||
| + | === check_ldap === |
||
| + | De check van ldap vindt plaats met behulp van de standaard nagios plugin: |
||
| + | <pre> |
||
| + | define service { |
||
| + | host_name <fdqn> |
||
| + | service_description check_ldap |
||
| + | use generic-service |
||
| + | check_command check_ldap!-H $hOSTADDRESS$ -b "cn=admin,dc=<fqdn>" |
||
| + | name ldap |
||
| + | register 1 |
||
| + | max_check_attempts 3 |
||
| + | normal_check_interval 5 |
||
| + | retry_check_interval 1 |
||
| + | active_checks_enabled 1 |
||
| + | check_period 24x7 |
||
| + | notification_interval 120 |
||
| + | notification_period 24x7 |
||
| + | notification_options w,u,c,r |
||
| + | notifications_enabled 1 |
||
| + | contact_groups admins |
||
| + | } |
||
| + | </pre> |
||
<hr/> |
<hr/> |
||
Terug naar: [[Uwork Support Infrastructuur]] |
Terug naar: [[Uwork Support Infrastructuur]] |
||
Revision as of 12:23, 14 February 2010
Monitoring met Nagios
Uwork opzet
Nagios kent een hierarchische organisatie en laat met de parameter cfg_dir toe dat Uwork de configuratiebestanden voor de klant in verschillende directories vastlegt, telkens met de naam <domein>.cfg. Voor elke klant is zo'n configuratiebestand aanwezig in elk van de volgende directories:
/etc/nagios/hostgroups/ /etc/nagios/hosts/ /etc/nagios/services/
Bijzondere commando's staan in de driectory /etc/nagios/commands/.
Uitzoeken, https mobile.cir
Specificatie van checks
check_ldap
De check van ldap vindt plaats met behulp van de standaard nagios plugin:
define service {
host_name <fdqn>
service_description check_ldap
use generic-service
check_command check_ldap!-H $hOSTADDRESS$ -b "cn=admin,dc=<fqdn>"
name ldap
register 1
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
active_checks_enabled 1
check_period 24x7
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
notifications_enabled 1
contact_groups admins
}
Terug naar: Uwork Support Infrastructuur