Skip to main content

DHCP Hostnames

Copies the traffic of each Internal Hosts key into a group meant to be keyed by DHCP hostname. With the current code the keys stay as IP addresses.

PropertyValue
GUID{A8D34B1F-E0E5-458D-012A-0A31B0746D41}
LayerDerived
InputInternal
Key typeIPv4 address (hostname intended)
ImplementationLua — newcg-hostname.lua, fed by cg_monitor_hosts.lua (apps/analyzers/fortigate-connector)
Trisul Appfortigate-connector (install from Trisul Apps)
Bucket / Topper60 s / 300 s
Enabled by defaultYes, once the app is installed

What it measures​

  • cg_monitor_hosts.lua watches Internal Hosts. On each flush of an Internal Hosts key it adds meters 0, 1 and 2 (rate × 60, in bytes) to this group.
  • The script would replace the IP key with a hostname from a DHCP lease, and drop the lease after its expiry time, when it receives a lease message ({DE53D193-9A98-4443-2289-84E537A5820A}). No script in the app sends that message, so every key is the Internal Hosts IP key.
  • The group's resolver is Hosts, so the UI shows the label that Hosts has for the IP. forti-dhcp.lua sets those Hosts labels from the syslog user, srcname, hostname and url fields.
  • The ad-connector app ships the same cg_monitor_hosts.lua and also writes to this group when installed, so with both apps installed every Internal Hosts value is added twice.

Keys​

One key is one internal IPv4 host, in Trisul hex form.

KeyMeaning
C0.A8.01.0A192.168.1.10, shown with its Hosts label (for example LAPTOP-JSMITH)
0A.00.05.2110.0.5.33

Special keys​

KeyMeaning
SYS:GROUP_TOTALSSum of every update made to this group in the interval, equal to the Internal Hosts total (twice that with ad-connector also installed).

Meter list​

IDNameTypeUnitsTopBottomDescription
0TotalVT_RATE_COUNTERBps1000Internal Hosts meter 0 (Total) for this host.
1RecvVT_RATE_COUNTERBps1000Internal Hosts meter 1 (Received) for this host.
2XmitVT_RATE_COUNTERBps1000Internal Hosts meter 2 (Transmit) for this host.
3Unused Cardinality counterVT_GAUGEUniques2020Reserved cardinality slot. Not populated.
4Unused Cardinality counterVT_GAUGEUniques2020Reserved cardinality slot. Not populated.