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

Probably worth reaching out to the maintainer of the package at hobbit-plugins@packages.debian.org.

Cheers
Jeremy

On Mon, 13 Jul 2026 at 20:31, xymon--- via Xymon <xymon@xymon.com> wrote:
Hello there,

on Ubuntu 26.04 with the rust rewrite of sudo, wildcards don’t seem to be supported:

sudo -l

/etc/sudoers.d/xymon:7:30: wildcards are not allowed in command arguments
xymon ALL=("root") NOPASSWD: /usr/bin/cciss_vol_status -u -s /dev/cciss/c*d0 /dev/sg*

Any tips how to fix this?

Best greetings

_______________________________________________
Xymon mailing list -- xymon@xymon.com
To unsubscribe send an email to xymon-leave@xymon.com