Bug 39718 - UCS 4.1 RC: Nagios is not registered on the overview site
UCS 4.1 RC: Nagios is not registered on the overview site
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1
Assigned To: Dirk Wiesenthal
Stefan Gohmann
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-11-03 06:36 CET by Stefan Gohmann
Modified: 2015-11-17 12:12 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
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?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
setup.log (165.21 KB, application/text)
2015-11-03 06:36 CET, Stefan Gohmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2015-11-03 06:36:35 CET
Created attachment 7242 [details]
setup.log

I've installed a master with Nagios. After rebooting the system, Nagios is not registered on the overview site.
Comment 1 Dirk Wiesenthal univentionstaff 2015-11-03 23:28:09 CET
nagios.ini has UCSOverviewCategory=False and therefore no overview site is registered.
Comment 2 Stefan Gohmann univentionstaff 2015-11-04 06:01:39 CET
Yes, that is because Nagios should be registered on the Administration tab and not on the service tab.

It looks like the App Center disables the Nagios entry:
----------------------------------------------------------------------------
root@master441:~# grep -B 10 admin\/nagios /var/log/univention/config-registry.replog
2015-11-03 08:49:21: set nagios/plugin/check_nrpe/timeout=10 old:[Previously undefined]
2015-11-03 08:49:21: set nagios/server/autostart=yes old:[Previously undefined]
2015-11-03 08:49:21: set nagios/server/user/systemcmd='*' old:[Previously undefined]
2015-11-03 08:49:21: set nagios/server/hostcheck/enable=yes old:[Previously undefined]
2015-11-03 08:49:21: set nagios/server/refreshrate=90 old:[Previously undefined]
2015-11-03 08:49:21: set nagios/server/user/allinfo='*' old:[Previously undefined]
2015-11-03 08:49:21: set nagios/server/authenticate=yes old:[Previously undefined]
2015-11-03 08:49:21: set nagios/server/user/allcmd='*' old:[Previously undefined]
2015-11-03 08:49:21: set nagios/server/hostcheck/notificationinterval=180 old:[Previously undefined]
2015-11-03 08:49:21: set nagios/server/user/systeminfo='*' old:[Previously undefined]
2015-11-03 08:49:22: set ucs/web/overview/entries/admin/nagios/priority=50 old:[Previously undefined]
2015-11-03 08:49:22: set ucs/web/overview/entries/admin/nagios/description='Network, host and service monitoring system' old:[Previously undefined]
2015-11-03 08:49:22: set ucs/web/overview/entries/admin/nagios/description/de='Netzwerk-, Host- und Serviceüberwachung' old:[Previously undefined]
2015-11-03 08:49:22: set ucs/web/overview/entries/admin/nagios/label='Univention Nagios' old:[Previously undefined]
2015-11-03 08:49:22: set ucs/web/overview/entries/admin/nagios/link=/nagios/ old:[Previously undefined]
2015-11-03 08:49:22: set ucs/web/overview/entries/admin/nagios/label/de='Univention Nagios' old:[Previously undefined]
--
2015-11-03 08:50:56: set auth/sshd/group/Computers=yes old:[Previously undefined]
2015-11-03 08:50:56: set auth/sshd/group/Domain Admins=yes old:[Previously undefined]
2015-11-03 08:50:56: set auth/sshd/group/DC Slave Hosts=yes old:[Previously undefined]
2015-11-03 08:50:56: set auth/sshd/group/DC Backup Hosts=yes old:[Previously undefined]
2015-11-03 08:51:03: set groups/default/printoperators=Printer-Admins old:[Previously undefined]
2015-11-03 08:51:05: set license/base='UCS Core Edition' old:[Previously undefined]
2015-11-03 08:52:05: set appcenter/apps/nagios/version=3.2 old:[Previously undefined]
2015-11-03 08:52:05: set appcenter/apps/nagios/status=installed old:[Previously undefined]
2015-11-03 08:52:07: set appcenter/apps/samba4/version=4.1 old:[Previously undefined]
2015-11-03 08:52:07: set appcenter/apps/samba4/status=installed old:[Previously undefined]
2015-11-03 08:52:08: unset 'ucs/web/overview/entries/admin/nagios/priority' old:50
2015-11-03 08:52:08: unset 'ucs/web/overview/entries/admin/nagios/description' old:Network, host and service monitoring system
2015-11-03 08:52:08: unset 'ucs/web/overview/entries/admin/nagios/description/de' old:Netzwerk-, Host- und Serviceüberwachung
2015-11-03 08:52:08: unset 'ucs/web/overview/entries/admin/nagios/label' old:Univention Nagios
2015-11-03 08:52:08: unset 'ucs/web/overview/entries/admin/nagios/link' old:/nagios/
2015-11-03 08:52:08: unset 'ucs/web/overview/entries/admin/nagios/label/de' old:Univention Nagios
----------------------------------------------------------------------------

It worked with UCS 4.0. So, I'll re-open it.
Comment 3 Dirk Wiesenthal univentionstaff 2015-11-09 16:58:43 CET
Fixed in
  univention-appcenter 5.0.17-3.57.201511091650

UCSverviewCategory=False now does not delete any ucs/web/... variables anymore. with False the App has to do it on its own.

UCSOverviewCategory=None (new) still deletes any previously set ucs/web/... - this is useful if an App for some reason does not want to have any overview link (this is the behaviour that led to this bug report)
Comment 4 Dirk Wiesenthal univentionstaff 2015-11-10 14:33:55 CET
Another fix in
  univention-appcenter 5.0.17-5.59.201511101420
Comment 5 Stefan Gohmann univentionstaff 2015-11-10 21:11:16 CET
(In reply to Dirk Wiesenthal from comment #3)
> Fixed in
>   univention-appcenter 5.0.17-3.57.201511091650
> 
> UCSverviewCategory=False now does not delete any ucs/web/... variables
> anymore. with False the App has to do it on its own.
> 
> UCSOverviewCategory=None (new) still deletes any previously set ucs/web/...
> - this is useful if an App for some reason does not want to have any
> overview link (this is the behaviour that led to this bug report)

OK, it works now. Please add a separate changelog entry.
Comment 6 Dirk Wiesenthal univentionstaff 2015-11-12 00:57:26 CET
(In reply to Stefan Gohmann from comment #5)
> OK, it works now. Please add a separate changelog entry.

Added
Comment 7 Stefan Gohmann univentionstaff 2015-11-12 06:21:40 CET
(In reply to Dirk Wiesenthal from comment #6)
> (In reply to Stefan Gohmann from comment #5)
> > OK, it works now. Please add a separate changelog entry.
> 
> Added

OK
Comment 8 Stefan Gohmann univentionstaff 2015-11-17 12:12:36 CET
UCS 4.1 has been released:
 https://docs.software-univention.de/release-notes-4.1-0-en.html
 https://docs.software-univention.de/release-notes-4.1-0-de.html

If this error occurs again, please use "Clone This Bug".