upgraded to 0.8.6i, now haloe plugin not displaying properly
Moderators: Developers, Moderators
upgraded to 0.8.6i, now haloe plugin not displaying properly
Operating System: Windows 2003 Server
Webserver: IIS 6
Cacti: cacti-0.8.6i
Cactid: cacti-cactid-0.8.6g-cygwin-1.5.20
MySQL: 5.0.24-nt
PHP: PHP/5.1.6
I upgraded to 0.8.6i this morning and everything appears to be working fine except for my syslog plugin. I reconfigured everything according to the haloe install instructions and can't figure out what I'm missing.
One thing I noticed is the config.php in 0.8.6i does not have these lines:
$plugins = array();
//$plugins[] = 'thold';
$plugins[] = 'haloe';
and
$config["url_path"] = "/cacti/";
/* include the plugin function, we do this before everything else,
incase we want to add hooks to change config options */
include_once($config["include_path"] . "/plugins.php");
I added them in but no dice. The images and links point to http://servername/cacti/ instead of http://servername/cacti/plugins/. If I browse to haloe.php directly, there's more problems.
Here's a couple of screenshots of what I'm looking at:
Webserver: IIS 6
Cacti: cacti-0.8.6i
Cactid: cacti-cactid-0.8.6g-cygwin-1.5.20
MySQL: 5.0.24-nt
PHP: PHP/5.1.6
I upgraded to 0.8.6i this morning and everything appears to be working fine except for my syslog plugin. I reconfigured everything according to the haloe install instructions and can't figure out what I'm missing.
One thing I noticed is the config.php in 0.8.6i does not have these lines:
$plugins = array();
//$plugins[] = 'thold';
$plugins[] = 'haloe';
and
$config["url_path"] = "/cacti/";
/* include the plugin function, we do this before everything else,
incase we want to add hooks to change config options */
include_once($config["include_path"] . "/plugins.php");
I added them in but no dice. The images and links point to http://servername/cacti/ instead of http://servername/cacti/plugins/. If I browse to haloe.php directly, there's more problems.
Here's a couple of screenshots of what I'm looking at:
- Attachments
-
- Syslog tab is missing. Link points to http://servername/cacti/haloe.php and image is http://servername/cacti/images/tab_haloe.gif
- screen1.jpg (47.26 KiB) Viewed 9983 times
-
- Browsing directly to the plugin doesn't help.
- screen2.jpg (46.69 KiB) Viewed 9983 times
I have reapplied the plugin architecture 0.8.6i and still see the above problem? The links work, just no image.
The image paths are like,
http://servername/cacti/plugins/thold/p ... _thold.gif
What else should I do?
PS.. I have it temporarily working by changing config.php and setting $config['url_path'] = "/cacti/"; manually. I don't want to leave it this way if I can help it.
-----------------
if (isset($_SERVER['DOCUMENT_ROOT']))
//$config['url_path'] = substr(__FILE__, strlen($_SERVER['DOCUMENT_ROOT']), -18 );
$config['url_path'] = "/cacti/";
The image paths are like,
http://servername/cacti/plugins/thold/p ... _thold.gif
What else should I do?
PS.. I have it temporarily working by changing config.php and setting $config['url_path'] = "/cacti/"; manually. I don't want to leave it this way if I can help it.
-----------------
if (isset($_SERVER['DOCUMENT_ROOT']))
//$config['url_path'] = substr(__FILE__, strlen($_SERVER['DOCUMENT_ROOT']), -18 );
$config['url_path'] = "/cacti/";
Thanks Cigamit. I re-applied all the files and added my plugin list to config.php but the issue is still occurring?
[quote][b]Cacti Version[/b] - 0.8.6j
[b]Plugin Architecture[/b] - 1.1
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Windows NT 6.0
[b]Web Server[/b] - Microsoft-IIS/7.0
[b]PHP[/b] - 5.2.0
[b]PHP Extensions[/b] - bcmath, calendar, com_dotnet, ctype, session, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, date, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, ISAPI, gd, mysql, snmp, sockets
[b]MySQL[/b] - 5.0.27-community-nt
[b]RRDTool[/b] - 1.2.15
[b]SNMP[/b] - 5.4
[b]Plugins[/b][list]Large Site Performane Booster for Cacti (boost - v1.0)
Read-only Devices Tab (devices - v0.4)
Network Discovery (discovery - v0.7)
Simple Links page (links - v0.3)
Host Info (hostinfo - v0.1)
Device Monitoring (monitor - v0.7)
PHP Network Managing (manage - v0.4)
NTop Viewer (ntop - v0.1)
Report Creator (reports - v0.1b)
Network Tools (tools - v0.2)
Update Checker (update - v0.3)
PHP Network Weathermap (weathermap - v0.82)[/list][/quote]
[b]Plugin Architecture[/b] - 1.1
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Windows NT 6.0
[b]Web Server[/b] - Microsoft-IIS/7.0
[b]PHP[/b] - 5.2.0
[b]PHP Extensions[/b] - bcmath, calendar, com_dotnet, ctype, session, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, date, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, ISAPI, gd, mysql, snmp, sockets
[b]MySQL[/b] - 5.0.27-community-nt
[b]RRDTool[/b] - 1.2.15
[b]SNMP[/b] - 5.4
[b]Plugins[/b][list]Large Site Performane Booster for Cacti (boost - v1.0)
Read-only Devices Tab (devices - v0.4)
Network Discovery (discovery - v0.7)
Simple Links page (links - v0.3)
Host Info (hostinfo - v0.1)
Device Monitoring (monitor - v0.7)
PHP Network Managing (manage - v0.4)
NTop Viewer (ntop - v0.1)
Report Creator (reports - v0.1b)
Network Tools (tools - v0.2)
Update Checker (update - v0.3)
PHP Network Weathermap (weathermap - v0.82)[/list][/quote]
Mind giving me the output of
Code: Select all
print "<pre>";
print_r($_SERVER);
print "</pre>";
#!/usr/bin/php -q
<pre>Array
(
[ALLUSERSPROFILE] => C:\Documents and Settings\All Users
[ANALYZERUI_REVISION] => 6.19.2.6.5
[APPDATA] => C:\Documents and Settings\td\Application Data
[CLIENTNAME] => TD-DUANE
[ClusterLog] => C:\WINDOWS\Cluster\cluster.log
[CommonProgramFiles] => C:\Program Files\Common Files
[COMPUTERNAME] => CLAMON01
[ComSpec] => C:\WINDOWS\system32\cmd.exe
[EVENTMONITORUI_REVISION] => 6.19.2.0.0
[FP_NO_HOST_CHECK] => NO
[HOMEDRIVE] => C:
[HOMEPATH] => \Documents and Settings\td
[LOGONSERVER] => \\CLADC01
[MANAGEMENTUI_REVISION] => 6.19.2.0.0
[MIBDIRS] => C:\Monitor\PHP\extras\mibs
[MIRRORVIEWUI_REVISION] => 6.19.2.6.5
[NAVISPHERE_WEBCONTENT] => C:\Program Files\EMC\ManagementUI\6.19.2.0.0\WebC
ontent
[NUMBER_OF_PROCESSORS] => 4
[OS] => Windows_NT
[Path] => C:\Monitor\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys
tem32\Wbem;C:\Program Files\Dell\SysMgt\oma\bin;c:\Program Files\Intel\DMIX;C:\M
onitor\MySQL\bin;C:\Monitor\Net-SNMP\usr\bin;C:\Monitor\PHP;c:\Program Files\Mic
rosoft SQL Server\80\Tools\Binn\;C:\Program Files\Dell\SysMgt\RAC;C:\Program Fil
es\OPENXTRA\WinPCap
[PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
[PHPRC] => C:\Monitor\PHP
[PROCESSOR_ARCHITECTURE] => x86
[PROCESSOR_IDENTIFIER] => x86 Family 15 Model 4 Stepping 10, GenuineIntel
[PROCESSOR_LEVEL] => 15
[PROCESSOR_REVISION] => 040a
[ProgramFiles] => C:\Program Files
[PROMPT] => $P$G
[SANCOPYUI_REVISION] => 6.19.2.0.0
[SESSIONNAME] => RDP-Tcp#13
[SNAPVIEWUI_REVISION] => 6.19.2.6.5
[SystemDrive] => C:
[SystemRoot] => C:\WINDOWS
[TEMP] => C:\DOCUME~1\td\LOCALS~1\Temp\1
[TMP] => C:\DOCUME~1\td\LOCALS~1\Temp\1
[USERDNSDOMAIN] => CORP.AMDEL.COM
[USERDOMAIN] => AMDEL.COM
[USERNAME] => td
[USERPROFILE] => C:\Documents and Settings\td
[windir] => C:\WINDOWS
[PHP_SELF] => test.php
[SCRIPT_NAME] => test.php
[SCRIPT_FILENAME] => test.php
[PATH_TRANSLATED] => test.php
[DOCUMENT_ROOT] =>
[REQUEST_TIME] => 1161046462
[argv] => Array
(
[0] => test.php
)
[argc] => 1
)
</pre>
<pre>Array
(
[ALLUSERSPROFILE] => C:\Documents and Settings\All Users
[ANALYZERUI_REVISION] => 6.19.2.6.5
[APPDATA] => C:\Documents and Settings\td\Application Data
[CLIENTNAME] => TD-DUANE
[ClusterLog] => C:\WINDOWS\Cluster\cluster.log
[CommonProgramFiles] => C:\Program Files\Common Files
[COMPUTERNAME] => CLAMON01
[ComSpec] => C:\WINDOWS\system32\cmd.exe
[EVENTMONITORUI_REVISION] => 6.19.2.0.0
[FP_NO_HOST_CHECK] => NO
[HOMEDRIVE] => C:
[HOMEPATH] => \Documents and Settings\td
[LOGONSERVER] => \\CLADC01
[MANAGEMENTUI_REVISION] => 6.19.2.0.0
[MIBDIRS] => C:\Monitor\PHP\extras\mibs
[MIRRORVIEWUI_REVISION] => 6.19.2.6.5
[NAVISPHERE_WEBCONTENT] => C:\Program Files\EMC\ManagementUI\6.19.2.0.0\WebC
ontent
[NUMBER_OF_PROCESSORS] => 4
[OS] => Windows_NT
[Path] => C:\Monitor\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys
tem32\Wbem;C:\Program Files\Dell\SysMgt\oma\bin;c:\Program Files\Intel\DMIX;C:\M
onitor\MySQL\bin;C:\Monitor\Net-SNMP\usr\bin;C:\Monitor\PHP;c:\Program Files\Mic
rosoft SQL Server\80\Tools\Binn\;C:\Program Files\Dell\SysMgt\RAC;C:\Program Fil
es\OPENXTRA\WinPCap
[PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
[PHPRC] => C:\Monitor\PHP
[PROCESSOR_ARCHITECTURE] => x86
[PROCESSOR_IDENTIFIER] => x86 Family 15 Model 4 Stepping 10, GenuineIntel
[PROCESSOR_LEVEL] => 15
[PROCESSOR_REVISION] => 040a
[ProgramFiles] => C:\Program Files
[PROMPT] => $P$G
[SANCOPYUI_REVISION] => 6.19.2.0.0
[SESSIONNAME] => RDP-Tcp#13
[SNAPVIEWUI_REVISION] => 6.19.2.6.5
[SystemDrive] => C:
[SystemRoot] => C:\WINDOWS
[TEMP] => C:\DOCUME~1\td\LOCALS~1\Temp\1
[TMP] => C:\DOCUME~1\td\LOCALS~1\Temp\1
[USERDNSDOMAIN] => CORP.AMDEL.COM
[USERDOMAIN] => AMDEL.COM
[USERNAME] => td
[USERPROFILE] => C:\Documents and Settings\td
[windir] => C:\WINDOWS
[PHP_SELF] => test.php
[SCRIPT_NAME] => test.php
[SCRIPT_FILENAME] => test.php
[PATH_TRANSLATED] => test.php
[DOCUMENT_ROOT] =>
[REQUEST_TIME] => 1161046462
[argv] => Array
(
[0] => test.php
)
[argc] => 1
)
</pre>
[quote][b]Cacti Version[/b] - 0.8.6j
[b]Plugin Architecture[/b] - 1.1
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Windows NT 6.0
[b]Web Server[/b] - Microsoft-IIS/7.0
[b]PHP[/b] - 5.2.0
[b]PHP Extensions[/b] - bcmath, calendar, com_dotnet, ctype, session, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, date, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, ISAPI, gd, mysql, snmp, sockets
[b]MySQL[/b] - 5.0.27-community-nt
[b]RRDTool[/b] - 1.2.15
[b]SNMP[/b] - 5.4
[b]Plugins[/b][list]Large Site Performane Booster for Cacti (boost - v1.0)
Read-only Devices Tab (devices - v0.4)
Network Discovery (discovery - v0.7)
Simple Links page (links - v0.3)
Host Info (hostinfo - v0.1)
Device Monitoring (monitor - v0.7)
PHP Network Managing (manage - v0.4)
NTop Viewer (ntop - v0.1)
Report Creator (reports - v0.1b)
Network Tools (tools - v0.2)
Update Checker (update - v0.3)
PHP Network Weathermap (weathermap - v0.82)[/list][/quote]
[b]Plugin Architecture[/b] - 1.1
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Windows NT 6.0
[b]Web Server[/b] - Microsoft-IIS/7.0
[b]PHP[/b] - 5.2.0
[b]PHP Extensions[/b] - bcmath, calendar, com_dotnet, ctype, session, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, date, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, ISAPI, gd, mysql, snmp, sockets
[b]MySQL[/b] - 5.0.27-community-nt
[b]RRDTool[/b] - 1.2.15
[b]SNMP[/b] - 5.4
[b]Plugins[/b][list]Large Site Performane Booster for Cacti (boost - v1.0)
Read-only Devices Tab (devices - v0.4)
Network Discovery (discovery - v0.7)
Simple Links page (links - v0.3)
Host Info (hostinfo - v0.1)
Device Monitoring (monitor - v0.7)
PHP Network Managing (manage - v0.4)
NTop Viewer (ntop - v0.1)
Report Creator (reports - v0.1b)
Network Tools (tools - v0.2)
Update Checker (update - v0.3)
PHP Network Weathermap (weathermap - v0.82)[/list][/quote]
ok. how's this one?
#!/usr/bin/php -q
Array
(
[ALL_HTTP] => HTTP_CONNECTION:Keep-Alive
HTTP_ACCEPT:*/*
HTTP_ACCEPT_ENCODING:gzip, deflate
HTTP_ACCEPT_LANGUAGE:en-us,en-au;q=0.5
HTTP_COOKIE:PHPSESSID=61725a0d9bf967e3fab6e05bbac89591
HTTP_HOST:clamon01
HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)
HTTP_UA_CPU:x86
[HTTPS] => off
[SCRIPT_NAME] => /cacti/test.php
[HTTP_COOKIE] => PHPSESSID=61725a0d9bf967e3fab6e05bbac89591
[AUTH_PASSWORD] =>
[AUTH_TYPE] =>
[AUTH_USER] =>
[CONTENT_LENGTH] => 0
[CONTENT_TYPE] =>
[PATH_TRANSLATED] => c:\inetpub\wwwroot
[QUERY_STRING] =>
[REMOTE_ADDR] => 172.18.10.128
[REMOTE_HOST] => 172.18.10.128
[REMOTE_USER] =>
[REQUEST_METHOD] => GET
[SERVER_NAME] => clamon01
[SERVER_PORT] => 80
[SERVER_PROTOCOL] => HTTP/1.1
[SERVER_SOFTWARE] => Microsoft-IIS/6.0
[APPL_MD_PATH] => /LM/W3SVC/1/Root/Cacti
[APPL_PHYSICAL_PATH] => C:\Monitor\Cacti\
[INSTANCE_ID] => 1
[INSTANCE_META_PATH] => /LM/W3SVC/1
[LOGON_USER] =>
[REQUEST_URI] => /cacti/test.php
[URL] => /cacti/test.php
[SCRIPT_FILENAME] => C:\Monitor\Cacti\test.php
[ORIG_PATH_INFO] => /cacti/test.php
[PATH_INFO] =>
[ORIG_PATH_TRANSLATED] => C:\Monitor\Cacti\test.php
[DOCUMENT_ROOT] => c:\inetpub\wwwroot
[PHP_SELF] => /cacti/test.php
[HTTP_CONNECTION] => Keep-Alive
[HTTP_ACCEPT] => */*
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_ACCEPT_LANGUAGE] => en-us,en-au;q=0.5
[HTTP_HOST] => clamon01
[HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)
[HTTP_UA_CPU] => x86
[REQUEST_TIME] => 1161051828
[argv] => Array
(
)
[argc] => 0
)
#!/usr/bin/php -q
Array
(
[ALL_HTTP] => HTTP_CONNECTION:Keep-Alive
HTTP_ACCEPT:*/*
HTTP_ACCEPT_ENCODING:gzip, deflate
HTTP_ACCEPT_LANGUAGE:en-us,en-au;q=0.5
HTTP_COOKIE:PHPSESSID=61725a0d9bf967e3fab6e05bbac89591
HTTP_HOST:clamon01
HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)
HTTP_UA_CPU:x86
[HTTPS] => off
[SCRIPT_NAME] => /cacti/test.php
[HTTP_COOKIE] => PHPSESSID=61725a0d9bf967e3fab6e05bbac89591
[AUTH_PASSWORD] =>
[AUTH_TYPE] =>
[AUTH_USER] =>
[CONTENT_LENGTH] => 0
[CONTENT_TYPE] =>
[PATH_TRANSLATED] => c:\inetpub\wwwroot
[QUERY_STRING] =>
[REMOTE_ADDR] => 172.18.10.128
[REMOTE_HOST] => 172.18.10.128
[REMOTE_USER] =>
[REQUEST_METHOD] => GET
[SERVER_NAME] => clamon01
[SERVER_PORT] => 80
[SERVER_PROTOCOL] => HTTP/1.1
[SERVER_SOFTWARE] => Microsoft-IIS/6.0
[APPL_MD_PATH] => /LM/W3SVC/1/Root/Cacti
[APPL_PHYSICAL_PATH] => C:\Monitor\Cacti\
[INSTANCE_ID] => 1
[INSTANCE_META_PATH] => /LM/W3SVC/1
[LOGON_USER] =>
[REQUEST_URI] => /cacti/test.php
[URL] => /cacti/test.php
[SCRIPT_FILENAME] => C:\Monitor\Cacti\test.php
[ORIG_PATH_INFO] => /cacti/test.php
[PATH_INFO] =>
[ORIG_PATH_TRANSLATED] => C:\Monitor\Cacti\test.php
[DOCUMENT_ROOT] => c:\inetpub\wwwroot
[PHP_SELF] => /cacti/test.php
[HTTP_CONNECTION] => Keep-Alive
[HTTP_ACCEPT] => */*
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_ACCEPT_LANGUAGE] => en-us,en-au;q=0.5
[HTTP_HOST] => clamon01
[HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)
[HTTP_UA_CPU] => x86
[REQUEST_TIME] => 1161051828
[argv] => Array
(
)
[argc] => 0
)
Try this config file. Just override yours, and then reset up the database settings.cigamit wrote:Found the problem! I should have a fix shortly.
- Attachments
-
- config.zip
- config.php replacement
- (2.9 KiB) Downloaded 359 times
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi cigamitcigamit wrote:Try this config file. Just override yours, and then reset up the database settings.
maybe a 1.0.1 architecture sould be released ?
Regards,
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Well, everyone that has downloaded the Plugin Architecture since I fixed it has actually gotten the corrected version, so its only the few users who downloaded it in the first few days. Even then, 99% of them would actually work without the fix, since it really only happens on Windows systems under certain circumstances.fmangeant wrote:Hi cigamitcigamit wrote:Try this config file. Just override yours, and then reset up the database settings.
maybe a 1.0.1 architecture sould be released ?
Regards,
Who is online
Users browsing this forum: No registered users and 0 guests