Bug 50825 - Make the ip address used by nagios for host check configurable
Make the ip address used by nagios for host check configurable
Status: NEW
Product: UCS
Classification: Unclassified
Component: Monitoring (Prometheus or Nagios)
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-02-13 16:23 CET by Christina Scheinig
Modified: 2020-02-13 16:25 CET (History)
0 users

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?: Yes
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2020012721000693
Bug group (optional):
Max CVSS v3 score:


Attachments
shows, where the second IP was set, which troubles the nagios check. (62.94 KB, image/png)
2020-02-13 16:23 CET, Christina Scheinig
Details

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Christina Scheinig univentionstaff 2020-02-13 16:25:45 CET
If forgot to privatize the config file so here again:

If you have a second ipaddress defined for a server in the UMC 

The nagios configuration now shows the second ipaddress:

 cat /etc/nagios/conf.univention.d/hosts/master.schein.ig.cfg
# Warning: This file is auto-generated and might be overwritten.
#          Please use univention-admin instead.
# Warnung: Diese Datei wurde automatisch generiert und wird
#          automatisch ueberschrieben. Bitte benutzen Sie
#          stattdessen den Univention Admin.

define host {
    host_name               master.schein.ig
    alias                   master.schein.ig
    address                 10.200.43.187
    check_command           check-host-alive
    max_check_attempts      10
    contact_groups          univention-admins.schein.ig
    notification_interval   180
    notification_period     Univention-Predefined-24x7
    notification_options    d,u,r
}
-------------------------------------------------------
univention-ldapsearch -LLLo ldif-wrap=no cn=master arecord
dn: cn=master,cn=dc,cn=computers,dc=schein,dc=ig
aRecord: 10.200.43.187
aRecord: 10.200.43.180

In this case the first hit is used in the nagios configuration.

-------------------------------------------------------
The customer would like the interfaces/primary to be queried. At the moment it is used by random?