3 # Alias: Default web GUI
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.
12 if [ ! -z "$CONFIG_WEB" ]; then echo "$CONFIG_WEB"; else echo "welcome"; fi
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"
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
31 omd config
set NAGVIS_URLS
$2 >/dev
/null
2>&1
35 [ "$CONFIG_APACHE_MODE" != none
]