Xymon Mailing List Archive search

Run local custom script as root?

list Tom Kauffman
Wed, 7 Feb 2007 12:44:00 -0500
Message-Id: <user-363bd3a28bd1@xymon.invalid>

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.