ERROR: not a simple integer: '-1772628932'

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

Moderators: Developers, Moderators

Post Reply
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

ERROR: not a simple integer: '-1772628932'

Post by Pumpi »

Polling Checkpoint FW1 - Accepted Packts I get no values.

Running snmpwalk to this OID .1.3.6.1.4.1.2620.1.1.4.0 I get

SNMPv2-SMI::enterprises.2620.1.1.4.0 = INTEGER: -1732425292

Can I fix this ?
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

Is there an option to make this value possitive with CDEF ?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

CDEF:

a,-1,*

Which would make any value it's inverse. Just making any value positive, I don't know, but this will make that number positive.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Please attempt to run the query with snmpv2 instead of v1. This may be a counter overflow.

Otherwise, I am not sure that RRDTOOL allows storing of negative COUNTER values. You need to use GUAGE or something like it.

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?
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

Rony, CDEF works but not for this negative integer :-?

TheWitness, seems that rrdtool can't store such values

I'll try to ask Checkpoint ....
User avatar
Pumpi
Cacti User
Posts: 259
Joined: Wed Jan 14, 2004 3:23 am
Location: Germany

Post by Pumpi »

Here some infos:

Variable: fwAccepted
Data type: integer
Description: The number of accepted packets
Possible values: any number

  • * These variables should be handled as unsigned integer

    * The range of integer is -2147483648 2147483647 ( -(2^31) to 2^32 - 1)

    * The range of unsigned integer is 0 - 4294967295 ( 0 to 2^32 - 1)

    * Using the counters as signed int can cause problems.
    For example:
    o If the counter = 2147483647 (which is MAX INT) and 1 is added
    to counter the result is:

    signed: -2147483648 (which is overflow)
    unsigned: 2147483648 (which is ok)

    o When the unsigned Int value reaches its maximum it would
    swap to 0
li0n
Posts: 10
Joined: Tue Oct 18, 2005 4:38 pm

Post by li0n »

Hi,

i have the same problem,

do you receive solutions from CP ?

regards,

Nicolas.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests