Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
openpom
> openpom-1.3.0-config.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File openpom-1.3.0-config.patch of Package openpom (Revision 6)
Currently displaying revision
6
,
show latest
--- config.php.orig 2011-08-01 09:34:03.116367070 +0200 +++ config.php 2011-08-01 09:34:46.306633377 +0200 @@ -92,12 +92,12 @@ //$SUDO_PARAM = ""; $CMD_FILE = "/usr/local/nagios/var/rw/nagios.cmd"; //$CMD_FILE = "/var/lib/icinga/rw/icinga.cmd"; -$LINK = "http://".$BACKEND."/cgi-bin/extinfo.cgi"; -$LOG = "http://".$BACKEND."/cgi-bin/showlog.cgi"; +$LINK = "http://" . $_SERVER['HTTP_HOST']. "/" .$BACKEND."/cgi-bin/extinfo.cgi"; +$LOG = "http://" . $_SERVER['HTTP_HOST']. "/" .$BACKEND."/cgi-bin/showlog.cgi"; /* SHOW GRPAH FROM EXTERNAL SOURCE ON STATUS */ $GRAPH_STATUS = array( - 'target' => 'http://'.$BACKEND.'/cgi-bin/trends.cgi?createimage&backtrack=4&zoom=4', + 'target' => 'http://' . $_SERVER['HTTP_HOST']. '/' .$BACKEND.'/cgi-bin/trends.cgi?createimage&backtrack=4&zoom=4', 'p_host' => 'host', 'p_svc' => 'service', 'host_is_ping' => false