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
Hi there (Adam?)
I'm not familiar with hobbit-plugins, but I'll make some suggestions that might help.
- 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')
- (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')
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
On 13/07/2026 13:38, Jeremy Laidman via Xymon wrote:
Hi there (Adam?)
(Reply from an Adam who didn't post the original question ... !)
I'm not familiar with hobbit-plugins, but I'll make some suggestions that might help.
<snip>
Probably worth reaching out to the maintainer of the package at hobbit- plugins@packages.debian.org <mailto:hobbit- plugins@packages.debian.org>.
I raised a bug report a few months ago on the Ubuntu tracker
https://bugs.launchpad.net/ubuntu/+source/hobbit-plugins/+bug/2150763
given that the underling problem is incompatability with sudo-rs which isn't (yet?) the default sudo implementation in Debian. But with this kind of thing I'm never quite sure whether to report to Ubuntu or Debian.
To the original question: do you actually have an "HP Smart Array block driver" device that you need to monitor using cciss_vol_status ? Do you even have /usr/bin/cciss_vol_status installed? If not you can safely just remove that line from /etc/sudoers.d/xymon (or, see Jeremy's answer if you do want to monitor such a device)
Regards,
Adam
participants (3)
-
Adam Thorn
-
Jeremy Laidman
-
xymon@mepost.org