Browse Source

check_rspamc for rspamd monitoring

master
n 10 months ago
parent
commit
dff386e49e
2 changed files with 13 additions and 0 deletions
  1. +1
    -0
      README.md
  2. +12
    -0
      monitoring/check_rspamc

+ 1
- 0
README.md View File

@@ -37,6 +37,7 @@ Monitoring
* [check_ntppool_score](https://forge.tourmentine.com/n/scripts/src/master/monitoring/check_ntppool_score) => Simple shell script to check score on NTP Pool Project (score must be over 10 to serve NTP). Requires Curl and bc, fits for Nagios/Shinken/Icinga/etc.
* [collectd_ntppool_score](https://forge.tourmentine.com/n/scripts/src/master/monitoring/collectd_ntppool_score) => Same as [check_ntppool_score](https://forge.tourmentine.com/n/scripts/src/master/monitoring/check_ntppool_score) but for collectd graphing.
* [check_postgresql_replication.sh](https://forge.tourmentine.com/n/scripts/src/master/monitoring/check_postgresql_replication.sh) => check postgresql's replication lag.
* [check_rspamc](https://forge.tourmentine.com/n/scripts/src/master/monitoring/check_rspamc) => Check rspamd status. Heavily based on [check_spamc](https://www.vanheusden.com/Linux/check_spamc-0.1.tgz).
* [GonKyrellM](https://forge.tourmentine.com/n/scripts/src/master/monitoring/GonKyrellM) => Conky, GKrellM style - with "invisible" theme (well, sort of)
* [collectweather.sh](https://forge.tourmentine.com/n/scripts/src/master/monitoring/collectweather.sh) => get weather data from https://darksky.net/ and feed collectd with it. needs jq as Dark Sky provides data in json format.



+ 12
- 0
monitoring/check_rspamc View File

@@ -0,0 +1,12 @@
#!/bin/sh

echo test | /usr/local/bin/rspamc > /dev/null 2> /dev/null
RC=$?

if [ $RC -gt 0 ] ; then
echo CRITICAL - rspamc returned $RC
exit 2
fi

echo OK - all fine
exit 0

Loading…
Cancel
Save