monitoringunipager
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| monitoringunipager [2018/02/26 21:36] – dh3wr | monitoringunipager [2019/09/26 14:37] (aktuell) – dh3wr | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== Monitoring of Unipager Transmitters on the Unipager itself ====== | ====== Monitoring of Unipager Transmitters on the Unipager itself ====== | ||
| + | ===== Overview ===== | ||
| + | |||
| + | There are three variantes of Nagios plugins available. | ||
| + | * Solution with JSON Status output of Unipager directly (since Version 1.0.0) | ||
| + | * Websocket based with C++ programm | ||
| + | * Websocket based with Python programm | ||
| + | |||
| + | Also Daniel Dibbets DL6FZ provided a Template for Zabbix. See below for more info. | ||
| + | |||
| + | If you have already Unipager V 1.0.0 or newer installed, the JSON output solution is highly recommended due to performance issues. | ||
| + | |||
| + | ===== Up-to-date Solution with JSON Output ===== | ||
| + | This approach uses the same '' | ||
| + | |||
| + | Add to your '' | ||
| + | < | ||
| + | # ' | ||
| + | define command{ | ||
| + | command_name | ||
| + | command_line | ||
| + | } | ||
| + | |||
| + | # ' | ||
| + | define command{ | ||
| + | command_name | ||
| + | command_line | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | * ARG1: Port of the HTTP Server of Unipager, default is '' | ||
| + | * ARG2: Number of POCSAG transmissions in queue to be exceeded for status '' | ||
| + | * ARG3: Number of POCSAG transmission in queue to be exceeded for status '' | ||
| + | |||
| + | Create a service description for the new commands: | ||
| + | < | ||
| + | # Define a service to check if unipager is connected to a Node | ||
| + | define service{ | ||
| + | use | ||
| + | host_name | ||
| + | service_description | ||
| + | check_command | ||
| + | } | ||
| + | |||
| + | # Define a service to check if unipager queue is too full | ||
| + | define service{ | ||
| + | use | ||
| + | host_name | ||
| + | service_description | ||
| + | check_command | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | The result should be like this: | ||
| + | {{ :: | ||
| + | |||
| + | ===== Websocket Solution ===== | ||
| + | {{: | ||
| + | |||
| Ein entsprechendes Plugin für die Websocket-Schnittstelle kann unter [[https:// | Ein entsprechendes Plugin für die Websocket-Schnittstelle kann unter [[https:// | ||
| * C++ Version (Viele Abhängigkeiten) | * C++ Version (Viele Abhängigkeiten) | ||
| Zeile 10: | Zeile 68: | ||
| < | < | ||
| - | ===== C++-Version | + | ==== C++-Version ==== |
| Mit | Mit | ||
| < | < | ||
| Zeile 27: | Zeile 85: | ||
| </ | </ | ||
| - | ===== Pyhton2-Version | + | ==== Pyhton2-Version ==== |
| - | FIXME | + | There is in the same Git-repository a pyhton2 version to do the same. You can find the code in '' |
| - | ===== Generelle Einstellungen | + | ==== Generelle Einstellungen |
| - | Die Datei /// | + | Die Datei '' |
| < | < | ||
| - | Die Datei /// | + | Die Datei '' |
| < | < | ||
| < | < | ||
| - | ACHTUNG: Nur bei Zugriff von //localhost// aus braucht man ab der Version 0.7.1 von [[unipager|UniPager]] kein Passwort. | + | ACHTUNG: Nur bei Zugriff von '' |
| Dann den nagios-nrpe-server neu starten: | Dann den nagios-nrpe-server neu starten: | ||
| < | < | ||
| - | Auf dem Haupt-Nagios-Server kann man dann mit den NRPE-Plugin den Status abfragen. Dazu erstellt man eine Datei in /// | + | Auf dem Haupt-Nagios-Server kann man dann mit den NRPE-Plugin den Status abfragen. Dazu erstellt man eine Datei in '' |
| < | < | ||
| define host{ | define host{ | ||
| Zeile 66: | Zeile 124: | ||
| Die hostgroup, host_name, alias und IP müssen natürlich angepasst werden. Einmal nagios neustarten und schon wird der Status überwacht. | Die hostgroup, host_name, alias und IP müssen natürlich angepasst werden. Einmal nagios neustarten und schon wird der Status überwacht. | ||
| + | |||
| + | ===== Zabbix Template for Unipager ===== | ||
| + | Daniel Dibbets DL6FZ provided a template for Zabbix to monitor the unipager program. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | 6 Items are observed: | ||
| + | * Connected | ||
| + | * Master | ||
| + | * Queue | ||
| + | * Version | ||
| + | * Calls RX | ||
| + | * Calls TX | ||
| + | |||
| + | 3 Triggers are integrated: | ||
| + | * Not Connected | ||
| + | * Queue > 500 | ||
| + | * Queue > 1000 | ||
| + | |||
| + | Data is gathered from Status JSON (http:// | ||
| + | |||
| + | Zabbix will build history and delta information concerning the numberical values. | ||
monitoringunipager.1519680966.txt.gz · Zuletzt geändert: 2018/02/26 21:36 von dh3wr