sysutils/smart: add errors:no here too

This commit is contained in:
Franco Fichtner 2025-05-06 09:09:53 +02:00
parent d70df18c9d
commit cff07b0401
2 changed files with 19 additions and 9 deletions

View file

@ -1,5 +1,6 @@
PLUGIN_NAME= smart
PLUGIN_VERSION= 2.3
PLUGIN_REVISION= 1
PLUGIN_COMMENT= SMART tools
PLUGIN_DEPENDS= smartmontools
PLUGIN_MAINTAINER= franco@opnsense.org

View file

@ -12,59 +12,68 @@ message:list installed devices
[info]
command:/usr/local/sbin/smartctl
parameters:-%s %s; exit 0
parameters:-%s %s
errors:no
type:script_output
message:exec smartctl -%s for device %s
[info_json]
command:/usr/local/sbin/smartctl
parameters:-%s --json=c %s; exit 0
parameters:-%s --json=c %s
errors:no
type:script_output
message:exec smartctl -%s (JSON) for device %s
[log.error]
command:/usr/local/sbin/smartctl -l error
parameters:%s; exit 0
parameters:%s
errors:no
type:script_output
message:Get error log for device %s
[log.selftest]
command:/usr/local/sbin/smartctl -l selftest
parameters:%s; exit 0
parameters:%s
errors:no
type:script_output
message:Get selftest log for device %s
[test.offline]
command:/usr/local/sbin/smartctl -t offline
parameters:%s; exit 0
parameters:%s
errors:no
type:script_output
message:Testing device %s (offline)
description:Run SMART test (offline)
[test.short]
command:/usr/local/sbin/smartctl -t short
parameters:%s; exit 0
parameters:%s
errors:no
type:script_output
message:Testing device %s (short)
description:Run SMART test (short)
[test.long]
command:/usr/local/sbin/smartctl -t long
parameters:%s; exit 0
parameters:%s
errors:no
type:script_output
message:Testing device %s (long)
description:Run SMART test (long)
[test.conveyance]
command:/usr/local/sbin/smartctl -t conveyance
parameters:%s; exit 0
parameters:%s
errors:no
type:script_output
message:Testing device %s (conveyance)
description:Run SMART test (conveyance)
[abort]
command:/usr/local/sbin/smartctl -X
parameters:%s; exit 0
parameters:%s
errors:no
type:script_output
message:Abort test on device %s
description:Abort SMART tests