Skip to content

Commit

Permalink
Fix relative path for pdnssoc-cli on pdnssoccli.cron (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
4quarks authored Oct 17, 2024
1 parent a9aefde commit 449a157
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/pdnssoccli/pdnssoccli.cron
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ LANG=nb_NO.UTF-8
LC_ALL=nb_NO.UTF-8

# Run fetch_iocs every hour
0 */1 * * * root (pdnssoc-cli fetch-iocs && /bin/kill -SIGHUP $(cat /var/dnscollector/collector.pid)) >> /var/log/pdnssoc-cli-fetch-iocs.log 2>&1
0 */1 * * * root (/usr/local/bin/pdnssoc-cli fetch-iocs && /bin/kill -SIGHUP $(cat /var/dnscollector/collector.pid)) >> /var/log/pdnssoc-cli-fetch-iocs.log 2>&1

# Run correlation & alert every 15min
*/15 * * * * root pdnssoc-cli correlate /var/dnscollector/matches >> /var/log/pdnssoc-cli-correlate.log 2>&1 && pdnssoc-cli alert /var/dnscollector/alerts/ >> /var/log/pdnssoc-cli-alert.log 2>&1
*/15 * * * * root /usr/local/bin/pdnssoc-cli correlate /var/dnscollector/matches >> /var/log/pdnssoc-cli-correlate.log 2>&1 && /usr/local/bin/pdnssoc-cli alert /var/dnscollector/alerts/ >> /var/log/pdnssoc-cli-alert.log 2>&1

# Retro-active searches every hour, if the system is not overloaded
0 */1 * * * root ([ $(awk '{print $1}' /proc/loadavg) \< 0.5 ] && pdnssoc-cli correlate --retro_disco_lookup /var/dnscollector/queries/) >> /var/log/pdnssoc-cli-retro.log 2>&1
0 */1 * * * root ([ $(awk '{print $1}' /proc/loadavg) \< 0.5 ] && /usr/local/bin/pdnssoc-cli correlate --retro_disco_lookup /var/dnscollector/queries/) >> /var/log/pdnssoc-cli-retro.log 2>&1

0 comments on commit 449a157

Please sign in to comment.