Run local custom script as root?
list Matthias Zepf
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
list Thomas Pedersen
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
list Peter Welter
▸
Matthias Zepf wrote:Is there a (save) way to run a local custom script as root? Or is running a Hobbit script as root a bad idea at all?
I agree with Thomas, using sudo is generally the way to go if you want controlled root-access. -- Peter
list Gary Baluha
Running the Hobbit client as root (instead of user "hobbit") would also work, but I would definitely discourage doing so. Sudo is the only option you should consider.
▸
Matthias Zepf wrote:Is there a (save) way to run a local custom script as root? Or is running a Hobbit script as root a bad idea at all?I agree with Thomas, using sudo is generally the way to go if you want controlled root-access. -- Peter
list Tom Kauffman
We use sudo for some tests. For others, we run root cron jobs that generate a flatfile to be parsed by the hobbit client. One of the errors that the client will generate in these cases is the flatfile being over 10 minutes old. This also is used to monitor SAP CCMS alerts (CCMS is the SAP environment internal monitoring toolwhich requires you to be logged into SAP to see the results -- we have an ABAP program that creates a flatfile for hobbit). Tom Kauffman NIBCO, Inc.
▸
-----Original Message-----
From: Matthias Zepf [mailto:user-edb21b97b1e7@xymon.invalid] Sent: Wednesday, February 07, 2007 2:41 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Run local custom script as root?
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
CONFIDENTIALITY NOTICE: This email and any attachments are for the exclusive and confidential use of the intended recipient. If you are not
the intended recipient, please do not read, distribute or take action in reliance upon this message. If you have received this in error, please notify us immediately by return email and promptly delete this message and its attachments from your computer system. We do not waive attorney-client or work product privilege by the transmission of this
message.