Difference between revisions of "Mtr"
From NixOS Wiki
m (add Software/Applications subcategory) |
m (Add a description of `mtr` and usage.) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:mtr}} | {{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 === |
Revision as of 16:28, 22 October 2022
About
mtr
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:
{
programs.mtr.enable = true;
services.mtr-exporter.enable = true;
}
Issues
mtr needs to be called with sudo
To avoid the need to escalate privileges when calling mtr
create a setcap wrapper by setting
programs.mtr.enable = true;