Raf*_*ski 5 smart nagios icinga
我已经尝试了 nagios 到 SMART 监控的最佳插件。有一些,但只监测温度。但是使用 smartctl 我们可以找到更多数据。您是否有一些更好的插件,其中包含来自 smart 的所有数据?
Kei*_*ith 11
所述check_ide_smart插件是标准的nagios插件组的一部分。尽管名称中有“ide”部分,但它使用 smartctl 来检查 smartctl 支持的任何驱动器。
它可以返回适合 nagios 的输出,例如:
$ ./check_ide_smart -n -d /dev/sda
OK - Operational (17/17 tests passed)
Run Code Online (Sandbox Code Playgroud)
或完整的 SMART 状态:
$ ./check_ide_smart -d /dev/sda
Id= 1, Status=11 {PreFailure , OnLine }, Value=100, Threshold= 16, Passed
Id= 2, Status= 5 {PreFailure , OffLine}, Value=100, Threshold= 50, Passed
Id= 3, Status= 7 {PreFailure , OnLine }, Value=120, Threshold= 24, Passed
Id= 4, Status=18 {Advisory , OnLine }, Value=100, Threshold= 0, Passed
Id= 5, Status=51 {PreFailure , OnLine }, Value=100, Threshold= 5, Passed
Id= 7, Status=11 {PreFailure , OnLine }, Value=100, Threshold= 67, Passed
Id= 8, Status= 5 {PreFailure , OffLine}, Value=100, Threshold= 20, Passed
Id= 9, Status=18 {Advisory , OnLine }, Value= 96, Threshold= 0, Passed
Id= 10, Status=19 {PreFailure , OnLine }, Value=100, Threshold= 60, Passed
Id= 12, Status=50 {Advisory , OnLine }, Value=100, Threshold= 0, Passed
Id=192, Status=50 {Advisory , OnLine }, Value= 99, Threshold= 50, Passed
Id=193, Status=18 {Advisory , OnLine }, Value= 99, Threshold= 50, Passed
Id=194, Status= 2 {Advisory , OnLine }, Value=144, Threshold= 0, Passed
Id=196, Status=50 {Advisory , OnLine }, Value=100, Threshold= 0, Passed
Id=197, Status=34 {Advisory , OnLine }, Value=100, Threshold= 0, Passed
Id=198, Status= 8 {Advisory , OffLine}, Value=100, Threshold= 0, Passed
Id=199, Status=10 {Advisory , OnLine }, Value=200, Threshold= 0, Passed
OffLineStatus=0 {NeverStarted}, AutoOffLine=No, OffLineTimeout=30 minutes
OffLineCapability=91 {Immediate Auto SuspendOnCmd}
SmartRevision=16, CheckSum=23, SmartCapability=3 {SaveOnStandBy AutoSave}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
7683 次 |
最近记录: |