Polling does not populate interfaces/mac's
Moderators: Developers, Moderators
-
- Posts: 14
- Joined: Fri Apr 16, 2010 11:19 am
Polling does not populate interfaces/mac's
I read through as many posts that seemed similar to my issue but didn't seem to find anything.
We have a Cisco environment and Cacti pulls snmp info appropriately, and when a switch is added to mactrack under a site it shows the snmp header info and the snmp walk objectid for that particular switch but it does not pull any interfaces or mac's. The device will show an 'unknown' for the status and the sites will show 1 'device error'
I've ran several the php commands i've seen in posts, when i do the
'php -q poller_mactrack.php -f -d -sid=1' i receive the following:
[root@fedora1 mactrack]# php -q poller_mactrack.php -f -d -sid=1
DEBUG: About to enter MacTrack Site Scan Processing
DEBUG: CMD: /usr/bin/php -q /var/www/html/cacti/plugins/mactrack/mactrack_scanner.php -id=1 -d
04/16/2010 12:51:06 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/plugins/mactrack/mactrack_scanner.php -id=1 -d]
DEBUG: A process cycle launch just completed.
DEBUG: Interum IP addresses to MAC addresses association pass complete.
DEBUG: MAC addresses to Vendor MACS association pass complete.
DEBUG: MAC VLAN's in VLAN Table Updated.
DEBUG: Finished transferring scan results to main table.
DEBUG: Finished updating site table with collection statistics.
As for 'php -q mactrack_scanner.php -d -id=1 ' i get the following:
[root@fedora1 mactrack]# php -q mactrack_scanner.php -d -id=1 DEBUG: ERROR: No device types have been found.
I'm not sure if there is something i'm overlooking for setting up devices or sites?
Any help is appreciate, thank you!
We have a Cisco environment and Cacti pulls snmp info appropriately, and when a switch is added to mactrack under a site it shows the snmp header info and the snmp walk objectid for that particular switch but it does not pull any interfaces or mac's. The device will show an 'unknown' for the status and the sites will show 1 'device error'
I've ran several the php commands i've seen in posts, when i do the
'php -q poller_mactrack.php -f -d -sid=1' i receive the following:
[root@fedora1 mactrack]# php -q poller_mactrack.php -f -d -sid=1
DEBUG: About to enter MacTrack Site Scan Processing
DEBUG: CMD: /usr/bin/php -q /var/www/html/cacti/plugins/mactrack/mactrack_scanner.php -id=1 -d
04/16/2010 12:51:06 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti/plugins/mactrack/mactrack_scanner.php -id=1 -d]
DEBUG: A process cycle launch just completed.
DEBUG: Interum IP addresses to MAC addresses association pass complete.
DEBUG: MAC addresses to Vendor MACS association pass complete.
DEBUG: MAC VLAN's in VLAN Table Updated.
DEBUG: Finished transferring scan results to main table.
DEBUG: Finished updating site table with collection statistics.
As for 'php -q mactrack_scanner.php -d -id=1 ' i get the following:
[root@fedora1 mactrack]# php -q mactrack_scanner.php -d -id=1 DEBUG: ERROR: No device types have been found.
I'm not sure if there is something i'm overlooking for setting up devices or sites?
Any help is appreciate, thank you!
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Goto Device Types and Press the "Rescan" button. From there you need to find the proper scanning function for your device. With regard to the SysDecription match, you should make that as short as possible while remaining unique. So, edit the device types once they are scanned into the system.
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?
-
- Posts: 14
- Joined: Fri Apr 16, 2010 11:19 am
-
- Posts: 14
- Joined: Fri Apr 16, 2010 11:19 am
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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?
-
- Posts: 14
- Joined: Fri Apr 16, 2010 11:19 am
Ok i went to check for that table and it actually had never been created, so grabbed from ur .sql and put it in, now that it was in it still was not generating and gave a value of 0 for the select count.
Checking the cacti logs i get the following:
04/17/2010 11:53:42 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1054', SQL:"UPDATE mac_track_interfaces ...... which it does for each device id, followed by afew lines of what looks to be the interfaces info.
Any ideas?
Checking the cacti logs i get the following:
04/17/2010 11:53:42 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1054', SQL:"UPDATE mac_track_interfaces ...... which it does for each device id, followed by afew lines of what looks to be the interfaces info.
Any ideas?
-
- Posts: 14
- Joined: Fri Apr 16, 2010 11:19 am
just found a post here http://forums.cacti.net/about36142.html referring to this same issue, reading through and seeing what i can get now.
-
- Posts: 14
- Joined: Fri Apr 16, 2010 11:19 am
So the install/enable through pia wasn't creating the mac_track_interfaces table...
so checked the mactrack.sql and this didn't contain all the necessary columns...
so checked setup.php which contained all the appropriate columns, but is missing 2 commas when creating a new table after ifMauAutoNegAdminStatus and ifMauAutoNegRemoteSignaling:
`ifDuplex` int(10) unsigned NOT NULL default '0',
`ifMauAutoNegAdminStatus` integer UNSIGNED NOT NULL default '0'
`ifMauAutoNegRemoteSignaling` integer UNSIGNED NOT NULL default '0'
was able to just steal the needed columns from there and create, now my interfaces are showing.
Next thing to fix is my damn 4x stack 3750's that doesn't wanna play nice, thanks for pointing me in the right direction sir!
so checked the mactrack.sql and this didn't contain all the necessary columns...
so checked setup.php which contained all the appropriate columns, but is missing 2 commas when creating a new table after ifMauAutoNegAdminStatus and ifMauAutoNegRemoteSignaling:
`ifDuplex` int(10) unsigned NOT NULL default '0',
`ifMauAutoNegAdminStatus` integer UNSIGNED NOT NULL default '0'
`ifMauAutoNegRemoteSignaling` integer UNSIGNED NOT NULL default '0'
was able to just steal the needed columns from there and create, now my interfaces are showing.
Next thing to fix is my damn 4x stack 3750's that doesn't wanna play nice, thanks for pointing me in the right direction sir!
Who is online
Users browsing this forum: No registered users and 0 guests