diff --git a/README.md b/README.md index 33ad6f6..70a9b58 100644 --- a/README.md +++ b/README.md @@ -20,17 +20,4 @@ icinga ALL=(ALL) NOPASSWD: /usr/sbin/service * restart If your Icinga2 client runs as a different user adjust as necessary. -This is meant for use with a command_endpoint set to the client. See [official documentation](https://icinga.com/docs/icinga-2/latest/doc/03-monitoring-basics/#use-event-commands-to-send-information-from-the-master) examples. - -#### restart_service_from_remote -Event command to restart a service. Restarting a service will require sudo privileges on systemctl / service binaries. Add the following to `/etc/sudoers` on the client machine: -``` -icinga ALL=(ALL) NOPASSWD: /bin/systemctl restart * -icinga ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart * -icinga ALL=(ALL) NOPASSWD: /sbin/service * restart -icinga ALL=(ALL) NOPASSWD: /usr/sbin/service * restart -``` - -If your Icinga2 client runs as a different user adjust as necessary. - -This is meant to be called from the master / satellite through restart_service_on_endpoint. \ No newline at end of file +This is meant for use with a command_endpoint set to the client. See [official documentation](https://icinga.com/docs/icinga-2/latest/doc/03-monitoring-basics/#use-event-commands-to-send-information-from-the-master) examples. \ No newline at end of file