I’m monitoring a device’s processes to ensure the necessary ones are running. On an example device I need 2 instances of Brave browser running.
I’ve installed check_mk (Check_MK Setup - LibreNMS Docs) and can see the processes listed under the device in LIbreNMS.
I am trying to setup an alert based on the following:
processes.command contains brave-browser
How should I go about counting the number of occurrences of this process running?
EDIT: Have tried this custom SQL to no avail:
SELECT * FROM devices,processes WHERE (devices.device_id = ? AND devices.device_id = processes.device_id) AND processes.command LIKE '%brave-browser%' > 1