[Nagiosplug-devel] [ nagiosplug-Feature Requests-881670 ] Wildcarding option in use of '-x' switch
SourceForge.net
noreply at sourceforge.net
Mon Dec 10 02:38:41 CET 2007
Feature Requests item #881670, was opened at 2004-01-21 21:21
Message generated for change (Comment added) made by psychotrahe
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397600&aid=881670&group_id=29880
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Priority: 5
Private: No
Submitted By: Martin Gignac (lmcgign)
Assigned to: Nobody/Anonymous (nobody)
Summary: Wildcarding option in use of '-x' switch
Initial Comment:
I was wondering if there any plans to include the
possibility of wildcarding filesystems with '*' for
example when using the '-x' switch.
For example, when mounting a Solaris install CD on a
Solaris box, the Solaris CD automounter creates six
distinct "mount points" automatically. These mount
points are dynamic and contain (among other things) the
name of the CD.
For example:
/cdrom/solaris_8_hw1001_sparc/s0
/cdrom/solaris_8_hw1001_sparc/s1
/cdrom/solaris_8_hw1001_sparc/s2
/cdrom/solaris_8_hw1001_sparc/s3
/cdrom/solaris_8_hw1001_sparc/s4
and
/cdrom/solaris_8_hw1001_sparc/s5 are all new mount
points created when CD X is entered. If another CD is
entered, then the mount point name after the '/cdrom/'
will change, making it hard to exclude these "moving
target" filesystems. And since a CD-ROM file system
always shows up as 0% free, a CRITICAL event is
generated by the plugin as soon as a CD is inserted in
the SUN box. Excluding a filesystem type will not work
either as 's0' shows up as 'hsfs' and the rest all show
up as 'ufs' Excludng 'ufs' would pretty much eliminate
checks on all Solaris partitions while eliminating
'hsfs' still leaves the other s1-s5 partitions (some of
which are at 98% full) and that still generates an alarm.
If wildcarding could be done with the '-p' switch, such as:
check_disk -w 20% -c 20% -x "/cdrom/*"
this would prevent any CD from being checked.
Regards,
-Martin
----------------------------------------------------------------------
>Comment By: Matthias Eble (psychotrahe)
Date: 2007-12-10 02:38
Message:
Logged In: YES
user_id=1694341
Originator: NO
Hi Martin,
even if you haven't expected an answer to this post any more..
some versions ago, check_disk -i was introduced to ignore paths matching
regexes.
Matthias
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397600&aid=881670&group_id=29880
More information about the Devel
mailing list