Merge branch 'master' of mathias-kettner.de:omd
[omd.git] / packages / omd / DEFAULT_GUI.hook
blob0ccaf9ab7438f30e2df3de6ca2f06bb961299134
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 echo "welcome"
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 depends)
24 [ "$CONFIG_APACHE_MODE" != none ]
26 esac