End Device Tracking Add-On for Cacti
Moderators: Developers, Moderators
Worked excellent - all except DNS resolution, that's still not working. I noticed something about DNS reverse lookups in the change log, but I can't now recall what it was about. Thought I'd try disabling and renabling it first and maybe watch the process (EXCELLENT FEATURE ADD!!!) and see if it'll show me what is going on.
something is ???? ERROR: SQL Exec Failed
Hi
All seems to be good BUT when I look at the log file I can see some errors and failed (ERROR: SQL Exec Failed )?
I give you the LOG files one with debug one normal.
I give you also the 2 output-files from the commands:
"php poller_mactrack.php -d
-f -sid=3 >problem20060127MAC-Site3.txt"
"php poller_mactrack.php -d
-f -sid=3 >problem20060127MAC-Site3-DEBUG.txt"
attachements removed because "Post limitation" (the problem has been solved with new release)
All seems to be good BUT when I look at the log file I can see some errors and failed (ERROR: SQL Exec Failed )?
I give you the LOG files one with debug one normal.
I give you also the 2 output-files from the commands:
"php poller_mactrack.php -d
-f -sid=3 >problem20060127MAC-Site3.txt"
"php poller_mactrack.php -d
-f -sid=3 >problem20060127MAC-Site3-DEBUG.txt"
attachements removed because "Post limitation" (the problem has been solved with new release)
Last edited by pepj on Mon Dec 11, 2006 5:04 pm, edited 1 time in total.
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
Well i plugged in the new version and tried to run the database_upgrade.php
and it resulted in this:
now i can't find anything wrong in the file so i'm stumped,
System:
FC4
MySQL 4.1
PHP 5.0.4
HTTPD-2.0.54
ideas anyone?
and it resulted in this:
Code: Select all
[root@mail mactrack]# php database_upgrade.php
00000000000000100000000000000000000
Updating Device Types in Devices Table. Please be patient.
PHP Warning: Invalid argument supplied for foreach() in /var/www/html/cacti/plugins/mactrack/database_upgrade.php on line 70
Warning: Invalid argument supplied for foreach() in /var/www/html/cacti/plugins/mactrack/database_upgrade.php on line 70
System:
FC4
MySQL 4.1
PHP 5.0.4
HTTPD-2.0.54
ideas anyone?
-
- Posts: 26
- Joined: Thu Jan 19, 2006 10:07 pm
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
No. Not today anyway
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: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
tommyj,
I am going to write a device_checker script to provide some information for the developer in creating device specific scanning functions.
For now, the only procurve that I was able to add was the "HP J4121A ProCurve". Any Procure device types that are different from it will require a different scanning function, or of course, the generic one.
TheWitness
I am going to write a device_checker script to provide some information for the developer in creating device specific scanning functions.
For now, the only procurve that I was able to add was the "HP J4121A ProCurve". Any Procure device types that are different from it will require a different scanning function, or of course, the generic one.
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?
-
- Cacti User
- Posts: 52
- Joined: Sun Sep 18, 2005 3:38 pm
Running latest plugin version. Have run Database_upgrade but getting these error in log now
Poller ERROR SQL Exec failed "Replace INTO 'mac_track_ip_ranges' (ip_range,site_id,ips_current,ips_currentdate)VALUES(x.x.x.x,1,2,2006-01-30 12:40:10)
Poller ERROR SQL Exec failes "UPDATE 'mac_track_ip_ranges' SET ips_max=ips_current,ips_max_date=ips_current_date WERE ips_current > ips_max"
Poller ERROR SQL Exec failed "Replace INTO 'mac_track_ip_ranges' (ip_range,site_id,ips_current,ips_currentdate)VALUES(x.x.x.x,1,2,2006-01-30 12:40:10)
Poller ERROR SQL Exec failes "UPDATE 'mac_track_ip_ranges' SET ips_max=ips_current,ips_max_date=ips_current_date WERE ips_current > ips_max"
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Dwayne_Dibbley,
I have updated that code. I will post to SVN tonight.
Larry
I have updated that code. I will post to SVN tonight.
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?
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?
-
- Cacti User
- Posts: 367
- Joined: Tue Apr 05, 2005 9:52 am
- Location: Munich, Germany
Question on Status for new devices
Guys
I've just added the MacTrack plugin to check it out. I've only added 1 device, one of our core routers. Cisco 6509 >> here is the output when i run >>
php -q mactrack_scanner.php -d -id=3 |more
*************
DEBUG: HOST: 172.20.64.33 is alive, processing has begun.
DEBUG: WARNING: SITE: ****, IP: 172.20.64.33, TYPE: Cisco Internetwork Operating System Soft, Device Type Not Found in Device Type Table.
and then on to the bottom............
DEBUG: HOST: 172.20.64.33, IP address information collection complete
DEBUG: SQL: UPDATE mac_track_devices SET ports_total='0',device_type_id='0',scan_type = '2',vlans_total='0',ports_active='0',ports_trunk='0',macs_active='0',s
nmp_readstring='********',snmp_sysName='*****',snmp_sysLocation='',snmp_sysContact='',snmp_sysObjectID='.1.3.6.1.4.1.9.1.283',snmp_sysDescr='Cisco
Internetwork Operating System Software IOS (tm) s72033_rp Software (s72033_rp-IPSERVICESK9-M), Version 12.2(18)SXE1, RELEASE SOFTWARE (fc2) Technical Support:
http://www.cisco.com/techsupport Copyright (c) 1986-2005 by cisco Systems, Inc. Compi',snmp_sysUptime='558815827',snmp_status='4',last_runmessage='WARNING: D
evice Type Not Found in Device Type Table.',last_rundate='2006-01-31 16:06:08',last_runduration='144.3401' WHERE device_id ='3'
cacti@netstat:/home/www/htdocs/cacti/plugins/mactrack$
I notice a s72033_rp in part of the description?? Is that relavant to this working properly??
Here is an snmpwalk of the same device...........
SNMPv2-MIB::sysDescr.0 = STRING: Cisco Internetwork Operating System Software
IOS (tm) s72033_rp Software (s72033_rp-IPSERVICESK9-M), Version 12.2(18)SXE1, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compi
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.283
SNMPv2-MIB::sysUpTime.0 = Timeticks: (558845883) 64 days, 16:20:58.83
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: R-MDFA.sgmc.org
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 78
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
THanks guys.........any help is appreciated...
CACTI is NICE!!!!!!
Very Helpful.
I've just added the MacTrack plugin to check it out. I've only added 1 device, one of our core routers. Cisco 6509 >> here is the output when i run >>
php -q mactrack_scanner.php -d -id=3 |more
*************
DEBUG: HOST: 172.20.64.33 is alive, processing has begun.
DEBUG: WARNING: SITE: ****, IP: 172.20.64.33, TYPE: Cisco Internetwork Operating System Soft, Device Type Not Found in Device Type Table.
and then on to the bottom............
DEBUG: HOST: 172.20.64.33, IP address information collection complete
DEBUG: SQL: UPDATE mac_track_devices SET ports_total='0',device_type_id='0',scan_type = '2',vlans_total='0',ports_active='0',ports_trunk='0',macs_active='0',s
nmp_readstring='********',snmp_sysName='*****',snmp_sysLocation='',snmp_sysContact='',snmp_sysObjectID='.1.3.6.1.4.1.9.1.283',snmp_sysDescr='Cisco
Internetwork Operating System Software IOS (tm) s72033_rp Software (s72033_rp-IPSERVICESK9-M), Version 12.2(18)SXE1, RELEASE SOFTWARE (fc2) Technical Support:
http://www.cisco.com/techsupport Copyright (c) 1986-2005 by cisco Systems, Inc. Compi',snmp_sysUptime='558815827',snmp_status='4',last_runmessage='WARNING: D
evice Type Not Found in Device Type Table.',last_rundate='2006-01-31 16:06:08',last_runduration='144.3401' WHERE device_id ='3'
cacti@netstat:/home/www/htdocs/cacti/plugins/mactrack$
I notice a s72033_rp in part of the description?? Is that relavant to this working properly??
Here is an snmpwalk of the same device...........
SNMPv2-MIB::sysDescr.0 = STRING: Cisco Internetwork Operating System Software
IOS (tm) s72033_rp Software (s72033_rp-IPSERVICESK9-M), Version 12.2(18)SXE1, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compi
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.283
SNMPv2-MIB::sysUpTime.0 = Timeticks: (558845883) 64 days, 16:20:58.83
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: R-MDFA.sgmc.org
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 78
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
THanks guys.........any help is appreciated...
CACTI is NICE!!!!!!
Very Helpful.
CMDPHP: Poller[0] ERROR: SQL Exec Failed
hi all,
i implemented the mactrack plugin successfully.
adding of new devices and creating a new site was ok but when mactrack tries to poll i only get failures related to SQL Exec....
see: CMDPHP: Poller[0] ERROR: SQL Exec Failed ....
i updated the new plugin version with the new files from SVN,
imported the mactrack.sql, proceeded the database_upgrade file without any failures.
Where´s my mistake??
i´m running cacti on an w2k3 machine with mysql v.5.0.18-nt
i implemented the mactrack plugin successfully.
adding of new devices and creating a new site was ok but when mactrack tries to poll i only get failures related to SQL Exec....
see: CMDPHP: Poller[0] ERROR: SQL Exec Failed ....
i updated the new plugin version with the new files from SVN,
imported the mactrack.sql, proceeded the database_upgrade file without any failures.
Where´s my mistake??
i´m running cacti on an w2k3 machine with mysql v.5.0.18-nt
-
- Cacti User
- Posts: 52
- Joined: Sun Sep 18, 2005 3:38 pm
last nights plugin build still having ip_ranges errors:
Code: Select all
from cacti log
02/01/2006 10:41:59 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "UPDATE `mac_track_ip_ranges` SET ips_max=ips_current, ips_max_date=ips_current_date WHERE ips_current > ips_max"
02/01/2006 10:41:59 AM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "REPLACE INTO `mac_track_ip_ranges` (ip_range, site_id, ips_current, ips_current_date) VALUES (192.168.50,4,9,2006-02-01 10:35:09)"
from mysql
Error
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem
ERROR: Invalid Identifer @ 95
STR: 192.168.
SQL: REPLACE INTO `mac_track_ip_ranges` (ip_range, site_id, ips_current, ips_current_date) VALUES (192.168.50,4,9,2006-02-01 10:35:09)
SQL query:
REPLACE INTO `mac_track_ip_ranges` (ip_range, site_id, ips_current, ips_current_date) VALUES (192.168.50,4,9,2006-02-01 10:35:09)
MySQL said:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.50,4,9,2006-02-01 10:35:09)' at line 1
Who is online
Users browsing this forum: No registered users and 0 guests