Problem
Before we start debuging the predictive monitoring, we need to increase the loglevel of Livestatus to debug as described here: How to collect troubleshooting data for various issue types#Core
Let's find all the the predictive metrics via Livestatus:
OMD[at]:~$ lq "GET services\nColumns: host_name description metrics\nFilter: metrics ~ predict\nFilter: host_name ~ localhost|Windows" localhost;CPU load;predict_load15,load15,load5,load1 localhost;CPU utilization;predict_util,util,wait,system,user
The predictive metrics in my example are:
predict_load15 predict_util
OMD[at]:~$ tail -f ~/var/log/cmc.log |grep "predict_load15" 2021-12-15 16:02:07 [6] [client 1] request: GET services\nColumns: rrddata:predict_load15:predict_load15.max:1639566126.581912:1639580526.581912:20\nFilter: host_name = localhost\nFilter: service_description = CPU load\nLocaltime: 1639580527\nOutputFormat: python3\nKeepAlive: on\nResponseHeader: fixed16\nColumnHeaders: off 2021-12-15 16:02:07 [6] [client 1] request: GET services\nColumns: rrddata:predict_load15:predict_load15.max:1639566127:1639580527:162\nFilter: host_name = localhost\nFilter: service_description = CPU load\nLocaltime: 1639580527\nOutputFormat: python3\nKeepAlive: on\nResponseHeader: fixed16\nColumnHeaders: off 2021-12-15 16:02:07 [6] [client 1] request: GET services\nColumns: rrddata:predict_load15:predict_load15.max:1639490527:1639580527:1022\nFilter: host_name = localhost\nFilter: service_description = CPU load\nLocaltime: 1639580527\nOutputFormat: python3\nKeepAlive: on\nResponseHeader: fixed16\nColumnHeaders: off 2021-12-15 16:02:07 [6] [client 1] request: GET services\nColumns: rrddata:predict_load15:predict_load15.max:1638889327:1639580527:7854\nFilter: host_name = localhost\nFilter: service_description = CPU load\nLocaltime: 1639580527\nOutputFormat: python3\nKeepAlive: on\nResponseHeader: fixed16\nColumnHeaders: off 2021-12-15 16:02:07 [6] [client 1] request: GET services\nColumns: rrddata:predict_load15:predict_load15.max:1636556527:1639580527:34362\nFilter: host_name = localhost\nFilter: service_description = CPU load\nLocaltime: 1639580527\nOutputFormat: python3\nKeepAlive: on\nResponseHeader: fixed16\nColumnHeaders: off 2021-12-15 16:02:07 [6] [client 1] request: GET services\nColumns: rrddata:predict_load15:predict_load15.max:1605020527:1639580527:392726\nFilter: host_name = localhost\nFilter: service_description = CPU load\nLocaltime: 1639580527\nOutputFormat: python3\nKeepAlive: on\nResponseHeader: fixed16\nColumnHeaders: off OMD[at]:~$ date -d@1639566126.581912 Wed Dec 15 12:02:06 CET 2021 OMD[at]:~$ date -d@1639566127 Wed Dec 15 12:02:07 CET 2021 OMD[at]:~$ date -d@1639490527 Tue Dec 14 15:02:07 CET 2021 OMD[at]:~$ date -d@1638889327 Tue Dec 7 16:02:07 CET 2021 OMD[at]:~$ date -d@1636556527 Wed Nov 10 16:02:07 CET 2021 OMD[at]:~$ date -d@1605020527 Tue Nov 10 16:02:07 CET 2020 OMD[at]:~$ date -d@1639580527 Wed Dec 15 16:02:07 CET 2021 OMD[at]:~$ date -d@1639580526.581912 Wed Dec 15 16:02:06 CET 2021
Related articles