check_oracle_health: update to 1.9
[omd.git] / packages / omd / DEFAULT_GUI.hook
blob819bfb0da251a280dfb996cb8844a1458c406fc8
1 #!/bin/bash
3 # Alias: Default web GUI
4 # Menu: Web GUI
5 # Description:
6 # Here you can choose your default webinterface to use. You can run several Nagios GUIs at
7 # the same time but only one GUI can be your default. The default GUI is opened when
8 # someone opens your site in a browser without a specific URL.
10 case "$1" in
11 default)
12 if [ ! -z "$CONFIG_WEB" ]; then echo "$CONFIG_WEB"; else echo "welcome"; fi
14 choices)
15 echo "welcome: Welcome page which lists all available GUIs"
16 [ -e $OMD_ROOT/share/nagios/htdocs ] && echo "nagios: Classic Nagios webinterface"
17 [ -e $OMD_ROOT/share/icinga/htdocs ] && echo "icinga: Classic Icinga webinterface"
18 [ -e $OMD_ROOT/share/check_mk/web ] && echo "check_mk: The Check_MK's Multisite GUI"
19 [ -e $OMD_ROOT/share/thruk ] && echo "thruk: Thruk Monitoring Webinterface"
20 [ -e $OMD_ROOT/share/nagvis ] && echo "nagvis: NagVis - The visualisation addon for Nagios"
21 echo "none: No default webinterface"
23 set)
24 # This is some sort of hack. The problem here:
25 # The NAGVIS_URL hook depends on this hooks value but is not
26 # executed when this hook is changed. It would be better to
27 # solve this in a more general way in omd.
28 if [ "$2" == "welcome" -o "$2" == "nagvis" ]; then
29 omd config set NAGVIS_URLS nagios >/dev/null 2>&1
30 else
31 omd config set NAGVIS_URLS $2 >/dev/null 2>&1
34 depends)
35 [ "$CONFIG_APACHE_MODE" != none ]
37 esac