Changes of Revision 6
[-] | Changed | openpom.spec |
x 1
2 Summary: Icinga/Nagios IDO Frontend 3 Source0: openpom-1.3.0.tar.bz2 4 Source1: openpom.conf 5 +Patch0: openpom-1.3.0-config.patch 6 BuildRoot: %{_tmppath}/%{name}-%{version}-root 7 Requires: php-mysql mod_php_any 8 BuildArch: noarch 9
10 11 %prep 12 %setup 13 +%patch0 14 15 %build 16 17 |
||
[+] | Added | openpom-1.3.0-config.patch ^ |
@@ -0,0 +1,18 @@ +--- 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 |