Fixed!!

Add another 'Alert boxes' 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;
+-----------+---------+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+------+-------+--------+
| widget_id | dash_id | widget_type      | widget_config                        
                                                                                
                                                    | x    | y    | width | 
height |
+-----------+---------+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+------+-------+--------+
|         2 |       1 | status_summary   | {}                                   
                                                                                
                                                    |    0 |    0 |    12 |     
 8 |
|         3 |       1 | map              | {}                                   
                                                                                
                                                    |    0 |    8 |    12 |     
 8 |
|         4 |       1 | old_status_boxes | {}                                   
                                                                                
                                                    |    0 |   16 |    12 |     
 3 |
|         5 |       1 | old_status_table | {}                                   
                                                                                
                                                    |    0 |   19 |    12 |     
 8 |
|         6 |       1 | eventlog         | {}                                   
                                                                                
                                                    |    0 |   27 |    12 |     
 8 |
|        32 |       5 | status_summary   | []                                   
                                                                                
                                                    |    7 |   18 |     5 |     
 3 |
|        33 |       5 | old_status_table | []                                   
                                                                                
                                                    |    0 |    0 |    12 |     
18 |
|        34 |       5 | old_status_boxes | []                                   
                                                                                
                                                    |    0 |   24 |    12 |     
10 |
|        54 |       5 | alertlog         | []                                   
                                                                                
                                                    |    0 |   18 |     7 |     
 6 |
|        66 |       1 | alert_table      | []                                   
                                                                                
                                                    |    0 |   35 |     4 |     
 3 |
|        67 |       1 | alert_boxes      | []                                   
                                                                                
                                                    |    4 |   35 |     4 |     
 3 |
|        87 |      10 | alert_boxes      | []                                   
                                                                                
                                                    |    5 |    0 |     6 |     
14 |
|        92 |      10 | status_summary   | []                                   
                                                                                
                                                    |    1 |   13 |     4 |     
 3 |
|        93 |      10 | alert_table      | []                                   
                                                                                
                                                    |    0 |    0 |     5 |     
13 |
|        94 |      10 | old_status_table | []                                   
                                                                                
                                                    |    5 |   14 |     5 |     
 7 |
|       107 |      10 | alert_table      | []                                   
                                                                                
                                                    |    0 |   16 |     4 |     
 3 |
|       109 |      14 | alert_table      | []                                   
                                                                                
                                                    |    0 |    0 |     5 |     
 7 |
|       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 |    12 |     21 |
+-----------+---------+------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------+------+-------+--------+
19 rows in set (0,00 sec)
_______________________________________________
observium mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to