So I had errors in my nagios for UCS for the backup domain server and fileserver (after an upgrade probably):
these services were CRITICAL on several servers:
The errors were like "NRPE: Command 'UNIVENTION_DISK_ROOT' not defined" .. and so on ofrthe others ..
After a bit of searching i found this help forum page (in german): https://help.univention.com/t/nagios-zeigt-nach-update-auf-4-3-0-fur-slave-dc-nrpe-command-not-defined/8261/21
that in the end helped me solve the problem.
the following commands are what I did run (not all may be needed on each system, since for some reason one package was missing on the fileserver but not the backup domain server (also i am not sure if it is 100% needed but it works now so ..)
apt-get install nagios-nrpe-server nagios-nrpe-plugin univention-nagios-s4-connector # make sure all packages are installed
systemctl restart nagios-nrpe-server.service # restart the service
univention-directory-listener-ctrl resync nagios-client # resync - settings i guess?
I had ran the following 2 commands before the above too, but just got errors..
sudo -u nagios /usr/lib/nagios/plugins/check_univention_s4_connector_suidwrapper
sudo -u nagios /usr/lib/nagios/plugins/check_univention_samba_drs_failures_suidwrapper
now the first of the 2 just gives me this:
S4CONNECTOR OK: Connector not activated (connector/s4/autostart =! true)
The second one still gives command not found, but seems to not matter in my case.
Then i re-scheduled the nagios checks because I didn'T feel like waiting 10 minutes..then everything was ok again. looks like the upgrade missed some packages and/or settings?Share on Twitter Share on Facebook