@@ -22,50 +22,54 @@ Make sure to add a LibreNMS integration and copy the webhook URL.
2222** Step 2**
2323
2424* Give a ** Name** to the Alert Transport
25- * Select ` Api ` *** * as ** Transport type** &#x 20 ;
25+ * Select ` Api ` as ** Transport type**
2626* ** Default alert** is toggled to ` ON `
2727* Choose the ** API Method** as ` POST `
2828* Paste the Spike webhook URL
2929* In ** Options** , paste the following template given below.
3030
3131```
32- device_id={{ $device_id }}
33- hostname= {{ $hostname }}
34- sysName={{ $sysName }}
35- sysDescr={{ $sysDescr }}
36- sysContact={{ $sysContact }}
37- os={{ $os }}
38- type={{ $type }}
39- ip={{ $ip }}
40- hardware={{ $hardware }}
41- version={{ $version }}
42- features={{ $features }}
43- serial={{ $serial }}
44- uptime_short={{ $uptime_short }}
45- uptime_long={{ $uptime_long }}
46- description={{ $description }}
47- notes={{ $notes }}
48- location={{ $location }}
49- uptime={{ $uptime }}
50- ping_avg={{ $ping_avg }}
51- title={{ $title }}
52- elapsed={{ $elapsed }}
53- builder={{ $builder }}
54- id={{ $id }}
55- uid={{ $uid }}
56- state={{ $state }}
57- severity={{ $severity }}
58- alert_notes={{ $alert_notes }}
59- ping_timestamp={{ $ping_timestamp }}
60- ping_loss={{ $ping_loss }}
61- ping_min={{ $ping_min }}
62- ping_max={{ $ping_max }}
63-
64- rule={{ $rule }}
65- name={{ $name }}
66- proc={{ $proc }}
67- timestamp={{ $timestamp }}
68- transport={{ $transport }}
69- transport_name={{ $transport_name }}
32+ {
33+ "device_id": "{{ $device_id }}",
34+ "hostname": "{{ $hostname }}",
35+ "sysName": "{{ $sysName }}",
36+ "sysDescr": "{{ $sysDescr }}",
37+ "sysContact": "{{ $sysContact }}",
38+ "os": "{{ $os }}",
39+ "type": "{{ $type }}",
40+ "ip": "{{ $ip }}",
41+ "hardware": "{{ $hardware }}",
42+ "version": "{{ $version }}",
43+ "features": "{{ $features }}",
44+ "serial": "{{ $serial }}",
45+ "uptime_short": "{{ $uptime_short }}",
46+ "uptime_long": "{{ $uptime_long }}",
47+ "description": "{{ $description }}",
48+ "notes": "{{ $notes }}",
49+ "location": "{{ $location }}",
50+ "uptime": "{{ $uptime }}",
51+ "ping_avg": "{{ $ping_avg }}",
52+ "title": "{{ $title }}",
53+ "elapsed": "{{ $elapsed }}",
54+ "builder": "{{ $builder }}",
55+ "id": "{{ $id }}",
56+ "uid": "{{ $uid }}",
57+ "state": "{{ $state }}",
58+ "severity": "{{ $severity }}",
59+ "alert_notes": "{{ $alert_notes }}",
60+ "ping_timestamp": "{{ $ping_timestamp }}",
61+ "ping_loss": "{{ $ping_loss }}",
62+ "ping_min": "{{ $ping_min }}",
63+ "ping_max": "{{ $ping_max }}",
64+ "rule": "{{ $rule }}",
65+ "name": "{{ $name }}",
66+ "proc": "{{ $proc }}",
67+ "timestamp": "{{ $timestamp }}",
68+ "transport": "{{ $transport }}",
69+ "transport_name": "{{ $transport_name }}",
70+ "message": "{{ $msg }}"
71+ }
7072```
7173
74+ ![ LibreNMS configuration] ( image.png )
75+
0 commit comments