Mactrack Layer3 info missing
Moderators: Developers, Moderators
Mactrack Layer3 info missing
I have a new installation of mactrack 2.6.1 and have setup one site for testing/evaluation purposes. I currently have 1 site and 20 hosts in the mactrack database. (3 routers and 17 layer2 switches.) All of the switches appear to have been successfully polled/discovered, but I'm having trouble with the routers.
I have muddled through defining device types, and getting them matched to hosts successfully, however, I'm not getting ANY IP information from my routers ARP tables populated into the database mac_track_ips table for some reason. The consequence is that mactrack does not contain MAC/IP mappings nor is there any other layer 3 information. (IP Ranges, IP Addresses, etc.)
I've done everything in the tracking utilities console: database maintenance, refresh scanning functions, remove all results. I have also tried deleting and re-adding devices.
Please advise if there is something simple I may be overlooking? I've searched for mactrack documentation, but there does not seem to be much available. I have a fair bit of cacti game, but mactrack is a whole new animal for me.
Thanks,
B. J.
I have muddled through defining device types, and getting them matched to hosts successfully, however, I'm not getting ANY IP information from my routers ARP tables populated into the database mac_track_ips table for some reason. The consequence is that mactrack does not contain MAC/IP mappings nor is there any other layer 3 information. (IP Ranges, IP Addresses, etc.)
I've done everything in the tracking utilities console: database maintenance, refresh scanning functions, remove all results. I have also tried deleting and re-adding devices.
Please advise if there is something simple I may be overlooking? I've searched for mactrack documentation, but there does not seem to be much available. I have a fair bit of cacti game, but mactrack is a whole new animal for me.
Thanks,
B. J.
- Attachments
-
- SNAG-005.jpg (549.58 KiB) Viewed 6578 times
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Likely they are being detected as layer2 only. Double check the device types. Also, run the macktrack_scanner.php manually to verify.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Hello Witness, thanks for the tip.
Looks like the device types are matching, as I would expect. However, when running mactrack_scanner.php manually for a given router, I get the following error message.
BJH
Looks like the device types are matching, as I would expect. However, when running mactrack_scanner.php manually for a given router, I get the following error message.
I'm not a software developer, so I'm having a hard time stepping through the PHP...bhoskins@XXX[6] php -q mactrack_scanner.php -id=25 -d
DEBUG: HOST: 10.160.1.2 is alive, processing has begun.
DEBUG: Scanning function is 'get_standard_arp_table'
PHP Warning: Parameter 2 to get_standard_arp_table() expected to be a reference, value given in /var/www/cacti/plugins/mactrack/mactrack_scanner.php on line 192
Here is what's in my Cacti database for the device type ID and the host itself. Looks correct to me, no?181 /* for routers and switch/routers we need to push the ARP table to mac_track_ip table */
182 if (($device["scan_type"] == DEVICE_SWITCH_ROUTER) ||
183 ($device["scan_type"] == DEVICE_ROUTER)) {
184
185 /* verify that the scanning function is not null and call it as applicable */
186 if (isset($device_type["ip_scanning_function"])) {
187 if (strlen($device_type["ip_scanning_function"]) > 0) {
188 if (function_exists($device_type["ip_scanning_function"])) {
189 mactrack_debug("Scanning function is '" .$device_type["ip_scanning_function"] . "'");
190 $device["device_type_id"] = $device_type["device_type_id"];
191 $device["scan_type"] = $device_type["device_type"];
192 call_user_func_array($device_type["ip_scanning_function"], array($site, $device));
193 }else{
194 mactrack_debug("WARNING: SITE: " . $site . ", IP: " . $device["hostname"] . ", TYPE: " . substr($device["snmp_sysDescr"],0,40) . ", ERROR: IP Address Scanning Function Does NotExist.");
195 $device["last_runmessage"] = "WARNING: Scanning Function Does Not Exist.";
196 $device["snmp_status"] = HOST_ERROR;
197 }
198 }else{
199 mactrack_debug("WARNING: SITE: " . $site . ", IP: " . $device["hostname"] . ", TYPE: " . substr($device["snmp_sysDescr"],0,40) . ", ERROR: IP Scanning Function in Device Type Table Is Null.");
200 $device["last_runmessage"] = "WARNING: Scanning Function in Device Type Table Is Null.";
201 $device["snmp_status"] = HOST_ERROR;
202 }
203 }else{
204 mactrack_debug("WARNING: SITE: " . $site . ", IP: " . $device["hostname"] . ", TYPE: " . substr($device["snmp_sysDescr"],0,40) . ", ERROR: Device Type Not Found in Device Type Table.");
205 $device["last_runmessage"] = "WARNING: Device Type Not Found in Device Type Table.";
206 $device["snmp_status"] = HOST_ERROR;
207 }
208 }
Thanks,mysql> SELECT * FROM mac_track_device_types WHERE device_type_id=4 ;
+----------------+------------------------------------+--------+-------------+----------------+----------------------+-------------------------+------------------------+----------------------------+---------+----------+
| device_type_id | description | vendor | device_type | sysDescr_match | sysObjectID_match | scanning_function | ip_scanning_function | serial_number_oid | lowPort | highPort |
+----------------+------------------------------------+--------+-------------+----------------+----------------------+-------------------------+------------------------+----------------------------+---------+----------+
| 4 | Catalyst 6500 with MSFC2 - LAYER 3 | Cisco | 3 | C6MSFC2-JSV-M | .1.3.6.1.4.1.9.1.301 | Not Applicable - Router | get_standard_arp_table | .1.3.6.1.2.1.47.1.1.1.1.11 | 0 | 0 |
+----------------+------------------------------------+--------+-------------+----------------+----------------------+-------------------------+------------------------+----------------------------+---------+----------+
1 row in set (0.00 sec)
mysql> SELECT * FROM mac_track_devices WHERE device_id=25;
+---------+-----------+---------+-------------+----------------+------------+-------+----------+-------------+-----------+-------------+-------------+--------------+-------------+-------------+-----------+-----------+-----------+---------------+------------------+--------------+-----------------+------------------+--------------+-----------+--------------+--------------+----------------------+-----------------------------+-----------------+----------------------+------------------------------------------------------------------------------------------------------+----------------+-------------+---------------+---------------+--------------------+----------------------+--------------------+--------------+----------+-----------------+---------------------+------------------+
| site_id | device_id | host_id | device_name | device_type_id | hostname | notes | disabled | ignorePorts | ips_total | vlans_total | ports_total | ports_active | ports_trunk | macs_active | scan_type | term_type | user_name | user_password | private_key_path | snmp_options | snmp_readstring | snmp_readstrings | snmp_version | snmp_port | snmp_timeout | snmp_retries | snmp_sysName | snmp_sysLocation | snmp_sysContact | snmp_sysObjectID | snmp_sysDescr | snmp_sysUptime | snmp_status | snmp_username | snmp_password | snmp_auth_protocol | snmp_priv_passphrase | snmp_priv_protocol | snmp_context | max_oids | last_runmessage | last_rundate | last_runduration |
+---------+-----------+---------+-------------+----------------+------------+-------+----------+-------------+-----------+-------------+-------------+--------------+-------------+-------------+-----------+-----------+-----------+---------------+------------------+--------------+-----------------+------------------+--------------+-----------+--------------+--------------+----------------------+-----------------------------+-----------------+----------------------+------------------------------------------------------------------------------------------------------+----------------+-------------+---------------+---------------+--------------------+----------------------+--------------------+--------------+----------+-----------------+---------------------+------------------+
| 2 | 25 | 296 | mmprtr2 | 4 | 10.160.1.2 | | | | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | SANATIZED | SANATIZED | | 0 | SANATIZED | NULL | 2 | 161 | 500 | 3 | MMPRTR2.net.endo.san | Andover - MMP - Data Center | Danny Gullick | .1.3.6.1.4.1.9.1.301 | Cisco Internetwork Operating System Software IOS (tm) MSFC2 Software (C6MSFC2-JSV-M), Version 12.1 | 4276031806 | 3 | | | MD5 | | DES | | 5 | | 2010-08-16 10:51:44 | 0.11540 |
+---------+-----------+---------+-------------+----------------+------------+-------+----------+-------------+-----------+-------------+-------------+--------------+-------------+-------------+-----------+-----------+-----------+---------------+------------------+--------------+-----------------+------------------+--------------+-----------+--------------+--------------+----------------------+-----------------------------+-----------------+----------------------+------------------------------------------------------------------------------------------------------+----------------+-------------+---------------+---------------+--------------------+----------------------+--------------------+--------------+----------+-----------------+---------------------+------------------+
1 row in set (0.00 sec)
BJH
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I would not worry about that warning message, it's just a warning. On the other hand, I would like to see your Cacti Log when this is happening. Also, I don't see any output related to the Arp table being scanned.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Thanks Witness,
A quick trip to Google with that error message yielded this post from May.
http://forums.cacti.net/about37615.html
It fixed me right up.
There was never any further comment. I would be curious to know if it's going to break anything else later.
Thanks again,
BJH
A quick trip to Google with that error message yielded this post from May.
http://forums.cacti.net/about37615.html
It fixed me right up.
The Witness - PostPosted: Fri May 14, 2010 6:57 am Post subject: Reply with quote
That's really odd. Have to see what is going wrong. There should be nothing wrong with that function declaration unless the $device is uninitialized.
What versions of PHP are you all running?
Code: Select all
[1] php -v
PHP 5.3.2-1ubuntu4.2 with Suhosin-Patch (cli) (built: May 13 2010 20:01:00)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
Thanks again,
BJH
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Wish these guys would open bugs for this... Can you do that?
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
2.9-1 released fixes this now.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 0 guests