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/25 17:37] – [Check passivo] 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 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.1648226232.txt.gz · Last modified: by niccolo
