[]ALERTS as of now[]


{

    "status": "ok",

    "rules": [

        {

            "id": 1,

            "rule": "",

            "severity": "critical",

            "extra": "{"mute":false,"count":"1","delay":60,"invert":false,"interval":300,"recovery":true,"options":{"override_query":null}}",

            "disabled": 0,

            "name": "Devices down",

            "query": "SELECT * FROM devices WHERE (devices.device_id = ?) AND (devices.status = 0 && (devices.disabled = 0 && devices.ignore = 0)) = 1 AND devices.hostname NOT LIKE '%netman%'",

            "builder": "{"condition":"AND","rules":[{"id":"macros.device_down","field":"macros.device_down","type":"integer","input":"radio","operator":"equal","value":"1"},{"id":"devices.hostname","field":"devices.hostname","type":"string","input":"text","operator":"not_contains","value":"netman"}],"valid":true}",

            "proc": ""

        },

        {

            "id": 2,

            "rule": "",

            "severity": "warning",

            "extra": "{"mute":false,"count":"1","delay":900,"invert":false,"interval":300,"recovery":true,"options":{"override_query":null}}",

            "disabled": 0,

            "name": "Port status down",

            "query": "SELECT * FROM devices,ports WHERE (devices.device_id = ? AND devices.device_id = ports.device_id) AND (ports.ifOperStatus = "down" && ports.ifAdminStatus != "down" && (ports.deleted = 0 && ports.ignore = 0 && ports.disabled = 0)) = 1 AND ports.ifName != "Vlan" AND ports.ifName != "em1" AND ports.ifAlias != "*Not_Monitored*" AND devices.hostname NOT LIKE '%netman%'",

            "builder": "{"condition":"AND","rules":[{"id":"macros.port_down","field":"macros.port_down","type":"integer","input":"radio","operator":"equal","value":"1"},{"id":"ports.ifName","field":"ports.ifName","type":"string","input":"text","operator":"not_equal","value":"Vlan"},{"id":"ports.ifName","field":"ports.ifName","type":"string","input":"text","operator":"not_equal","value":"em1"},{"id":"ports.ifAlias","field":"ports.ifAlias","type":"string","input":"text","operator":"not_equal","value":"*Not_Monitored*"},{"id":"devices.hostname","field":"devices.hostname","type":"string","input":"text","operator":"not_contains","value":"netman"}],"valid":true}",

            "proc": ""

        },

        {

```ggg