Alert rules- Practicals
- Verify whether pc1 is down or up
- Check whether pc6 memory usage > 50%
- Find the devices where the CPU usage >=90
Note : Configure to send email in above scenarios
Answers
1.
SELECT * FROM devices WHERE (devices.device_id = ?) AND (devices.disabled = 0 && devices.ignore = 0) = 1 AND devices.status = 1
SELECT * FROM devices,mempools WHERE (devices.device_id = ? AND devices.device_id = mempools.device_id) AND (devices.status = 1 && (devices.disabled = 0 && devices.ignore = 0)) = 1 AND mempools.mempool_perc >= 90 AND mempools.mempool_descr REGEXP "Virtual.*"
SELECT * FROM devices,processors WHERE (devices.device_id = ? AND devices.device_id = processors.device_id) AND (devices.status = 1 && (devices.disabled = 0 && devices.ignore = 0)) = 1 AND processors.processor_usage >= 90
Last modified
6 years ago
Last modified on Mar 7, 2019, 4:30:21 PM
Attachments (3)
- Alert1.png (98.3 KB ) - added by 6 years ago.
- Alert2.png (104.8 KB ) - added by 6 years ago.
- Alert3.png (95.5 KB ) - added by 6 years ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.