Hi there (Adam?)
I'm not familiar with hobbit-plugins, but I'll make some suggestions that might help.
1. You could wrap the desired command in a new script (eg /usr/local/xymon-cciss):
#!/bin/sh
/usr/bin/cciss_vol_status -u -s /dev/cciss/c*d0 /dev/sg*
and then adjust the file "client/ext/cciss" to execute "sudo /usr/local/bin/xymon-cciss" instead of the command that's there now. So instead of:
open(CCISS, '-|', '/usr/bin/sudo /usr/bin/cciss_vol_status -u -s /dev/cciss/c*d0 /dev/sg* 2>&1')
change it to:
open(CCISS, '-|', '/usr/bin/sudo /usr/local/bin/xymon-cciss 2>&1')
2. (My preferred method) You could run the command from cron every 5 minutes, and have it send its output to a file, eg in /etc/cron.d/xymon:
*/5 * * * * root /usr/bin/sudo /usr/bin/cciss_vol_status -u -s /dev/cciss/c*d0 /dev/sg* > /tmp/cciss.status 2> /tmp/cciss.log
and then adjust the cciss script to be:
open(CCISS, '<', '/tmp/cciss.status')
3. If you know the devices that match /dev/cciss/c*d0 and /dev/sg*, you could hard-code them in the sudoers file:
# use the output of: echo /dev/cciss/c*d0 /dev/sg*
xymon ALL=("root") NOPASSWD: /usr/bin/cciss_vol_status -u -s /dev/cciss/cXYZd0 /dev/cciss/cABCd0 /dev/sg2 /dev/sg6
Cheers
Jeremy