Xymon Mailing List Archive search

Run local custom script as root?

5 messages in this thread

list Matthias Zepf · Wed, 7 Feb 2007 08:40:37 +0100 ·
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 · Wed, 07 Feb 2007 08:47:58 +0100 ·
I use sudo for this type of scripts.

/Thomas
quoted from Matthias Zepf

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 · Wed, 7 Feb 2007 15:30:48 +0100 ·
quoted from Matthias Zepf
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 · Wed, 7 Feb 2007 11:29:46 -0500 ·
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.
quoted from Matthias Zepf
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 · Wed, 7 Feb 2007 12:44:00 -0500 ·
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.
quoted from Matthias Zepf


-----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.