Difference between revisions of "Mtr"

From NixOS Wiki
Jump to: navigation, search
m (Add a description of `mtr` and usage.)
(Add warning about the new wiki)
Line 1: Line 1:
 +
{{warning|1=You are reading an article on the deprecated unofficial wiki. For the up to date version of this article, see https://wiki.nixos.org/wiki/Mtr.}}
 +
 
{{DISPLAYTITLE:mtr}}
 
{{DISPLAYTITLE:mtr}}
  

Revision as of 06:37, 5 April 2024

Warning: You are reading an article on the deprecated unofficial wiki. For the up to date version of this article, see https://wiki.nixos.org/wiki/Mtr.


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;