Xymon Mailing List Archive search

Run local custom script as root?

list Thomas Pedersen
Wed, 07 Feb 2007 08:47:58 +0100
Message-Id: <user-745efca154e6@xymon.invalid>

I use sudo for this type of scripts.

/Thomas

Matthias Zepf wrote:
Hi, I am new to Hobbit. I searched the Hobbit mailing list archive but did not find an answer to the following question:

Is there a (save) way to run a local custom script as root? Some checks require root permissions, e.g. smartctl on Linux does not work even when you have group rights on the device (e.g. /dev/hda). Or is running a Hobbit script as root a bad idea at all?

Thanks for your help!

Matthias