Last active
January 6, 2022 14:23
-
-
Save gozoinks/c7708c6b9907acd86384a1d76f26cec1 to your computer and use it in GitHub Desktop.
Monit on pfsense 2.4 ARM (SG-1000)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Monit on pfSense 2.4 ARM (SG-1000) | |
# Install the package from the FreeBSD repository | |
pkg add http://pkg.freebsd.org/FreeBSD:11:armv6/latest/All/monit-5.18.txz | |
# Rename the rc.d script to .sh and fix permissions so pfSense will start it automatically | |
mv /usr/local/etc/rc.d/monit /usr/local/etc/rc.d/monit.sh | |
chmod 0755 /usr/local/etc/rc.d/monit.sh | |
# Add monit_enable=YES to a local rc.conf | |
echo "monit_enable=YES" >> /etc/rc.conf.local | |
# Add 'include /usr/local/etc/monit.d/*' to the monitrc: | |
echo "include /usr/local/etc/monit.d/*" >> /usr/local/etc/monitrc | |
chmod 0700 /usr/local/etc/monitrc | |
# Create a directory for your monit config files: | |
mkdir /usr/local/etc/monit.d | |
# Add the config files: | |
cd /usr/local/etc/monit.d/ | |
# vi system.conf for example | |
# if you're using git or something, pull/fetch/clone your config files here | |
# Make a directory for the events log: | |
mkdir /var/monit | |
# On pfSense, if you're monitoring hosts across VPN links, be sure | |
# to add a gateway and a static route to the remote LAN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment