Child pages
  • Event Classes
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Example of "Link Down" and "Link Up" event class

    {
        "name": "Network | Link | Link Down",
        "description": "Link Down",
        "action": "A",
        "link_event": true,
        "text" : {
            "en": {
                "subject_template": "Link Down: {{interface}}",
                "body_template": "Link Down: {{interface}}",
                "symptoms": "Connection lost",
                "probable_causes": "Administrative action, cable damage, hardware or software error either from this or from another side",
                "recommended_actions": "Check configuration, both sides of links and hardware"
            }
        },
        "vars": [
            {
                "name": "interface",
                "description": "Affected interface",
                "type": "interface_name",
                "required": true
            }
        ],
        "disposition": [
            {
                "name": "dispose",
                "action": "raise",
                "alarm_class__name": "Network | Link | Link Down"
            }
        ]
    },
    {
        "name": "Network | Link | Link Up",
        "description": "Link Up",
        "action": "A",
        "link_event": true,
        "text" : {
            "en": {
                "subject_template": "Link Up: {{interface}}{% if speed %}, Speed: {{speed}}{% endif %}{% if duplex %}, Duplex: {{duplex}}{% endif %}",
                "body_template": "Link Up: {{interface}}{% if speed %}, Speed: {{speed}}{% endif %}{% if duplex %}, Duplex: {{duplex}}{% endif %}",
                "symptoms": "Connection restored",
                "probable_causes": "Administrative action, cable or hardware replacement",
                "recommended_actions": "Check interfaces on both sides for possible errors"
            }
        },
        "vars": [
            {
                "name": "interface",
                "description": "Affected interface",
                "type": "interface_name",
                "required": true
            },
            {
                "name": "speed",
                "description": "Link speed",
                "type": "str",
                "required": false
            },
            {
                "name": "duplex",
                "description": "Duplex mode",
                "type": "str",
                "required": false
            }
        ],
        "disposition": [
            {
                "name": "Clear Link Down",
                "action": "clear",
                "alarm_class__name": "Network | Link | Link Down",
                "stop_disposition": false
            },
            {
                "name": "Clear Err-Disable",
                "action": "clear",
                "alarm_class__name": "Network | Link | Err-Disable",
                "stop_disposition": false
            },
            {
                "name": "Clear BPDU Guard Violation",
                "action": "clear",
                "alarm_class__name": "Network | STP | BPDU Guard Violation",
                "stop_disposition": false
            },
            {
                "name": "Clear Root Guard Violation",
                "action": "clear",
                "alarm_class__name": "Network | STP | Root Guard Violation",
                "stop_disposition": false
            }
        ]
    }

List of variable types:

TypeDescription
strString
intInteger
ipv4_addressIPv4 address like aaa.bbb.ccc.ddd
ipv6_addressIPv6 address
ip_addressBoth IPv4 and IPv6 addresses
ipv4_prefix 
ipv6_prefix 
ip_prefix 
macMAC address. The result will be passed to MAC._clean() function
interface_nameThe result will be passed to convert_interface_name() function
oidSNMP Oid

List of embedded functions:

NameExampleResult
fixup_int_to_ip() aaa.bbb.ccc.ddd
fixup_bin_to_ip() aaa.bbb.ccc.ddd
fixup_bin_to_mac() aa:bb:cc:dd:ee:ff
fixup_oid_to_str()  
fixup_enum()  
  • No labels