End Device Tracking Add-On for Cacti
Moderators: Developers, Moderators
I figured out this part of the problem, and it was because I was not using the Plugin version of Cacti..
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 52,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 53,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 65,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 65,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 66,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 66,
still working on it to find out the issue with the do_hook() function. Has to be in something I have done, or possibly a PHP4 issue or lib not loaded correctly.
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 52,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 53,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 65,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 65,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 66,
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 66,
still working on it to find out the issue with the do_hook() function. Has to be in something I have done, or possibly a PHP4 issue or lib not loaded correctly.
I may have overlooked this, but I did scan through all of the pages before posting this. I have gotten mactrack up and running after creating a device type to match my 2950's and it is collecting data for just about everything. The only things that it doesn't seem to be collecting are the end device IP address and the port name. I noticed earlier in the thread where it had been mentioned that there might be an issue with the poller_mactrack.php and the $ip_range["site_id"] field, but I checked mine and it appears fine (I have ran the database_upgrade.php file so that probably accounts for that).
Does anyone have any idea's on what I could look for on this? By the way, this is running on Windows XP, PHP 5.1.2 and Apache 2.0.55. Thanks.
Does anyone have any idea's on what I could look for on this? By the way, this is running on Windows XP, PHP 5.1.2 and Apache 2.0.55. Thanks.
I tested mactrack on my cacti server (FreeBSD 6.0 - running net-snmp-5.2.2_1) and it works fine. I can't imaging it is that dissimilar. I have included screen shots that may help you.Skept wrote:chadd, thanks for the tip. I have tried that and have created a device type with my oid. but after adding a new device, it still recognizes it as .1.3.6.1.4.1.8072.3.2.10 [the default one, i mean].
I am sure, I missed something.
- Attachments
-
- First, create the device in mactrack.
- create_device.PNG (65.16 KiB) Viewed 8508 times
-
- Second, create the device type, using the information that mactrack gathered from the device when it did the snmp walk/get on it.
- create_device_type.PNG (60.08 KiB) Viewed 8508 times
-
- Last, success. Wait for the polling cycle (or do a manual kickoff) and the device should come back as 'UP' - and you should have IP's discovered.
- success.PNG (51.22 KiB) Viewed 8508 times
It seems like your /includes/config.php was not patched properly when installing the Plugin Architecture. Use the prepatched file included with the Plugin Architecture, and re-enter your database information into it.quinten wrote:I figured out this part of the problem, and it was because I was not using the Plugin version of Cacti..
PHP Notice: Undefined index: url_path in /var/www/html/mactrack/include/top_mactrack_header.php on line 52,
still working on it to find out the issue with the do_hook() function. Has to be in something I have done, or possibly a PHP4 issue or lib not loaded correctly.
chadd, Your post has been informative. Thanks.
After following the steps, I finally got this
Freya NOC Up 10.27.27.32 Switch/Router 92 2 2 0 0 0.8
I basically had to create a device type with the oid it has detected and the device identifier.
But what i meant was the mactrack script has detected an OID .1.3.6.1.4.1.8072.3.2.10 and when I do a snmpwalk my [linux box]/[the snmpd on the box] reports that the oid does'nt exist, which surprised me. Secondly after reporting the switch/router ports, the mactrack script did not report the ip-macs pairs in its output.
And I do see the snmpd holding the ip-mac pairs under a different oid. And I was wondering if it would be possible to make the script list them in its output.
Thirdly, possibly a mis-configuration on my part, but I noticed a minor quirk. My linux boxes have their device types as 2.4.31 or .32 with an extra tag, for example 2.4.32-bitchie. The script generated an error [Instead of Up/Down] when I specified the device identifier as 2.4.3% instead of 2.4.32-bitchie. What is wrong with the syntax?
Sorry for the delay in replying. I was bogged down with work. </chuckle>
After following the steps, I finally got this
Freya NOC Up 10.27.27.32 Switch/Router 92 2 2 0 0 0.8
I basically had to create a device type with the oid it has detected and the device identifier.
But what i meant was the mactrack script has detected an OID .1.3.6.1.4.1.8072.3.2.10 and when I do a snmpwalk my [linux box]/[the snmpd on the box] reports that the oid does'nt exist, which surprised me. Secondly after reporting the switch/router ports, the mactrack script did not report the ip-macs pairs in its output.
And I do see the snmpd holding the ip-mac pairs under a different oid. And I was wondering if it would be possible to make the script list them in its output.
Thirdly, possibly a mis-configuration on my part, but I noticed a minor quirk. My linux boxes have their device types as 2.4.31 or .32 with an extra tag, for example 2.4.32-bitchie. The script generated an error [Instead of Up/Down] when I specified the device identifier as 2.4.3% instead of 2.4.32-bitchie. What is wrong with the syntax?
Sorry for the delay in replying. I was bogged down with work. </chuckle>
MAC NOT USER
Hello,
i'am just trying mactrack, but if it scan the switchs (cisco) it discover the vlans, the ports, the ips, but no mac address !! instead it writes "NOT USER" in the database.
Does anyone have an good idea ?
Best Regards
Claude
i'am just trying mactrack, but if it scan the switchs (cisco) it discover the vlans, the ports, the ips, but no mac address !! instead it writes "NOT USER" in the database.
Does anyone have an good idea ?
Best Regards
Claude
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
-
- Posts: 24
- Joined: Wed May 10, 2006 2:46 pm
- Location: Memphis, TN USA
I had the same issue when I started with it. The answer is a long way back in this message board. After you have done the basic install for this plugin (placed under plugin folder and added it into your config.php file) you need to:Besides the standard Plugin architecture stuff, do I need to run any database updates etc? I've got to a point of creating a site, but I get a Save Failed message
And import the SQL code to your cacti db:
$ mysql -u root -p cacti < mactrack.sql
I got the above statement from an earlier posting but it fixed my error creating sites.
I can not answer your question about running it on windows since I am not but I do not see any reason why it would not work.
This issue may have been addressed already and I missed it scanning through the thread... but I always thought there were significant performance issues for dumping arp tables via SNMP? I remember Cisco putting a big no-no on doing that because it will peg the CPU on routers with large arp tables. Something about the way the ARP table is accessed and traversed via SNMP. Has anyone found this to be true, and if so, what effect has this plugin had on your routers?
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
Status Error
Hi
I have problems with status, the condition says error
when run by command line, output this
[root@xxxsvrh6 mactrack]# /usr/bin/php -q /var/www/cacti-0.8.6h/plugins/mactrack/mactrack_scanner.php -id=1 -d
DEBUG: HOST: 10.20.22.11 is alive, processing has begun.
DEBUG: WARNING: SITE: Impsat, IP: 10.20.22.11, TYPE: Cisco Internetwork Operating System Soft, Device Type Not Found in Device Type Table.
DEBUG: SQL: UPDATE mac_track_devices SET ports_total='0',device_type_id='0',scan_type = '1',vlans_total='0',ports_active='0',ports_trunk='0',macs_active='0',snmp_readstring='Chile#Read',snmp_sysName='BBN_41',snmp_sysLocation='ciscoworks',snmp_sysContact='',snmp_sysObjectID='.1.3.6.1.4.1.9.1.428',snmp_sysDescr='Cisco Internetwork Operating System Software IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(13)EA1c, RELEASE SOFTWARE (fc1) Copyright (c) 1986-2003 by cisco Systems, Inc. Compiled Tue 24-Jun-03 17:31 by yenanh',snmp_sysUptime='2528197177',snmp_status='4',last_runmessage='WARNING: Device Type Not Found in Device Type Table.',last_rundate='2006-06-23 17:01:37',last_runduration='0.0714' WHERE device_id ='1'
and if i run the poller
[root@xxxsvrh6 mactrack]# php /var/www/cacti/plugins/mactrack/poller_mactrack.php -f -d
Content-type: text/html
X-Powered-By: PHP/4.3.9
DEBUG: About to enter MacTrack poller processing
DEBUG: Into Processing. Checking to determine if it's time to run.
DEBUG: Checking if user changed the start time
DEBUG: Checking if user changed the maintenance time
DEBUG: The next run time has been determined to be at '2006-06-23 17:21:37'
DEBUG: The next database maintenance run time has been determined to be at '2006-06-24 0:00:00'
DEBUG: Either a scan has been forced, or it's time to check for macs
DEBUG: CMD: /usr/bin/php -q /var/www/cacti-0.8.6h/plugins/mactrack/mactrack_scanner.php -id=1 -d
DEBUG: CMD: /usr/bin/php -q /var/www/cacti-0.8.6h/plugins/mactrack/mactrack_scanner.php -id=2 -d
DEBUG: DNS Resolver process launched
DEBUG: A process cycle launch just completed.
DEBUG: Interum IP addresses to MAC addresses association pass complete.
DEBUG: Finished transferring scan results to main table.
DEBUG: Finished updating site table with collection statistics.
06/23/2006 05:16:21 PM - SYSTEM MACTRACK STATS: Time:8.5193 ConcurrentProcesses:7 Devices:2
The values on tables are still 0
Can you advance me?
I have problems with status, the condition says error
when run by command line, output this
[root@xxxsvrh6 mactrack]# /usr/bin/php -q /var/www/cacti-0.8.6h/plugins/mactrack/mactrack_scanner.php -id=1 -d
DEBUG: HOST: 10.20.22.11 is alive, processing has begun.
DEBUG: WARNING: SITE: Impsat, IP: 10.20.22.11, TYPE: Cisco Internetwork Operating System Soft, Device Type Not Found in Device Type Table.
DEBUG: SQL: UPDATE mac_track_devices SET ports_total='0',device_type_id='0',scan_type = '1',vlans_total='0',ports_active='0',ports_trunk='0',macs_active='0',snmp_readstring='Chile#Read',snmp_sysName='BBN_41',snmp_sysLocation='ciscoworks',snmp_sysContact='',snmp_sysObjectID='.1.3.6.1.4.1.9.1.428',snmp_sysDescr='Cisco Internetwork Operating System Software IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1(13)EA1c, RELEASE SOFTWARE (fc1) Copyright (c) 1986-2003 by cisco Systems, Inc. Compiled Tue 24-Jun-03 17:31 by yenanh',snmp_sysUptime='2528197177',snmp_status='4',last_runmessage='WARNING: Device Type Not Found in Device Type Table.',last_rundate='2006-06-23 17:01:37',last_runduration='0.0714' WHERE device_id ='1'
and if i run the poller
[root@xxxsvrh6 mactrack]# php /var/www/cacti/plugins/mactrack/poller_mactrack.php -f -d
Content-type: text/html
X-Powered-By: PHP/4.3.9
DEBUG: About to enter MacTrack poller processing
DEBUG: Into Processing. Checking to determine if it's time to run.
DEBUG: Checking if user changed the start time
DEBUG: Checking if user changed the maintenance time
DEBUG: The next run time has been determined to be at '2006-06-23 17:21:37'
DEBUG: The next database maintenance run time has been determined to be at '2006-06-24 0:00:00'
DEBUG: Either a scan has been forced, or it's time to check for macs
DEBUG: CMD: /usr/bin/php -q /var/www/cacti-0.8.6h/plugins/mactrack/mactrack_scanner.php -id=1 -d
DEBUG: CMD: /usr/bin/php -q /var/www/cacti-0.8.6h/plugins/mactrack/mactrack_scanner.php -id=2 -d
DEBUG: DNS Resolver process launched
DEBUG: A process cycle launch just completed.
DEBUG: Interum IP addresses to MAC addresses association pass complete.
DEBUG: Finished transferring scan results to main table.
DEBUG: Finished updating site table with collection statistics.
06/23/2006 05:16:21 PM - SYSTEM MACTRACK STATS: Time:8.5193 ConcurrentProcesses:7 Devices:2
The values on tables are still 0
Can you advance me?
Silly question - File??
Just a silly question but without wading through 41 pages of messages how does one find everything they need to try out this plugin?
-
- Posts: 20
- Joined: Tue Apr 25, 2006 6:08 am
Did you solve your problem Shakey ?? because I have the same issue. Nothing in "End Device IP Address" and "End Device DNS Hostname". I also ran the database_uprgade. But for me all the other collumns are OK.shakey_1 wrote:I may have overlooked this, but I did scan through all of the pages before posting this. I have gotten mactrack up and running after creating a device type to match my 2950's and it is collecting data for just about everything. The only things that it doesn't seem to be collecting are the end device IP address and the port name. I noticed earlier in the thread where it had been mentioned that there might be an issue with the poller_mactrack.php and the $ip_range["site_id"] field, but I checked mine and it appears fine (I have ran the database_upgrade.php file so that probably accounts for that)
So great plugin I love... but just a little issue. Someone have an idea ?
thanks
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
Jga: I'd say this is your starting point "Device Type Not Found in Device Type Table"
Kenth: basics are: install cacti, install plugin architecture, install this plugin (run with .sql updates too), then provision. First check the pre-provisioned device types are ones you have, then add the sites and devices.
Kenth: basics are: install cacti, install plugin architecture, install this plugin (run with .sql updates too), then provision. First check the pre-provisioned device types are ones you have, then add the sites and devices.
Who is online
Users browsing this forum: No registered users and 0 guests