Skip to main content

Oracle/Sun Solaris - Environment (prtpicl)

Description

This connector provides environmental information (temperatures, fans, etc.) on several Sun platforms through the prtpicl utility. This connector is mainly to be used on Solaris 10 systems.

hardware solaris sun

Enterprise Connector

This connector requires the Enterprise edition of MetricsHub.

Superseded Connector

This connector is superseded by:

Supersedes

This connector supersedes:

Target

Typical platform: Sun/Oracle Servers

Operating system: Oracle Solaris

Prerequisites

Leverages: Sun Solaris system commands (prtpicl, etc.)

Technology and protocols: Commands

Examples

CLI

metricshub HOSTNAME -t solaris -c +SunPrtpicl --ssh -u USER

metricshub.yaml

resourceGroups:
<RESOURCE_GROUP>:
resources:
<HOSTNAME-ID>:
attributes:
host.name: <HOSTNAME> # Change with actual host name
host.type: solaris
connectors: [ +SunPrtpicl ] # Optional, to load only this connector
protocols:
ssh:
username: <USERNAME> # Change with actual credentials
password: <PASSWORD> # Encrypted using metricshub-encrypt

Connector Activation Criteria

The Oracle/Sun Solaris - Environment (prtpicl) connector will be automatically activated, and its status will be reported as OK if all the below criteria are met:

  • The device type must be one of: SunOS, Solaris
  • The command below succeeds on the monitored host:
    • Command: /bin/ls /usr/sbin/prtpicl
    • Output contains: ^/usr/sbin/prtpicl$ (regex)
  • The command below succeeds on the monitored host:
    • Command: /usr/sbin/prtpicl -v -c temperature-sensor;/usr/sbin/prtpicl -v -c temperature-indicator
    • Output contains: \(Temperature[ ]+[0-9]\)\|\(Condition[ ]+[A-Za-z]\) (regex)
  • The command below succeeds on the monitored host:
    • Command: PRTPICLCOUNT=pgrep prtpicl|wc -l ; if /bin/test $PRTPICLCOUNT -lt 30; then echo MSHW_prtld_OK; else echo $PRTPICLCOUNT prtpicl processes running - suspect prtld service failure; fi
    • Output contains: MSHW_prtld_OK (regex)

Metrics

TypeCollected MetricsSpecific Attributes
enclosurehw.status{hw.type="enclosure", state="present"}id
model
name
type
fanhw.fan.speed
hw.fan.speed.limit{limit_type="low.degraded"}
hw.fan.speed_ratio
hw.fan.speed_ratio.limit{limit_type="low.degraded"}
hw.status{hw.type="fan", state="degraded|failed|ok"}
hw.status{hw.type="fan", state="present"}
hw.parent.type
id
info
name
ledhw.status{hw.type="led", state="degraded|failed|ok"}
hw.status{hw.type="led", state="present"}
color
hw.parent.type
id
info
name
temperaturehw.status{hw.type="temperature", state="degraded|failed|ok"}
hw.status{hw.type="temperature", state="present"}
hw.temperature
hw.temperature.limit{limit_type="high.degraded"}
hw.parent.type
id
info
name
voltagehw.status{hw.type="voltage", state="degraded|failed|ok"}
hw.status{hw.type="voltage", state="present"}
hw.voltage
hw.voltage.limit{limit_type="high.critical"}
hw.voltage.limit{limit_type="low.critical"}
hw.parent.type
id
info
name