[Xymon] problem with ext script
    Jeremy Laidman 
    jlaidman at rebel-it.com.au
       
    Mon Jul  8 02:42:07 CEST 2013
    
    
  
On 5 July 2013 23:43, Operaciones <operaciones at corpresa.com> wrote:
> So, when i run the script with xymon, show the error:
>
> ERROR: you must be root
What I generally do in these cases is run the command from root's cron and
capture the output in a file that's readable by the Xymon user.  Like so:
*/5 * * * * /sbin/dmraid -r >/tmp/dmraid.out && chgrp xymon /tmp/dmraid.out
&& chmod 644 /tmp/dmraid.out
Then in the script, in place of "dmraid -r" you just do "cat
/tmp/dmraid.out".
J
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20130708/e4d3e11b/attachment.html>
    
    
More information about the Xymon
mailing list