doc:appunti:linux:sa:nagios_passivo
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:linux:sa:nagios_passivo [2010/08/19 05:03] – niccolo | doc:appunti:linux:sa:nagios_passivo [2014/01/31 15:39] (current) – [Configurazione del server (Nagios)] niccolo | ||
---|---|---|---|
Line 11: | Line 11: | ||
===== Configurazione del server (Nagios) ===== | ===== Configurazione del server (Nagios) ===== | ||
- | In Debian troviamo | + | In Debian |
La comunicazione tra client e server avviene in chiaro e senza password, se si vuole qualcosa di meglio editare il file ''/ | La comunicazione tra client e server avviene in chiaro e senza password, se si vuole qualcosa di meglio editare il file ''/ | ||
Line 22: | Line 22: | ||
name passive-service | name passive-service | ||
; referenced in other service definitions | ; referenced in other service definitions | ||
- | active_checks_enabled | + | active_checks_enabled |
passive_checks_enabled | passive_checks_enabled | ||
parallelize_check | parallelize_check | ||
- | ; (disabling this can lead to major performance | + | ; (disabling this can lead to major performance |
obsess_over_service | obsess_over_service | ||
check_freshness | check_freshness | ||
- | freshness_threshold | + | freshness_threshold |
notifications_enabled | notifications_enabled | ||
event_handler_enabled | event_handler_enabled | ||
Line 35: | Line 35: | ||
retain_status_information | retain_status_information | ||
retain_nonstatus_information | retain_nonstatus_information | ||
+ | notification_interval | ||
+ | is_volatile | ||
+ | check_period | ||
normal_check_interval | normal_check_interval | ||
retry_check_interval | retry_check_interval | ||
max_check_attempts | max_check_attempts | ||
+ | notification_period | ||
+ | notification_options | ||
+ | contact_groups | ||
register | register | ||
; JUST A TEMPLATE! | ; JUST A TEMPLATE! | ||
Line 54: | Line 60: | ||
name bacula-service | name bacula-service | ||
use | use | ||
- | freshness_threshold | + | freshness_threshold |
+ | max_check_attempts | ||
check_command | check_command | ||
+ | notification_interval | ||
register | register | ||
} | } | ||
</ | </ | ||
+ | |||
+ | Due parametri i fondamentali da configurare. Il primo è **freshness_threshold**: | ||
Poi si aggiunge un finto host, che serve solo per raggruppare tutti i backup monitorati. Si può creare il file **''/ | Poi si aggiunge un finto host, che serve solo per raggruppare tutti i backup monitorati. Si può creare il file **''/ | ||
Line 72: | Line 82: | ||
use | use | ||
check_command | check_command | ||
- | max_check_attempts | ||
notification_interval | notification_interval | ||
notification_period | notification_period | ||
Line 101: | Line 110: | ||
Se la pipe non esiste i comandi vengono accodati al file **''/ | Se la pipe non esiste i comandi vengono accodati al file **''/ | ||
+ | ===== Problema di versione ===== | ||
+ | |||
+ | Attenzione alla **versione del client e del server nsca**! Debian Squeeze (nsca 2.7.2) e Debian Wheezy (nsca 2.9.1) non sono compatibili, | ||
+ | |||
+ | < | ||
+ | Dropping packet with invalid CRC32 - possibly due to client using wrong password or crypto algorithm? | ||
+ | </ | ||
+ | |||
+ | più comprensibile se la crittografia è disabilitata: | ||
+ | |||
+ | < | ||
+ | Received invalid packet type/ | ||
+ | </ | ||
+ | |||
+ | Per fortuna si trova il backport del pacchetto per Debian Squeeze. | ||
===== Configurazione del client (Bacula) ===== | ===== Configurazione del client (Bacula) ===== | ||
Line 125: | Line 149: | ||
send_nsca -H 172.16.237.211 -c / | send_nsca -H 172.16.237.211 -c / | ||
- | Bacula_backups | + | Bacula_backups |
END | END | ||
</ | </ |
doc/appunti/linux/sa/nagios_passivo.1282194236.txt.gz · Last modified: 2010/08/19 05:03 by niccolo