Mtr: Difference between revisions
imported>Fadenb Created page with "== Issues == === mtr needs to be called with sudo === To avoid the need to escalate privileges when calling <code>mtr</code> create a setcap wrapper by setting <code>programs...." |
imported>Longregen m Add a description of `mtr` and usage. |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:mtr}} | |||
==About== | |||
<code>mtr</code> is a network diagnostic tool that combines ping and traceroute into one program. Nixpkgs contains two flavors of it: the standalone application and a prometheus-ready exporter: | |||
<syntaxhighlight lang="nix">{ | |||
programs.mtr.enable = true; | |||
services.mtr-exporter.enable = true; | |||
}</syntaxhighlight> | |||
== Issues == | == Issues == | ||
=== mtr needs to be called with sudo === | === mtr needs to be called with sudo === | ||
To avoid the need to escalate privileges when calling <code>mtr</code> create a setcap wrapper by setting | To avoid the need to escalate privileges when calling <code>mtr</code> create a setcap wrapper by setting | ||
< | <syntaxhighlight lang="nix">programs.mtr.enable = true;</syntaxhighlight> | ||
[[Category:Applications]] | |||