Currently running PHP 5.2.1 with Cacti installed with the latest patches and also have the newest Mysql. I was running 0.0.1b of mactrack, but ran into issues getting the MAC/IP report working. That issue will be addressed in another post... Anyhow, to install the new SVN version, I right-clicked saved all of the files in the right folders and then renamed my old mactrack folder under my cacti/plugin directory and placed it in there. I then removed the old tables for mactrack using the DROP TABLE command and then imported both the macktrack.sql and the macktrack.sql.0.0.1 since it it would error if I tried to import them since the tables already existed . I then ran the database_upgrade.php file and mostly displayed successes... minus a few "already exists".
Now, when I go to add/modify a Device type, I get the following error after clicking, "Save."
Warning: Cannot modify header information = headers already sent by (output started at c:\Inetpub\wwwroot\cacti\plugins\mactrack\lib\mactrack_foundry.php:152) in c:\Inetpub\wwwroot\cacti\plugins\mactrack\mactrack_device_types.php on line 103"
I looked on the web and they said something about blanks near the headers within a PHP item, but I'm not good enough in PHP to know where to go or where the problem is. Any ideas?
[FC] Mac Track SVN error in Win2003, Cannot modify header
Moderators: Developers, Moderators
[FC] Mac Track SVN error in Win2003, Cannot modify header
Last edited by Isamu on Mon Apr 23, 2007 10:33 am, edited 1 time in total.
Best I can tell from looking at it quickly, is that the mactrack_foundry.php file is causing the problem. I don't have any Foundry devices, so for now I am just commenting that particular file out in the mactrack_vendors.php file.
Code:
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_cabletron.php");
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_cisco.php");
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_norbay.php");
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_hp.php");
#include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_foundry.php");
It will still show up as a scan type on device type screens. I might remove it from the mac_track_scanning_type table in the database for my install as well, as I don't anticipate needing that function for my environment.
Code:
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_cabletron.php");
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_cisco.php");
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_norbay.php");
include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_hp.php");
#include_once($config["base_path"] . "/plugins/mactrack/lib/mactrack_foundry.php");
It will still show up as a scan type on device type screens. I might remove it from the mac_track_scanning_type table in the database for my install as well, as I don't anticipate needing that function for my environment.
Who is online
Users browsing this forum: No registered users and 0 guests