Compare commits
3 Commits
fb083b5d7d
...
f79da5cd1f
Author | SHA1 | Date | |
---|---|---|---|
|
f79da5cd1f | ||
|
6a5aa09f3d | ||
|
8ec55620a7 |
10
Makefile
10
Makefile
@ -2,7 +2,6 @@
|
||||
|
||||
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
|
||||
|
||||
@ -22,7 +21,9 @@ systemd: install
|
||||
|
||||
install:
|
||||
@echo installing service checking scripts to ${NAGIOS_EXEC}
|
||||
@cp -f check_senderscore check_ircd ${NAGIOS_EXEC}
|
||||
@cp -f check_senderscore ${NAGIOS_EXEC}
|
||||
@cp -f check_ircd ${NAGIOS_EXEC}
|
||||
@cp -f check_onion ${NAGIOS_EXEC}
|
||||
@chmod 755 ${NAGIOS_EXEC}/check_senderscore
|
||||
@chmod 755 ${NAGIOS_EXEC}/check_ircd
|
||||
@chmod 755 ${NAGIOS_EXEC}/check_onion
|
||||
@ -32,8 +33,9 @@ install:
|
||||
|
||||
uninstall:
|
||||
@echo removing service checking scripts from ${NAGIOS_EXEC}
|
||||
@rm -f ${NAGIOS_EXEC}/check_senderscore ${NAGIOS_EXEC}/check_ircd
|
||||
@rm -f ${NAGIOS_EXEC}/check_senderscore ${NAGIOS_EXEC}/check_onion
|
||||
@rm -f ${NAGIOS_EXEC}/check_senderscore
|
||||
@rm -f ${NAGIOS_EXEC}/check_ircd
|
||||
@rm -f ${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}
|
||||
|
@ -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,8 +14,9 @@ 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`
|
||||
|
||||
|
Reference in New Issue
Block a user