Bug 49106 - Monitoring check for dhcpd
Monitoring check for dhcpd
Status: NEW
Product: UCS
Classification: Unclassified
Component: Monitoring (Prometheus or Nagios)
UCS 4.4
Other Windows NT
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-03-26 16:25 CET by Michael Grandjean
Modified: 2022-06-27 17:48 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Grandjean univentionstaff 2019-03-26 16:25:21 CET
We should have a monitoring check for the DHCP server. It should either check for running processes or even better use check_dhcp, but that might require a dummy client to receive an IP address for the check.
Comment 1 Philipp Hahn univentionstaff 2019-03-27 16:24:33 CET
The Nagios "check_dhcp" command from "/usr/share/monitoring-plugins/templates-basic/dhcp.cfg" only works, when the DHCP server is different from the Nagios server (as dhcpd sends the DHCPOFFER out over the interface using RAW sockets). DHCP must be configured to hand out a lease to the Nagios server.

The following works *IF* the DHCP host != Nagios host:

udm dhcp/host create --set host=nagios --set hwaddress='ethernet 00:11:22:33:44:55' --set fixedaddress=10.200.17.254 --superordinate "cn=$(ucr get domainname),cn=dhcp,$(ucr get ldap/base)"

udm nagios/service create --position "cn=nagios,$(ucr get ldap/base)" --set checkCommand=check_dhcp --set checkPeriod=24x7 --set name=dhcp --set checkArgs=-m=00:11:22:33:44:55 --set notificationPeriod=24x7

udm computers/... modify --dn ... --append nagiosServices="cn=dhcp,cn=nagios,$(ucr get ldap/base)"


"check_dhcp" requires 'cap_net_raw', see /usr/share/doc/monitoring-plugins/README.Debian.gz:
# /var/lib/dpkg/info/monitoring-plugins-basic.postinst configure