#914916 nmap: Integrate prometheues port map into services file?

Package:
nmap
Source:
nmap
Description:
The Network Mapper
Submitter:
Witold Baryluk
Date:
2018-11-29 21:00:03 UTC
Severity:
wishlist
#914916#5
Date:
2018-11-28 16:09:00 UTC
From:
To:
$ grep prometheus /etc/collectd/collectd.conf.d/movax.conf
LoadPlugin write_prometheus
$ grep 9103 -A 1 -B 1 /etc/collectd/collectd.conf
#<Plugin write_prometheus>
#	Port "9103"
#</Plugin>
$

which is a default port assigned to collectd.

https://github.com/prometheus/prometheus/wiki/Default-port-allocations

These ports are http servers.

There is no single port because one machine / IP can have multiple
services (i.e. collectd, mysql, apache, node exporter, etc) at the same
time. In more complex scenarios (i.e. multiple services of same type on
single machine) a name/port discovery methods are used (i.e. via DNS SRV
or gce/ec2, etc).

When I scan it via nmap I got generic names:

Host is up (0.00038s latency).
Not shown: 999 closed ports
PORT      STATE SERVICE
22/tcp    open  ssh
9103/tcp  open  jetdirect
MAC Address: 00:xy:zz


Which is not quite correct.

There are some other ports there that might be missing from current
services file in nmap.

maybe jetdirect-or-prometheus-collectd-exporter ?

Or add some support for multiplies of names (with own ratios) into
services, so nmap can pretty print them and extend in the future.

#914916#10
Date:
2018-11-29 20:57:02 UTC
From:
To:
Nmap gets port names from IANA, with some community input for very common
services.
Port 9103 is frequently used by JetDirect printers, which is why it is
labeled that way.
Use -sV to probe the target and identify the service itself. Unidentified
services can be
submitted directly to the Nmap Project:
https://nmap.org/book/vscan-community.html

This is a better topic to discuss with Nmap development community, not the
Debian
package maintainers. Please open an issue on http://issues.nmap.org/ or
join the
Nmap developers mailing list: https://seclists.org/nmap-dev/

Dan