Collection of CheckMK checks (see https://checkmk.com/). All checks and plugins are provided as is. Absolutely no warranty. Send any comments to thl-cmk[at]outlook[dot]com

Skip to content
README.md 1.48 KiB
Newer Older
thl-cmk's avatar
thl-cmk committed
# Extended traceroute plugin [(Download the MKP package)](/../../../-/raw/master/active_check_traceroute.mkp "Download MKP package")

This is a extension for the original CheckMK traceroute plugin (Routing)

thl-cmk's avatar
thl-cmk committed
adds the following options:
thl-cmk's avatar
thl-cmk committed

- service description suffix
- alternate destination address
thl-cmk's avatar
thl-cmk committed
- UDP method (without increasing the port for each probe)
thl-cmk's avatar
thl-cmk committed
- destination port for UDP/TCP path trace
- max hops
- queries per hop
- source address
- source interface (needs root permissions)
- perfometer

thl-cmk's avatar
thl-cmk committed
**Note: Source address and source interface uses the "shell=True" option in in the "subprocess.Popen" command. This is insecure, so be careful.**

To disable this options you need to comment out the line `shell = True` in [~/lib/nagios/plugins/check_traceroute](https://thl-cmk.hopto.org/gitlab/checkmk/vendor-independent/active_check_traceroute/-/blob/master/lib/nagios/plugins/check_traceroute) like this.

```
    if (source_int is not None) or (source_addr is not None):
        cmd = ' '.join(cmd)
        # shell = True

```
thl-cmk's avatar
thl-cmk committed

**Note**: the original TCP path trace option also needs root permisions.
thl-cmk's avatar
thl-cmk committed

---
Check Info:

thl-cmk's avatar
thl-cmk committed
* *service*: creates the service **_Routing {item}_** with optional suffix as item
thl-cmk's avatar
thl-cmk committed
---
thl-cmk's avatar
thl-cmk committed
* *state*: see original plugin
thl-cmk's avatar
thl-cmk committed
---
* *wato*: [(see WATO options)](/../../../-/raw/master/doc/wato.png "see sample screenshot")
---
thl-cmk's avatar
thl-cmk committed
* *perfdata*: see original plugin
thl-cmk's avatar
thl-cmk committed
---
Sample output

![sample output](/doc/sample.png?raw=true "sample output")

WATO

![WATO options](/doc/wato.png?raw=true "WATO options")