Skip to content

thresholds file with only 3 fields does not work properly #101

@adamobcn

Description

@adamobcn

Describe the bug

A template with only 3 fields in its thresholds file does not work properly.

Example: with power thresholds of cisco templates:
PsuStatus : red : critical|not functioning
PsuStatus : yellow : warning|shutdown|not present
PsuStatus : green : normal

Adding any thresholds message in the 4th field fixes the issue:

Example:
PsuStatus : red : critical|not functioning : Error
PsuStatus : yellow : warning|shutdown|not present : Warning
PsuStatus : green : normal : Ok

Expected behaviour

Global color should be "red"

red Wed Aug 06 11:52:07 2025

Alarming on (Switch 1 - Power Supply A,Switch 1 - Power Supply B)

PSU TypePSU state
Switch 1 - Power Supply A&red critical
Switch 1 - Power Supply B&green normal

Actual behaviour

Global color is "green" when you have a PSU "red"

green Wed Jul 30 03:30:21 2025

Alarming on (Switch 1 - Power Supply A,Switch 1 - Power Supply B)

PSU TypePSU state
Switch 1 - Power Supply A&red critical
Switch 1 - Power Supply B&green normal

Server configuration

Xymon version:
Xymon 4.3.30

Perl version:
v5.16.3

Devmon version:
v0.25.03

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions