Hello,
I have written a bash plugin which checks the status of the systemd services.
When I run on the local linux server as root, it works fine, when with nrpe user it also works.
But if I run it from the monitoring server itself via check_nrpe it gives me back that everything is OK.
Local run output via root: Critical: Failed/Stopped services: dbus-org.freedesktop.timedate1.service=inactive
Local run output via nrpe: Critical: Failed/Stopped services: dbus-org.freedesktop.timedate1.service=inactive
Run from monitoring server: /omd/sites/prodsite/lib/monitoring-plugins/check_nrpe -H host -t 120 -u -p 5666 -c check_systemd_procs
OK: All necessary services are running properly.
Do oyou have any idea what can be wrong?
Hello,
I have written a bash plugin which checks the status of the systemd services.
When I run on the local linux server as root, it works fine, when with nrpe user it also works.
But if I run it from the monitoring server itself via check_nrpe it gives me back that everything is OK.
Local run output via root: Critical: Failed/Stopped services: dbus-org.freedesktop.timedate1.service=inactive
Local run output via nrpe: Critical: Failed/Stopped services: dbus-org.freedesktop.timedate1.service=inactive
Run from monitoring server: /omd/sites/prodsite/lib/monitoring-plugins/check_nrpe -H host -t 120 -u -p 5666 -c check_systemd_procs
OK: All necessary services are running properly.
Do oyou have any idea what can be wrong?