CPUG

The Check Point User Group

A Resource For The Check Point Community.  Fast.  Useful.  Independent.

1. Come to CPUG CON 2008 EUROPE in Switzerland on September 8th - 9th!
    Two days full of technical content for Check Point administrators in the beautiful Swiss Alps!
    We already have 72 attendees signed up from 20 countries!
2. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 10/6, 11/3, 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3, 9/7.
3. Corrent S3500 SecureXL Turbocards For Sale - Last Six Remaining - Get Your Spares!
4. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 And Related Products > Miscellaneous
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-11-15
jpetter jpetter is offline
Junior Member
 
Join Date: 2006-11-14
Posts: 1
Rep Power: 0
jpetter has an average reputation (10+)
Default Problems/issues with SNMP

We started using using SNMP, and RRDtool to monitor connections, accepted & dropped packets, along with some other items a couple of months ago. All seemed to be going along fine, until I noticed that data for certain firewalls was not updating.

Looking more closely, I discovered that this data was getting kicked out because the values returned were negative numbers. Initially, I just added some logic to my scripts so that if a negative number was found, it was converted to a positive and then updated to the database. That worked great - the scripts collected the data, and updated to the RRDtool database, and the graphs produced were nice.

The more I thought about it though, the less sense it made or makes. I searched high and low and couldn't really find anyplace where the implementation of SNMP was discussed in any detail. The way I understand the process is this: take the OID fwAccepted, which is the number of accepted packets. It is defined as a 32 bit integer, so I *assume* it is a 32 bit counter that wraps around when it hits the ceiling...incrementing by one with each accepted packet. How this could become negative then confuses me...it doesn't make sense, and makes me tend to question the data. Here are three successive polls taken five minutes a part.
br-fw-1: 2006-11-06 17:00:01
1162850401: 1005716,3577865,3815,325535997,329894009,175657210 7,6291456,10485760,3075324
br-fw-1: 2006-11-06 17:05:00
1162850700: 7490753,3581120,3082,-3964693308,334639166,1756601163,6291456,10485760,2 575300
br-fw-1: 2006-11-06 17:10:00
1162851000: 15562433,3584556,3562,-3960198035,-3955825643,1756632914,6291456,10485760,2951312

Notice the fourth and fifth items (accepted/dropped) as they switch from positive to negative, and look at the magnitude change.

Does anyone know what could cause that? I thought maybe it was because I was using SNMP version 1 in my snmpget/snmpwalk statements, but I couldn't connect using SNMP v2c. Looking deeper into why, I couldn't even find out where the agent was configured, where it was defined as either v1, 2c or 3.

If anyone could shed some light on how this works, and how I may be able to correct this, I would greatly appreciate it.

Thanks,
Jeff
Reply With Quote
  #2 (permalink)  
Old 2006-11-16
northlandboy northlandboy is offline
Senior Member
 
Join Date: 2006-07-28
Location: New Zealand
Posts: 786
Rep Power: 3
northlandboy has an average reputation (10+)
Default Re: Problems/issues with SNMP

Run fw ctl pstat on the modules - you'll see negative numbers there sometimes too. I suspect it is an issue with Check Point's counters - not an SNMP thing.
Reply With Quote
  #3 (permalink)  
Old 2006-12-11
mcarey mcarey is offline
Member
 
Join Date: 2006-05-08
Posts: 62
Rep Power: 3
mcarey has an average reputation (10+)
Default Re: Problems/issues with SNMP

Quote:
Originally Posted by jpetter View Post
We started using using SNMP, and RRDtool to monitor connections, accepted & dropped packets, along with some other items a couple of months ago. All seemed to be going along fine, until I noticed that data for certain firewalls was not updating.

Looking more closely, I discovered that this data was getting kicked out because the values returned were negative numbers. Initially, I just added some logic to my scripts so that if a negative number was found, it was converted to a positive and then updated to the database. That worked great - the scripts collected the data, and updated to the RRDtool database, and the graphs produced were nice.

The more I thought about it though, the less sense it made or makes. I searched high and low and couldn't really find anyplace where the implementation of SNMP was discussed in any detail. The way I understand the process is this: take the OID fwAccepted, which is the number of accepted packets. It is defined as a 32 bit integer, so I *assume* it is a 32 bit counter that wraps around when it hits the ceiling...incrementing by one with each accepted packet. How this could become negative then confuses me...it doesn't make sense, and makes me tend to question the data. Here are three successive polls taken five minutes a part.
br-fw-1: 2006-11-06 17:00:01
1162850401: 1005716,3577865,3815,325535997,329894009,175657210 7,6291456,10485760,3075324
br-fw-1: 2006-11-06 17:05:00
1162850700: 7490753,3581120,3082,-3964693308,334639166,1756601163,6291456,10485760,2 575300
br-fw-1: 2006-11-06 17:10:00
1162851000: 15562433,3584556,3562,-3960198035,-3955825643,1756632914,6291456,10485760,2951312

Notice the fourth and fifth items (accepted/dropped) as they switch from positive to negative, and look at the magnitude change.

Does anyone know what could cause that? I thought maybe it was because I was using SNMP version 1 in my snmpget/snmpwalk statements, but I couldn't connect using SNMP v2c. Looking deeper into why, I couldn't even find out where the agent was configured, where it was defined as either v1, 2c or 3.

If anyone could shed some light on how this works, and how I may be able to correct this, I would greatly appreciate it.

Thanks,
Jeff

Jeff,

This is a bug in Checkpoints software. It took awhile for them to admit it, but they eventually wrote me a new cpsnmpd file to load and now it works fine. PM me if you want me to email you the file.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 08:31.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0