Error adding SNMP options

Support questions about the MAC Track plugin

Moderators: Developers, Moderators

Post Reply
digitlman
Posts: 23
Joined: Tue Dec 01, 2009 4:08 pm

Error adding SNMP options

Post by digitlman »

8.7g with mactrack 2.9 fresh install. Followed directions posted: http://forums.cacti.net/viewtopic.php?t=34718

Adding SNMP options I get this error:

09/16/2010 08:57:08 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select max(sequence)+1 as seq from mac_track_snmp_items where snmp_id="
09/16/2010 08:57:08 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"SELECT * FROM mac_track_snmp WHERE id="
09/16/2010 08:57:05 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select max(sequence)+1 as seq from mac_track_snmp_items where snmp_id="
09/16/2010 08:57:05 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"SELECT * FROM mac_track_snmp WHERE id="

Deleted all devices and tried again with the same result.

Also getting:
MacTrack OUI Database Import Results

Getting OUI Database from IEEE
OUI Database Download from IEEE Complete

There were '0' Entries Added/Updated in the database.
There were '0' Records Removed from the database.

When trying to update IEEE DB.
shadowmanr6
Posts: 14
Joined: Fri Apr 16, 2010 11:19 am

Post by shadowmanr6 »

in regards to your second question, the IEEE oui website has been down for the past few days.
digitlman
Posts: 23
Joined: Tue Dec 01, 2009 4:08 pm

Post by digitlman »

Well, that's one thing down!
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

shadowmanr6 wrote:in regards to your second question, the IEEE oui website has been down for the past few days.
Really. Hmm. I guess that's a problem. If you find out if the url changed, post that information here.

Not sure about that SNMP error. Contact Gandalf. He did that integration. Likely you have used a settings to provide a 'strong' integration between Cacti and MacTrack, and have identified a 'bug' in how it behaves.

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?
digitlman
Posts: 23
Joined: Tue Dec 01, 2009 4:08 pm

Post by digitlman »

http://standards.ieee.org/regauth/oui/oui.txt

That appears to be the "database" as it were.
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Seems to be working...
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?
digitlman
Posts: 23
Joined: Tue Dec 01, 2009 4:08 pm

Post by digitlman »

Yep, the IEEE db is back up.
ceyounger
Posts: 44
Joined: Fri Feb 10, 2006 2:59 pm
Location: Orange County, CA
Contact:

Re: Error adding SNMP options

Post by ceyounger »

digitlman wrote:8.7g with mactrack 2.9 fresh install. Followed directions posted: http://forums.cacti.net/viewtopic.php?t=34718

Adding SNMP options I get this error:

09/16/2010 08:57:08 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select max(sequence)+1 as seq from mac_track_snmp_items where snmp_id="
09/16/2010 08:57:08 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"SELECT * FROM mac_track_snmp WHERE id="
09/16/2010 08:57:05 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select max(sequence)+1 as seq from mac_track_snmp_items where snmp_id="
09/16/2010 08:57:05 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"SELECT * FROM mac_track_snmp WHERE id="

Deleted all devices and tried again with the same result.

Also getting:
MacTrack OUI Database Import Results

Getting OUI Database from IEEE
OUI Database Download from IEEE Complete

There were '0' Entries Added/Updated in the database.
There were '0' Records Removed from the database.

When trying to update IEEE DB.
I don't have the SQL errors in my logfile, but I am getting the "Error: Save Failed: Field Input Error (Check Red Fields) when I try to save SNMP options. Also, no fields are shown in red...
User avatar
chercen
Posts: 41
Joined: Sun Apr 09, 2006 4:16 pm
Location: Spain

Re: Error adding SNMP options

Post by chercen »

ceyounger wrote:
digitlman wrote:8.7g with mactrack 2.9 fresh install. Followed directions posted: http://forums.cacti.net/viewtopic.php?t=34718

Adding SNMP options I get this error:

09/16/2010 08:57:08 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select max(sequence)+1 as seq from mac_track_snmp_items where snmp_id="
09/16/2010 08:57:08 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"SELECT * FROM mac_track_snmp WHERE id="
09/16/2010 08:57:05 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select max(sequence)+1 as seq from mac_track_snmp_items where snmp_id="
09/16/2010 08:57:05 AM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"SELECT * FROM mac_track_snmp WHERE id="

Deleted all devices and tried again with the same result.

Also getting:
MacTrack OUI Database Import Results

Getting OUI Database from IEEE
OUI Database Download from IEEE Complete

There were '0' Entries Added/Updated in the database.
There were '0' Records Removed from the database.

When trying to update IEEE DB.
I don't have the SQL errors in my logfile, but I am getting the "Error: Save Failed: Field Input Error (Check Red Fields) when I try to save SNMP options. Also, no fields are shown in red...
Same error here... logfile says this:

11/04/2010 06:50:06 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"select max(sequence)+1 as seq from mac_track_snmp_items where snmp_id="
11/04/2010 06:50:06 PM - CMDPHP: Poller[0] ERROR: SQL Row Failed!, Error:'1064', SQL:"SELECT * FROM mac_track_snmp WHERE id="

Regards,
zhoughan
Posts: 1
Joined: Fri Dec 03, 2010 2:05 am

Re: Error adding SNMP options

Post by zhoughan »

I have know how to fix it.
just modify the file mactrack_snmp.php

find following lines

html_start_box("<strong>Mactrack SNMP Options</strong>", "100%", $colors["header"], "3",
"center", htmlspecialchars("mactrack_snmp.php?action=item_edit&id=" . $_GET["id"]));
print "<tr bgcolor='#" . $colors["header_panel"] . "'>";
DrawMatrixHeaderItem("Item",$colors["header_text"],1);
DrawMatrixHeaderItem("Version",$colors["header_text"],1);
DrawMatrixHeaderItem("Community",$colors["header_text"],1);
DrawMatrixHeaderItem("Port",$colors["header_text"],1);
DrawMatrixHeaderItem("Timeout",$colors["header_text"],1);
DrawMatrixHeaderItem("Retries",$colors["header_text"],1);
DrawMatrixHeaderItem("Max OIDs",$colors["header_text"],1);
DrawMatrixHeaderItem("Username",$colors["header_text"],1);
DrawMatrixHeaderItem("Password",$colors["header_text"],1);
DrawMatrixHeaderItem("Auth Proto",$colors["header_text"],1);

modify htmlspecialchars("mactrack_snmp.php?action=item_edit&id=" . $_GET["id"]));
to
"mactrack_snmp.php?action=item_edit&id=" . $_GET["id"]);
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Error adding SNMP options

Post by TheWitness »

This is fixed in SVN 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?
dpsguard
Posts: 29
Joined: Tue Apr 05, 2016 10:22 pm

Re: Error adding SNMP options

Post by dpsguard »

Hi,

Since included version 3 of MacTracker in CactiEZ was not working, I did some research and someone here advised to use latest version 2.9. I downloaded and installed it and it brought back mactracker tab. However, I still had the Red error message when trying to add a SNMP set. So as @zhoughan mentioned, I needed to update the snmp php file in the mactracker directory and that resolved it.

Thanks so much zhoughan and developers.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests