netxms-things/templates/applications/yggdrasil
Stanislav Nikitin 63192712ed
Move apps-related templates to applications dir and add yggdrasil template and helpers.
2020-12-21 20:40:26 +05:00
..
README.md Move apps-related templates to applications dir and add yggdrasil template and helpers. 2020-12-21 20:40:26 +05:00
yggdrasil.xml Move apps-related templates to applications dir and add yggdrasil template and helpers. 2020-12-21 20:40:26 +05:00
yggdrasil_peers.sh Move apps-related templates to applications dir and add yggdrasil template and helpers. 2020-12-21 20:40:26 +05:00
yggdrasil_traffic.sh Move apps-related templates to applications dir and add yggdrasil template and helpers. 2020-12-21 20:40:26 +05:00

README.md

Yggdrasil monitoring things

This directory contains everything you need to monitor status of your Yggdrasil node.

Helper scripts

There are two helper scripts that should be placed somewhere. Don't forget about +x!

  • yggdrasil_peers.sh - returns number of connected peers.
  • yggdrasil_traffic.sh - returns traffic calculation. Accepts incoming or outgoing as first parameter.

Both scripts use yggdrasilctl binary and parse it's output.

Configure nxagent

Add this to /etc/nxagentd.conf:

ExternalParameterShellExec=Yggdrasil.GetBytesReceived():/usr/local/bin/yggdrasil_traffic.sh incoming
ExternalParameterShellExec=Yggdrasil.GetBytesSent():usr/local/bin/yggdrasil_traffic.sh outgoing
ExternalParameterShellExec=Yggdrasil.GetConnectedPeersCount():/usr/local/bin/yggdrasil_peers.sh

Don't forget to restart NetXMS agent!