Nagios is an open-source monitoring application. It can be accessed via:
https://mtr.sfo.mountainmeasurement.com/nagios
Please note this URL is only accessible from the VPN.
Nagios is configured to send alerts to Chanty via Webhook to the “System Alerts” channel.
Service definitions: /etc/nagios4/servers
When adding new servers, you must also add them to:
To apply:
Check configuration:
nagios4 -v /etc/nagios4/nagios.cfg
Restart:
systemctl restart nagios4
apt install nagios-nrpe-server nagios-plugins
systemctl restart nagios-nrpe-server
Client config is in: /etc/nagios/nrpe.cfg
log_facility=daemon
debug=0
pid_file=/run/nagios/nrpe.pid
server_port=5666
nrpe_user=nagios
nrpe_group=nagios
allowed_hosts=68.183.129.54
dont_blame_nrpe=0
allow_bash_command_substitution=0
command_timeout=60
connection_timeout=300
disable_syslog=0
command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10
command[check_load]=/usr/lib/nagios/plugins/check_load -r -w 4,8,12 -c 6,18,36
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/vda1
command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200