nagios-plugin-check_raid icon indicating copy to clipboard operation
nagios-plugin-check_raid copied to clipboard

arcconf should report UNKNOWN by default if no raid volumes are found

Open arekm opened this issue 5 years ago • 0 comments

On my system arcconf (2.05 (B22932)) doesn't see raid volumes (and disks due to some weird reason) and according to check_raid help UNKNOWN state should be returned by default:

 --noraid=STRING
   Return STATE if no RAID volumes are found. Defaults to UNKNOWN

but it isn't.

# /usr/lib/nagios/plugins/check_raid
OK: arcconf:[Controller:Optimal, Drives: ]
# /usr/lib/nagios/plugins/check_raid --noraid=CRITICAL
OK: arcconf:[Controller:Optimal, Drives: ]

Output of check_raid -d:

# /usr/lib/nagios/plugins/check_raid -d
check_raid 4.0.8-dev
Visit <https://github.com/glensc/nagios-plugin-check_raid#reporting-bugs> how to report bugs
Please include output of **ALL** commands in bugreport

DEBUG EXEC: /sbin/dmsetup status --noflush at /usr/share/perl5/vendor_perl/App/Monitoring/Plugin/CheckRaid/Plugin.pm line 385.
DEBUG EXEC: /sbin/arcconf GETSTATUS 1 at /usr/share/perl5/vendor_perl/App/Monitoring/Plugin/CheckRaid/Plugin.pm line 385.
DEBUG EXEC: /sbin/arcconf GETCONFIG 1 AL at /usr/share/perl5/vendor_perl/App/Monitoring/Plugin/CheckRaid/Plugin.pm line 385.
OK: arcconf:[Controller:Optimal, Drives: ]

Output of each command from check_raid -d dmsetup.txt arcconf-getconfig.txt arcconf-getstatus.txt

arekm avatar Dec 11 '18 07:12 arekm