Compare commits

..

No commits in common. "f79da5cd1fc0f2484696b3d458321bbeae127af5" and "fb083b5d7ddccdb843aaeec3107efa56efe6244f" have entirely different histories.

2 changed files with 8 additions and 11 deletions

View File

@ -2,6 +2,7 @@
PREFIX = /usr/local
NAGIOS_DIR = ${PREFIX}/nagios
# for OpenBSD, change to ${PREFIX}/libexec/nagios below:
NAGIOS_EXEC = ${NAGIOS_DIR}/libexec
SYSTEMD_UNIT_DIR = /lib/systemd/system
@ -21,9 +22,7 @@ systemd: install
install:
@echo installing service checking scripts to ${NAGIOS_EXEC}
@cp -f check_senderscore ${NAGIOS_EXEC}
@cp -f check_ircd ${NAGIOS_EXEC}
@cp -f check_onion ${NAGIOS_EXEC}
@cp -f check_senderscore check_ircd ${NAGIOS_EXEC}
@chmod 755 ${NAGIOS_EXEC}/check_senderscore
@chmod 755 ${NAGIOS_EXEC}/check_ircd
@chmod 755 ${NAGIOS_EXEC}/check_onion
@ -33,9 +32,8 @@ install:
uninstall:
@echo removing service checking scripts from ${NAGIOS_EXEC}
@rm -f ${NAGIOS_EXEC}/check_senderscore
@rm -f ${NAGIOS_EXEC}/check_ircd
@rm -f ${NAGIOS_EXEC}/check_onion
@rm -f ${NAGIOS_EXEC}/check_senderscore ${NAGIOS_EXEC}/check_ircd
@rm -f ${NAGIOS_EXEC}/check_senderscore ${NAGIOS_EXEC}/check_onion
@echo removing ircbot.sh from ${PREFIX}/bin
@rm -f ${PREFIX}/bin/ircbot.sh
@echo removing ircbot.service from ${SYSTEMD_UNIT_DIR}

View File

@ -2,8 +2,8 @@ Simple nagios monitoring and notification scripts.
`check_ircd` attempts to connect to an IRC server.
`check_senderscore` checks the senderscore (a metric for whether
an IP address tends to send spam email) of an IP address.
`check_senderscore` checks the senderscore (a metric for whether an IP address
tends to send spam email) of an IP address.
`check_onion` attempts to connect to a Tor Onion service via torsocks.
@ -14,9 +14,8 @@ relays messages from nagios to the channel.
## Installing
To install, edit `Makefile` with the appropriate path to your nagios
directory and run `make install` as root. To install the systemd
service, run `make systemd`; for rc service (on OpenBSD), run `make
rc`.
directory and run `make install` as root. To install the systemd service, run
`make systemd`; for rc service (on OpenBSD), run `make rc`.
## Setting up `ircbot`