Every series in InfluxDB contains the check_command which was executed by the monitoring system.
Beneath hostname/servicedescription histou also uses check_command to fetch the data from the database, which is determined by the following query:
SELECT * FROM metrics WHERE host = '__hostname__' AND service = '__servicedesc__'
GROUP BY performanceLabel LIMIT 1
Only one check_command is used to query the database. In case of a renamed check_command you won't get the series containing the other check_command anymore....
Proposal: if there are more than one check_comamnd, OR-combine them in the series query, e.g.
SELECT mean("value") AS "FastEthernet0/35_usage_in-value",
...
...
AS "FastEthernet0/35_usage_in-crit-max"
FROM "metrics"
WHERE "host" = '__hostname__'
AND "service" = 'snmp_interface_health'
AND ("command" = 'check_nwc_health_local' OR "command" = 'check_nwc_health') <<<<
AND "performanceLabel" = 'FastEthernet0/35_usage_in'
AND time > 1497058120s and time < 1505828288s
GROUP BY time(3h) fill(null);
Every series in InfluxDB contains the check_command which was executed by the monitoring system.
Beneath
hostname/servicedescription
histou also usescheck_command
to fetch the data from the database, which is determined by the following query:Only one check_command is used to query the database. In case of a renamed check_command you won't get the series containing the other check_command anymore....
Proposal: if there are more than one
check_comamnd
, OR-combine them in the series query, e.g.