[Date Prev]   [Date Next] [Thread Prev]   [Thread Next] [Date Index]   [Thread Index]

 

     Re: [snips-users] snmpmon-collector not collecting everything

yes, there is divide by zero condition when encountering devices with total space=0


nate wrote:
Greetings!

recently I decided to dive into snips again after running nocol
for a few years, tonight I thought to take a stab at snmpmon.

the problem I have is it does not appear to be storing all the
variables in /tmp/snmpmon_data. running snmpmon-collector in
debug mode shows it running snmpwalk on a bunch of different
variables(and it gets results back), but they don't show up
in the file..

I must admit the documentation for this monitor is quite
difficult to understand!!

my snmpmon-conf (with the comments removed):
POLLINTERVAL	300
RRDTOOL  ON
HOST.uptime		*	600   300  120
HOST.cpuload		*	60   75  90
HOST.phymem_%used	*	80   90   95
HOST.virtual_%used	*	60   70   80
HOST.proctable_%used	*	50   40   30
HOST.storage_%used	*	75   85   95

STARTDEVICES
gateway		public	host

(I had to change the above HOST.storage entry because snmpmon was
complaining it didn't exist, previously it was HOST.diskspace_%used

running snmpmon-collector in debug gives me:

[..]
(debug) readconfig Device gateway, variables =
.iso.org.dod.internet.mgmt.mib-2.25.1.1,
.iso.org.dod.internet.mgmt.mib-2.25.1.6,
.iso.org.dod.internet.mgmt.mib-2.25.1.7,
.iso.org.dod.internet.mgmt.mib-2.25.2.3.1.3,
.iso.org.dod.internet.mgmt.mib-2.25.2.3.1.4,
.iso.org.dod.internet.mgmt.mib-2.25.2.3.1.5,
.iso.org.dod.internet.mgmt.mib-2.25.2.3.1.6,
.iso.org.dod.internet.mgmt.mib-2.25.3.3.1
(dbg) doping return for gateway =1
(debug) Monitoring device gateway
  (debug) running /usr/local/snips/bin/snmpwalk gateway public
.iso.org.dod.internet.mgmt.mib-2.25.1.1
Stored nvarval{.iso.org.dod.internet.mgmt.mib-2.25.1.1} = (43965606) 5 days,
2:07:36
  (debug) running /usr/local/snips/bin/snmpwalk gateway public
.iso.org.dod.internet.mgmt.mib-2.25.1.6
Stored nvarval{.iso.org.dod.internet.mgmt.mib-2.25.1.6} = 213
  (debug) running /usr/local/snips/bin/snmpwalk gateway public
.iso.org.dod.internet.mgmt.mib-2.25.1.7
Stored nvarval{.iso.org.dod.internet.mgmt.mib-2.25.1.7} = 0
  (debug) running /usr/local/snips/bin/snmpwalk gateway public
.iso.org.dod.internet.mgmt.mib-2.25.2.3.1.3
Stored nvarval{.iso.org.dod.internet.mgmt.mib-2.25.2.3.1.3} = / /dev/pts /boot
/nfs2 Real Memory Swap Space Memory Buffers
  (debug) running /usr/local/snips/bin/snmpwalk gateway public
.iso.org.dod.internet.mgmt.mib-2.25.2.3.1.4
Stored nvarval{.iso.org.dod.internet.mgmt.mib-2.25.2.3.1.4} = 4096 1024 1024
4096 1024 1024 256
  (debug) running /usr/local/snips/bin/snmpwalk gateway public
.iso.org.dod.internet.mgmt.mib-2.25.2.3.1.5
Stored nvarval{.iso.org.dod.internet.mgmt.mib-2.25.2.3.1.5} = 23911275 0 14119
6097752 970956 999856
  (debug) running /usr/local/snips/bin/snmpwalk gateway public
.iso.org.dod.internet.mgmt.mib-2.25.2.3.1.6
Stored nvarval{.iso.org.dod.internet.mgmt.mib-2.25.2.3.1.6} = 7185542 0 1159
4594124 567900 0
  (debug) running /usr/local/snips/bin/snmpwalk gateway public
.iso.org.dod.internet.mgmt.mib-2.25.3.3.1
Stored nvarval{.iso.org.dod.internet.mgmt.mib-2.25.3.3.1} = .0.0
(debug) Running procdata_host for device gateway
UNKNOWN var .iso.org.dod.internet.mgmt.mib-2.25.2.3.1.4, nvarval 4096
Sleeping for 300...


but the data file for this only reveals: TIME 1035432926 Wed Oct 23 21:15:26 2002 DEVICE gateway HOST.uptime 7327 SECS HOST.storage_%used 30 VALUE /

(I manually erase the data files between restarting snmpmon-collector
to be totally sure the datafile is new). Not sure where it gets 30%
from for my / partition it is 31% full(I tried running df for
blocksizes of 512,1024,2048,4096 and they all say 31% full, my other
local partition is 9% full and I have a nfs mount 80% full)


no matter what I have done(been playing with it for about 2 hours) I can't get it to display more then that(I can get it to display less though!)

snmpmon correctly updates the stats/datafiles for the web front
end for the 2 stats(uptime/storage).

running snips 1.1 on debian 3.0.


I have ippingmon, nsmon, rpcmon, smbmon and portmon running successfully.

any ideas?

thanks !!

nate
(tryin to learn new things while I look for a job ..)





--
Dmitry Sazonov x4168
UNIX sysadmin, AAMC


Zyrion Traverse Network Monitoring & Network Management Software