End Device Tracking Add-On for Cacti

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
Allen K
Posts: 25
Joined: Sat Oct 15, 2005 9:34 pm

Post by Allen K »

TheWitness,
I did PM you with a question, happy to help with this project
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

TheWitness wrote:Looks like you might be running in PHP Safe mode, or the force option is being improperly passed to exec background, which I can't see happening.

TheWitness
I checked the php.ini file (both of them) and safe mode is turned off.

Any ideas on how to check the other issue? Remember I'm a noob - and more than happy to try this stuff out a report back what I find, just need some hand holding.

I am running this on an "unusual" platform - which may or may not be of some benefit to you all. OpenSuSE 10 on an IBM pSeries 710.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I would suspect a PHP build issue. Do you have any cabletron Sehi's? If you don't have Cacti 0.8.6h (currently in beta) installed, you may have issues with reaching snmbbulkwalk. It is saved under Settings->Paths.

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?
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

TheWitness wrote:I would suspect a PHP build issue. Do you have any cabletron Sehi's?
Nothing from cabletron here.
TheWitness wrote:If you don't have Cacti 0.8.6h (currently in beta) installed, you may have issues with reaching snmbbulkwalk. It is saved under Settings->Paths.
I added the path to snmpbulkwalk and that obviously helped. Still, I get:
/usr/share/cacti/include # php5 ../plugins/mac_track/poller_mactrack.php -f
Timeout: No Response from
Timeout: No Response from
Timeout: No Response from
Timeout: No Response from
Timeout: No Response from
Timeout: No Response from
Timeout: No Response from
PHP Notice: Undefined index: 2 in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 182
PHP Notice: Undefined index: in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 183
PHP Notice: Undefined index: in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 184
PHP Notice: Undefined index: 2 in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 182
PHP Notice: Undefined index: in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 183
PHP Notice: Undefined index: in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 184
PHP Notice: Undefined index: 2 in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 182
PHP Notice: Undefined index: in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 183
PHP Notice: Undefined index: in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 184
Content-type: text/html
X-Powered-By: PHP/5.0.4

12/30/2005 10:18:21 AM - SYSTEM MACTRACK COLLECTION STATS: Time:28.3436 ConcurrentProcesses:8 Devices:4

Getting closer, I think!
Last edited by knobdy on Fri Dec 30, 2005 12:27 pm, edited 1 time in total.
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

[UPDATE]

Going to the MacTrack tab in Cacti I see that I DO have data now!

It's only for the one switch, but its something. The switch that showed up is the one with the MSFC installed, perhaps that has something to do with it (though it only says the others timed out)?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Try SNMPv1 instead of SNMPv2 and see if that helps. I may have to add a device field for the max bulkwalk size. That seems to be an issue with some devices. I currently have it set to 50. If you look at the mactrack_walk function, you will see the following "-Cr50" if you change it to something like "-Cr10", do the timeouts go away?

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?
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

TheWitness wrote:Try SNMPv1 instead of SNMPv2 and see if that helps.
I'll try the other as well, just to see, but this is appears to have done better thus far (still running). Two bugs on g:
1. When updating an already defined device, there is still the "Create" button, clicking it does update the device but you get a save failed error (known bug I believe)

2. Choosing All-All-All gives me one page for the one switch thus far. All-All-Most Recent gives me the entire switch (5 pages thus far).

Okay, it finished while I was typing. I have all of the devices now using v1.; Want me to go back to v2 and change the rate/option you mentioned and try again?

I got every blade back on all but one switch - which only returned one blade....getting closer still...
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yes please..
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?
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

[quote="TheWitness"]If you look at the mactrack_walk function, you will see the following "-Cr50" if you change it to something like "-Cr10", do the timeouts go away?[/quote

I changed this in /mac_track/lib/mactrack_functions.php and changed the devices back to v2.

It changed the response to:
/usr/share/cacti/plugins/mac_track # php5 ./poller_mactrack.php -f Timeout: No Response from kc3s1
Timeout: No Response from kc3s1
Timeout: No Response from kc3s1
Timeout: No Response from kc3s1
PHP Notice: Undefined index: 2 in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 182
PHP Notice: Undefined index: in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 183
PHP Notice: Undefined index: in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 184
PHP Notice: Undefined index: 2 in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 182
PHP Notice: Undefined index: in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 183
PHP Notice: Undefined index: in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 184
PHP Notice: Undefined index: 2 in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 182
PHP Notice: Undefined index: in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 183
PHP Notice: Undefined index: in /usr/share/cacti/plugins/mac_track/lib/mactrack_cisco.php on line 184
Timeout: No Response from kc1s1
Timeout: No Response from kc1s1
Timeout: No Response from kc1s1
Content-type: text/html
X-Powered-By: PHP/5.0.4

12/30/2005 11:25:18 AM - SYSTEM MACTRACK COLLECTION STATS: Time:44.3649 ConcurrentProcesses:8 Devices:4

The actual option, btw, that I found was -Ccr as opposed to -Cr.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Hmm, you might keep trying to work that out, but it looks like a buggy snmp agent to me. V1 is slower, but likely your fix.

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?
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

Okay, how about this: I've now added 7 devices. The devices page only shows 5 of them (the first five added) but the poller checks 7 and the page header says it's displaying 1-7 of 7.[/img]
Attachments
cacti capture.JPG
cacti capture.JPG (144.37 KiB) Viewed 5367 times
mories
Posts: 8
Joined: Fri Dec 30, 2005 1:45 pm

Cisco 3500XL switches

Post by mories »

Hello All,

I really like this plugin, it's a really usefull addon. This plugin is working for me at the 3550 and 3750 cisco switches. But on a 3524 I always get 0 active ports.

I have added the 3500XL from the sysDecr to the mactrack_scanner.php.
Both SNMP v1 and v2 have been tried.

Any suggestions to get this running on the 3524 ?

Below you wil find a few lines from a php '/var/www/html/cacti/plugins/mac_track/mactrack_scanner.php -d -id=12' command to a 3524 switch.

---

12/30/2005 10:04:50 PM - POLLER: Poller[0] HOST: 10.10.150.70 is alive, processing has begun.
DEBUG: VLAN data collected. There are 15 VLANS.
DEBUG: ifIndex data collection complete
DEBUG: ifTypes data collection complete.
DEBUG: ifNames data collection complete.
DEBUG: ifAlias data collection complete.
DEBUG: ifInterfaces assembly complete.
DEBUG: VLAN Analysis for VLAN: 1 is complete. ACTIVE PORTS: 24
DEBUG: VLAN Analysis for VLAN: 2 is complete. ACTIVE PORTS: 24
...
DEBUG: VLAN Analysis for VLAN: 101 is complete. ACTIVE PORTS: 24
DEBUG: VLAN Analysis for VLAN: 102 is complete. ACTIVE PORTS: 24
DEBUG: Processing has begun for VLAN: 1
DEBUG: Port number information collected.
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 1, VLAN_NAME: default, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 2
DEBUG: Port number information collected.
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 2, VLAN_NAME: yyy, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 3
DEBUG: Port number information collected.
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.
DEBUG: VLAN_ID: 3, VLAN_NAME: xxx, ACTIVE PORTS: 0
DEBUG: Processing has begun for VLAN: 12
DEBUG: Port number information collected.
DEBUG: No user ports on this network.
DEBUG: Bridge port information about to be collected.

.....

DEBUG: WARNING Active VLAN Error.
....12 deleted
DEBUG: WARNING Active VLAN Error.
INFO: HOST: 10.10.150.70, TYPE: Cisco Internetwork Operating System Soft, TOTAL PORTS: 27, ACTIVE PORTS: 0DEBUG: atifIndexes data collection complete
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

TheWitness wrote:Hmm, you might keep trying to work that out, but it looks like a buggy snmp agent to me. V1 is slower, but likely your fix.
Still using v2 I've change the -Ccr option to 1 and nothing times out. What is that option, what does it do?

However, on the one switch, a 4006, its still only collecting data for one blade? On the other 4006 it collects data for all blades.

{Addition}

I had to go into phpMyAdmin and add the site for the two switches not showing up on the devices page. Once that was one, they showed up.

I also had to use it to add the vendor name to a device type I had created - when I clicked save it would simply reset the field.

{question}
What does the scanning function do on a device type? I assume it just calls different commands for different types of devices? Is it possible to device a way for mactrack to querry wireless devices (we have cisco aps here, which do run IOS)?

Is there a way to clear out all of the current data that has been collected?
Dwayne_Dibbley
Cacti User
Posts: 52
Joined: Sun Sep 18, 2005 3:38 pm

Post by Dwayne_Dibbley »

All working now. Is End device IP Address working ?

Thanks
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I am very close. Once 0.8.6h is released, I will provide a "new" product.

Larry
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests