Check HP UPS system status via Nagios

Check HP switch sensor status via NagiosNagios configuration definitions below allow you to check status of HP UPS systems via Nagios. Requirements: SNMP is enabled at UPS systems and Net-SNMP is installed at the Nagios host.

 

 

# UPS Rack 1
define host {
    use generic-switch
    host_name ups-rack-1
    alias UPS Rack 1
    address
}


# UPS Battery Time Remaining
define service{
    use generic-service
    host_name ups-rack-1
    service_description Battery Time Remaining
    check_command check_snmp!-o .1.3.6.1.4.1.232.165.3.2.1.0 -l "Battery Time Remaining" -u " secs"
}

# UPS Battery Voltage
define service{
    use generic-service
    host_name ups-rack-1
    service_description Battery voltage
    check_command check_snmp!-o .1.3.6.1.4.1.232.165.3.2.2.0 -l "Battery Voltage" -s " V"
}

# UPS Battery Current
define service{
    use generic-service
    host_name ups-rack-1
    service_description Battery current
    check_command check_snmp! -o .1.3.6.1.4.1.232.165.3.2.3.0 -l "Battery current"
}

# UPS Battery Capacity
define service{
    use generic-service
    host_name ups-rack-1
    service_description Battery capacity
    check_command check_snmp!-o .1.3.6.1.4.1.232.165.3.2.4.0 -l "Battery capacity"
}