-
Notifications
You must be signed in to change notification settings - Fork 87
Closed
Labels
Description
When using the plugin with Icinga instead of Nagios an error is displayed: "sudo: no askpass program specified, try setting SUDO_ASKPASS" even when running "check_raid.pl -S".
To resolve this edit "/etc/sudoers.d/check_raid" and edit the first config line to "User_Alias CHECK_RAID=icinga".
It would be helpful to be able to specify a username when running "check_raid.pl -S".
Output of check_raid -d:
check_raid 4.0.7
Visit <https://github.com/glensc/nagios-plugin-check_raid#reporting-bugs> how to report bugs
DEBUG EXEC: /proc/mdstat at /opt/monitoring/plugins/check_raid.pl line 482.
DEBUG EXEC: /sbin/dmsetup status --noflush at /opt/monitoring/plugins/check_raid.pl line 482.
DEBUG EXEC: /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL -NoLog at /opt/monitoring/plugins/check_raid.pl line 482.
DEBUG EXEC: /opt/MegaRAID/MegaCli/MegaCli64 -LdInfo -Lall -aALL -NoLog at /opt/monitoring/plugins/check_raid.pl line 482.
UNKNOWN: dm:[No devices to check]; megacli:[Volumes(2): vps-ssd10:Optimal,vps-data10:Optimal; Devices(6): 00,01,02,03,04,05=Online]
Output of each command from check_raid -d