new device shows "500 internal server error"

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
GGA
Cacti User
Posts: 62
Joined: Mon May 03, 2010 5:56 am

new device shows "500 internal server error"

Post by GGA »

Ok, I will try it in a new thread, hope it will be kept clean. :-)
And what I've learned so far, PHP8.1 is not yet supperted. But it is really stable.
The System:

Code: Select all

Ubuntu LTS22.04
Cacti and Spine 1.2.24
10.6.12-MariaDB-0ubuntu0.22.04.1-log
8.1.2-1ubuntu2.11
NET-SNMP version: 5.9.1 

We have 118 devices included and there is only one with this error message when I try to include it.

I know this problem doesn't appear with old Cacti 0.8.8b. So I compared the SNMP traffic and I see the new Cacti makes it a little bit different.
The old cacti asks for sysUpTime:

Code: Select all

IP cop.46418 > usv.snmp:  C="xxx" GetRequest(28)  system.sysDescr.0
IP usv.snmp > cop.46418:  C="xxx" GetResponse(45)  system.sysDescr.0="NetMan 100 plus"
IP cop.53446 > usv.snmp:  C="xxx" GetRequest(28)  system.sysUpTime.0
IP usv.snmp > cop.53446:  C="xxx" GetResponse(34)  system.sysUpTime.0=3832488772
The new one takes snmpEngineTime and there the device gives a wrong answer:

Code: Select all

BAD UPS
snmpget DEVICE1 snmpFrameworkMIB.snmpFrameworkMIBObjects.snmpEngine.snmpEngineTime.0
SNMPv2-MIB::sysDescr.0 = STRING: NetMan 100 plus

WORKING UPS
snmpget DEVICE2 snmpFrameworkMIB.snmpFrameworkMIBObjects.snmpEngine.snmpEngineTime.0
SNMP-FRAMEWORK-MIB::snmpEngineTime.0 = INTEGER: 10625657 seconds
So I belive the script is waiting for an Integer and receives an unexpected String.
Of course a wrong value for this SNMP request.

Is there a chance for me to get around this problem? I mean other than deleting this device. ;-)
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: new device shows "500 internal server error"

Post by TheWitness »

Walk the device and post the results:

Code: Select all

snmpwalk -c blah -v2c -On hostname .1.3 | head -40
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?
GGA
Cacti User
Posts: 62
Joined: Mon May 03, 2010 5:56 am

Re: new device shows "500 internal server error"

Post by GGA »

Code: Select all

.1.3.6.1.2.1.33.1.2.7.0 = INTEGER: 28
.1.3.6.1.2.1.33.1.3.1.0 = Counter32: 0
.1.3.6.1.2.1.33.1.3.2.0 = INTEGER: 3
.1.3.6.1.2.1.33.1.3.3.1.1.1 = INTEGER: 1
.1.3.6.1.2.1.33.1.3.3.1.1.2 = INTEGER: 2
.1.3.6.1.2.1.33.1.3.3.1.1.3 = INTEGER: 3
.1.3.6.1.2.1.33.1.3.3.1.2.1 = INTEGER: 499
.1.3.6.1.2.1.33.1.3.3.1.2.2 = INTEGER: 499
.1.3.6.1.2.1.33.1.3.3.1.2.3 = INTEGER: 499
.1.3.6.1.2.1.33.1.3.3.1.3.1 = INTEGER: 227
.1.3.6.1.2.1.33.1.3.3.1.3.2 = INTEGER: 230
.1.3.6.1.2.1.33.1.3.3.1.3.3 = INTEGER: 232
.1.3.6.1.2.1.33.1.3.3.1.4.1 = INTEGER: 104
.1.3.6.1.2.1.33.1.3.3.1.4.2 = INTEGER: 104
.1.3.6.1.2.1.33.1.3.3.1.4.3 = INTEGER: 95
.1.3.6.1.2.1.33.1.3.3.1.5.1 = INTEGER: 0
.1.3.6.1.2.1.33.1.3.3.1.5.2 = INTEGER: 0
.1.3.6.1.2.1.33.1.3.3.1.5.3 = INTEGER: 0
.1.3.6.1.2.1.33.1.4.1.0 = INTEGER: 3
.1.3.6.1.2.1.33.1.4.2.0 = INTEGER: 499
.1.3.6.1.2.1.33.1.4.3.0 = INTEGER: 3
.1.3.6.1.2.1.33.1.4.4.1.1.1 = INTEGER: 1
.1.3.6.1.2.1.33.1.4.4.1.1.2 = INTEGER: 2
.1.3.6.1.2.1.33.1.4.4.1.1.3 = INTEGER: 3
.1.3.6.1.2.1.33.1.4.4.1.2.1 = INTEGER: 231
.1.3.6.1.2.1.33.1.4.4.1.2.2 = INTEGER: 233
.1.3.6.1.2.1.33.1.4.4.1.2.3 = INTEGER: 230
.1.3.6.1.2.1.33.1.4.4.1.3.1 = INTEGER: 130
.1.3.6.1.2.1.33.1.4.4.1.3.2 = INTEGER: 78
.1.3.6.1.2.1.33.1.4.4.1.3.3 = INTEGER: 86
.1.3.6.1.2.1.33.1.4.4.1.4.1 = INTEGER: 2560
.1.3.6.1.2.1.33.1.4.4.1.4.2 = INTEGER: 1440
.1.3.6.1.2.1.33.1.4.4.1.4.3 = INTEGER: 1600
.1.3.6.1.2.1.33.1.4.4.1.5.1 = INTEGER: 16
.1.3.6.1.2.1.33.1.4.4.1.5.2 = INTEGER: 9
.1.3.6.1.2.1.33.1.4.4.1.5.3 = INTEGER: 10
.1.3.6.1.2.1.33.1.5.1.0 = INTEGER: 499
.1.3.6.1.2.1.33.1.5.2.0 = INTEGER: 3
.1.3.6.1.2.1.33.1.5.3.1.1.1 = INTEGER: 1
.1.3.6.1.2.1.33.1.5.3.1.1.2 = INTEGER: 2
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: new device shows "500 internal server error"

Post by TheWitness »

Sorry, let me be more specific...

Code: Select all

snmpwalk -c blah -v2c hostname .1.3.6.1.2.1.1
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?
GGA
Cacti User
Posts: 62
Joined: Mon May 03, 2010 5:56 am

Re: new device shows "500 internal server error"

Post by GGA »

Code: Select all

SNMPv2-MIB::sysDescr.0 = STRING: NetMan 100 plus
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.5491.6
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (3950235756) 457 days, 4:52:37.56
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING:
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 0
or a bit more numeric

Code: Select all

.1.3.6.1.2.1.1.1.0 = STRING: NetMan 100 plus
.1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.5491.6
.1.3.6.1.2.1.1.3.0 = Timeticks: (3950239843) 457 days, 4:53:18.43
.1.3.6.1.2.1.1.4.0 = STRING:
.1.3.6.1.2.1.1.5.0 = STRING:
.1.3.6.1.2.1.1.6.0 = STRING:
.1.3.6.1.2.1.1.7.0 = INTEGER: 0
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: new device shows "500 internal server error"

Post by TheWitness »

So, get does not work but Walk does. Have you considered opening a ticket with the Hardware vendor?
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?
GGA
Cacti User
Posts: 62
Joined: Mon May 03, 2010 5:56 am

Re: new device shows "500 internal server error"

Post by GGA »

Thank you TheWitness, not really.
Well I belive this device is already EOL but there is maybe a newer firmware.
Let me check that. But if not, is there something else I could do? I mean, it works with old cacti 0.88b.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: new device shows "500 internal server error"

Post by TheWitness »

Us the ifDesc ping method.
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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: new device shows "500 internal server error"

Post by TheWitness »

Let me see if there is something that can be done.
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?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: new device shows "500 internal server error"

Post by TheWitness »

Upload a screen2gif of the transaction so that I can see it.
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 2 guests