ls -lF /usr/libexec/nagios/check_load
su - $site site=SITE-NAME ln -s /omd/sites/$site/etc/naemon/conf.d cd conf.d/
vi hostgroups.cfg # new file define hostgroup { hostgroup_name HOST-GRP-HERE alias HOST GRP DESCR members host1,host2 } vi hosts.cfg # new file define host { host_name host1 address x.x.x.x check_command check-host-alive max_check_attempts 5 } define host { host_name host2 address x.x.x.x check_command check-host-alive max_check_attempts 5 } grep command_name commands.cfg | awk '{print $NF}' vi commands-remote.cfg # new file # requires nagions-plugins to be installed on the target system define command { command_name check_ssh_load command_line $USER1$/check_by_ssh -H nagios@$HOSTADDRESS$ -C "/usr/lib/nagios/plugins/check_load -w $ARG1$ -c $ARG2$" -E # /usr/libexec/nagios/check_load } # requires nagios-nrpe-server to be installed on the target system define command { command_name check_nrpe command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -4 -u -c $ARG1$ } vi services.cfg # new file define service { hostgroup_name HOST-GRP-HERE service_description load check_command check_nrpe!check_load max_check_attempts 5 } define service { hostgroup_name HOST-GRP-HERE service_description disk check_command check_nrpe!check_disk_root max_check_attempts 5 }
also see nagios core for setting up notifications
https://labs.consol.de/de/omd/index.html
https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/objectdefinitions.html
https://labs.consol.de/omd/commands.html
https://labs.consol.de/omd/howtos.html
https://labs.consol.de/omd/differences.html
https://labs.consol.de/omd/howtos/grafana/
https://labs.consol.de/omd/#installation
FW https://checkmk.com/guides/open-monitoring-distribution
FW https://checkmk.com/download?method=cmk&edition=cre&version=2.2.0p5&platform=debian&os=bullseye&type=cmk&google_analytics_user_id=apt install ./check-mk-raw-2.2.0p5_0.bullseye_amd64.deb
FW https://www.linux-magazine.com/Issues/2022/257/Checkmk
https://github.com/Checkmk/checkmk
https://www.alexanderjaeger.de/raspberry-pi-nagios-open-monitoring-distribution/