[Xymon] problem with ext script
Root, Paul T
Paul.Root at CenturyLink.com
Fri Jul 5 16:46:09 CEST 2013
Setuid the script
Sudo the command in the script
Run the script as root
Take your pick. The first one is not secure in the least.
The second one will require the xymon user to be in sudoers with permission to run the command without a password required. Or modifying the script to enter the password (which is not secure)
The last is pretty easy, but would be running outside of the tasks.cfg probably in cron. And so you would need to call the script, most likely, with xymoncmd to get the environment right.
Paul.
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Operaciones
Sent: Friday, July 05, 2013 8:44 AM
To: xymon at xymon.com
Subject: [Xymon] problem with ext script
Hello Guy,
i have a small problem, i create a script for check the raid status on Intel mainboards that use the command:
dmraid -r
So, when i run the script with xymon, show the error:
ERROR: you must be root
Do you know how can i fix it?
Thank you very much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20130705/115f75f5/attachment.html>
More information about the Xymon
mailing list