Skip to content

systemctl command can not run via check_nrpe #225

@Tentoaloe

Description

@Tentoaloe

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions