doc:appunti:linux:sa:cacti_122
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:linux:sa:cacti_122 [2022/03/14 18:23] – [Server NSCA] niccolo | doc:appunti:linux:sa:cacti_122 [2022/10/10 16:27] (current) – [Monitoraggio servizio CLAMD] niccolo | ||
---|---|---|---|
Line 361: | Line 361: | ||
return "No check results received. Last result time: " + lastCheck | return "No check results received. Last result time: " + lastCheck | ||
}} | }} | ||
- | check_interval = 1d /* This determines the freshness of the check. */ | + | check_interval = 1d +1h /* This determines the freshness of the check. */ |
- | retry_interval = 1h /* Execute the active check if freshness is due. */ | + | retry_interval = 1h /* Execute the active check if freshness is due. */ |
- | max_check_attempts = 3 /* Retry the active check some times, before notification. */ | + | max_check_attempts = 3 |
vars.notification_interval = 1d | vars.notification_interval = 1d | ||
} | } | ||
Line 370: | Line 370: | ||
Il // | Il // | ||
- | In condizioni normali viene ricevuto un **check passivo** ogni 24 ore, quindi il check attivo giornaliero (// | + | In condizioni normali viene ricevuto un **check passivo** ogni 24 ore, quindi il check attivo giornaliero (// |
Per definire il servizio associato ad un host si aggiunge ad esempio nel file **/ | Per definire il servizio associato ad un host si aggiunge ad esempio nel file **/ | ||
Line 442: | Line 442: | ||
==== Server NSCA ==== | ==== Server NSCA ==== | ||
- | :!: **ATTENZIONE**: | + | :!: **ATTENZIONE**: |
Nell' | Nell' | ||
Line 754: | Line 754: | ||
</ | </ | ||
+ | ===== Monitoraggio servizio CLAMD ===== | ||
+ | |||
+ | Il programma antivirus **[[http:// | ||
+ | |||
+ | Per impostazione predefinita clamd **non** si mette in ascolto sulla porta **TCP 3310**, è necessario aggiungere queste righe alla configurazione: | ||
+ | |||
+ | < | ||
+ | # Listen also on TCP localhost, to allow running status check. | ||
+ | TCPSocket 3310 | ||
+ | TCPAddr 127.0.0.1 | ||
+ | </ | ||
+ | |||
+ | Il binding viene fatto solo su // | ||
+ | |||
+ | < | ||
+ | command[check_clamd]=/ | ||
+ | </ | ||
+ | |||
+ | Sul server Icinga2 si deve definire il **servizio** aggiungendo in **/ | ||
+ | |||
+ | < | ||
+ | apply Service "CLAMD Service" | ||
+ | import " | ||
+ | check_command = " | ||
+ | assign where host.vars.nrpe_clamd | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Quindi si aggiunge il comando aggiungendo in **/ | ||
+ | |||
+ | < | ||
+ | object CheckCommand " | ||
+ | command = [ PluginDir + "/ | ||
+ | arguments = { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Infine nella sezione **host** relativa all' | ||
+ | |||
+ | < | ||
+ | object Host " | ||
+ | ... | ||
+ | vars.nrpe_clamd = true | ||
+ | ... | ||
+ | } | ||
+ | </ | ||
===== Riferimenti Web ===== | ===== Riferimenti Web ===== | ||
doc/appunti/linux/sa/cacti_122.1647278604.txt.gz · Last modified: 2022/03/14 18:23 by niccolo