nav
nav copied to clipboard
[BUG] Renaming of `snmptrapd.py` to `snmptrapd` conflicts with Net-SNMP's `snmptrapd`
NAV 5.9.1
FreeBSD 13.2-RELEASE-p11
python39-3.9.18_2
net-snmp-5.9.4,1
$PATH = /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin:/usr/local/nav/bin
The net-snmp package on FreeBSD installs a /usr/local/sbin/snmptrapd NAV 5.9.1 strips the .py-ending of all the daemons and installs a /usr/local/bin/snmptrapd.py
'nav start snmptrapd' then tries to start the wrong snmptrapd due to $PATH
I do not dare to switch /usr/local/bin and /usr/local/sbin in $PATH. Workaround was to add the .py-suffix to NAV's snmptrapd
In principle, I would prefer several of the existing NAV programs to be prefixed by nav
to avoid common binary names. I might suggest renaming NAV's trap daemon to just navtrapd
. Viewpoints?
Good idea to rename to navtrapd!