Back to the list of connectors

SmartMon Tools

Connector file name: MS_HW_SmartMonLinux.hdf

This connector is superseded by:

Description

Gives S.M.A.R.T.-enabled physical disk information through the smartd/smartctl utility under Linux.

Target

Typical platform: Any system with SmartMon

Operating system: Linux

Prerequisites

Relies on: SmartMon Tools

Technology and protocols: System Commands

This connector requires advanced privileges on the managed host for the commands below:

  • /bin/dd
  • /usr/sbin/smartctl

This connector therefore needs to run as root or you need to configure a privilege-escalation mechanism like sudo on the managed host to allow the monitoring account to run the commands listed above.

Sample of /etc/sudoers to allow the above commands to be run as root by the patrol account:

patrol ALL=(root) NOPASSWD: /bin/dd
patrol ALL=(root) NOPASSWD: /usr/sbin/smartctl

Connector Activation Criteria

The SmartMon Tools connector will be automatically activated, and its status will be reported as OK if all of the criteria below are met:

  • Operating System is Linux
  • The command below succeeds on the monitored host
    • Command: /bin/ls /usr/sbin/smartd
    • Output contains: ^/usr/sbin/smartd$ (regex)
  • The command below succeeds on the monitored host
    • Command: /bin/ls /usr/sbin/smartctl
    • Output contains: ^/usr/sbin/smartctl$ (regex)
  • The command below succeeds on the monitored host
    • Command: /usr/sbin/smartd -c;/usr/sbin/smartd -q onecheck
    • Output contains: Device: .* opened (regex)
  • The command below succeeds on the monitored host
    • Command: /usr/sbin/smartd -c;/usr/sbin/smartd -q onecheck
    • Output contains: Device: .* is SMART capable (regex)

Monitors

Object Type Discovered Properties Collected Parameters
Physical Disk (MS_HW_PHYSICALDISK)
  • Serial Number
  • Vendor
  • Predicted Failure
  • Status
Temperature Sensor (MS_HW_TEMPERATURE)
  • Sensor Type/Location
  • Warning Threshold
  • Temperature
Keywords:
hardware hdf patrol connectors