Hello,
Just wanted to make an observation...
After setting the SETUID bit of the other files contained within the RPM, output was generated.
Still, for the storage, virtual disks and battery items, the message "NO OMSA INSTALLED" was received.
chown root.root /usr/lib64/nagios/plugins/dell_health.*
chown root.root /usr/lib64/nagios/plugins/check_dell_status
chmod 755 /usr/lib64/nagios/plugins/dell_health.*
chmod +s /usr/lib64/nagios/plugins/dell_health.*
chmod 755 /usr/lib64/nagios/plugins/check_dell_status
chmod +s /usr/lib64/nagios/plugins/check_dell_status
ls -l /usr/lib64/nagios/plugins/*dell*
-rwsr-sr-x 1 root root 4211 2009-06-24 22:01 /usr/lib64/nagios/plugins/check_dell_status
-rwsr-sr-x 1 root root 53780 2009-03-17 15:34 /usr/lib64/nagios/plugins/dell_health.py
-rwsr-sr-x 1 root root 39594 2009-03-17 15:34 /usr/lib64/nagios/plugins/dell_health.pyc
-rwsr-sr-x 1 root root 39594 2009-03-17 15:34 /usr/lib64/nagios/plugins/dell_health.pyo
After checking the wrapper script "check_dell_status", to avoid the "NO OMSA INSTALLED" message, I created a service calling directly the "dell_health.py" script.
Now, I'm getting "No value available" messages for the storage arrays, virtual disks and batteries...
This is the service:
nano /etc/nagios/commands/check_dell_health.cfg
# 'check_dell_health' command definition
define command{
command_name check_dell_health
command_line $USER1$/dell_health.py --host=$HOSTNAME$ --$ARG1$
}
Just to confirm, this is the output of the disk array, which doesn't show in the GUI:
/usr/lib64/nagios/plugins/check_dell_status -H w.x.y.z --storage-array-data
SCSI: Physical Disk 0:0: [Available] (OK) SCSI: Physical Disk 0:1: [Available] (OK) SCSI: Physical Disk 0:2: [Available] (OK) SCSI: Physical Disk 0:3: [Available] (OK) SCSI: Physical Disk 0:4: [Available] (OK)
Or using directly the dell_health.py:
/usr/lib64/nagios/plugins/dell_health.py --hostname=w.x.y.z --storage-array-data
SCSI: Physical Disk 0:0: [Available] (OK) SCSI: Physical Disk 0:1: [Available] (OK) SCSI: Physical Disk 0:2: [Available] (OK) SCSI: Physical Disk 0:3: [Available] (OK) SCSI: Physical Disk 0:4: [Available] (OK)
Any lead will be greatly appreciated.
Thank you very much,
Max


LinkBack URL
About LinkBacks
Reply With Quote
