Librenms

Iš Žinynas.
17:24, 13 birželio 2018 versija, sukurta \dev\null (Aptarimas | indėlis) (Naujas puslapis: == Multicore cpu monitoringas == mysql use librenms; Gaunam sql is puslapio: https://sindrelindstad.com/projects/tools/alertgen/ ir sudedam sql INSERT INTO librenms.alert_r...)
(skirt) ← Ankstesnė versija | Dabartinė versija (skirt) | Vėlesnė versija→ (skirt)
Peršokti į: navigacija, paiešką


Multicore cpu monitoringas

mysql
use librenms;

Gaunam sql is puslapio: https://sindrelindstad.com/projects/tools/alertgen/ ir sudedam sql

INSERT INTO librenms.alert_rules (device_id, rule, severity, extra, disabled, name, query) VALUES ('-1', 'Do not edit this rule!', 'critical', '{"mute":false,"count":"1","delay":1800,"invert":false,"interval":300}', 0, 'Aggregate CPU utilization over 98%', 'SELECT * FROM librenms.devices WHERE devices.status = 1 AND devices.device_id = (SELECT device_id FROM librenms.processors WHERE (SELECT ROUND(AVG(processor_usage)) FROM librenms.processors WHERE (processors.device_id = ?) LIMIT 1) > 98 LIMIT 1)');