SMART hard-disk monitoring
Derek Olsen
derek.olsen at qsent.com
Thu Aug 31 19:39:11 CEST 2006
Andy.
I've attached the check_smart we use. I think it's a barely modified
version of the one that comes with the nagios plugins. In the
script we use the output of /sbin/sfdisk -s to find out which scsi disks
are on the local box because we ran into problems using the output of
scsiinfo. So our sudoers file is configured to allow the nagios user
to run /sbin/sfisk -s and /usr/sbin/smartctl.
This works for us. Hope it helps.
Deet.
> Has anyone got a check plugin working for monitoring SMART hard disk
> status thresholds?
>
> The only one I found on nagiosexchange (check_smartmon) needs to be run
> as root to get permission to read the drive stats, and also doesn't work
> - it causes the below Python trace-back:
>
> Traceback (most recent call last):
> File "./check_smartmon", line 254, in ?
> (healthStatus, temperature) = parseOutput(healthStatusOutput,
> temperatureOutput)
> File "./check_smartmon", line 163, in parseOutput
> healthStatus = parts[-1]
> IndexError: list index out of range
>
>
> I've just ran smartctl and it appears you do need to be root, so if I
> can find a working plugin I can just sudo the nagios user.
>
> Any ideas?
>
> Thanks
>
> Andy.
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: check_smart
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060831/986e4ddc/attachment.ksh>
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list