Fixed!!
Add another widget 'Alert boxes' in dash 15 and I set the conditions separately
UPDATE dash_widgets
SET widget_config = '{
"conditions": [
{"metric": "processor_usage", "comparison": "ge", "value": 90,
"message": "CPU usage exceeded 90%"}
],
"status": "critical"
}'
WHERE widget_id = 119;
UPDATE dash_widgets
SET widget_config = '{
"conditions": [
{"metric": "mempool_perc", "comparison": "greater", "value": 90,
"message": "Memory usage exceeded 90%"}
],
"status": "critical"
}'
WHERE widget_id = 120;
-----------------------------
> SELECT * FROM dash_widgets where dash_id=15;
+-----------+---------+-------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+------+-------+--------+
| widget_id | dash_id | widget_type | widget_config
| x | y | width | height |
+-----------+---------+-------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+------+-------+--------+
| 119 | 15 | alert_boxes | {
"conditions": [
{"metric": "processor_usage", "comparison": "ge", "value": 90,
"message": "CPU usage exceeded 90%"}
],
"status": "critical"
} | 0 | 0 | 10 | 15 |
| 120 | 15 | alert_boxes | {
"conditions": [
{"metric": "mempool_perc", "comparison": "greater", "value": 90,
"message": "Memory usage exceeded 90%"}
],
"status": "critical"
} | 0 | 15 | 10 | 16 |
+-----------+---------+-------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+------+-------+--------+
2 rows in set (0,00 sec)
_______________________________________________
observium mailing list -- [email protected]
To unsubscribe send an email to [email protected]