Hello,John Bruer:
Thank you very much for your help. I now understand the format you gave me. It
is helpful, But I have noticed that there are some difference between
snmpcol.conf on windows and snmpcol.conf on Unix.
The following is a default configuration snmpcol.conf on windows platform.
##############begin the snmpcol.conf #######################
#
# SNMP Collect Configuration File
# Created by Tivoli NetView Collections on 星期一 八月 11 17:42:12.0 2003
#
# WARNING: All decimal points in this file must be represented
# by the '.' character.
#
MIB .1.3.6.1.2.1.2.2.1.11 .* ifInUcastPkts pkts/sec COUNTER S hbyang
W 10.10.10.* 0xffffffff 3600 > 10000.000000 <= 50.000000 % s 58720263
MIB .1.3.6.1.2.1.2.2.1.17 .* ifOutUcastPkt units/sec COUNTER S hbyang
W 10.10.10.* 0xffffffff 3600 > 10000.000000 <= 50.000000 % s 58720263
MIB .1.3.6.1.2.1.2.2.1.14 .* ifInErrors errors/sec COUNTER R hbyang
C smartset:Routers 0xffffffff 1800 > 10.000000 <= 90.000000 % s 58720263
MIB .1.3.6.1.2.1.2.2.1.20 .* ifOutErrors errors/sec COUNTER S hbyang
W 10.10.10.* 0xffffffff 3600 > 10.000000 <= 90.000000 % s 58720263
MIB .1.3.6.1.2.1.11.1 0 snmpInPkts units/sec COUNTER S hbyang
W 10.10.10.* 0xffffffff 3600 > 10.000000 <= 70.000000 % s 58720263
MIB BandwidthUtilHdx .* BandwidthUtilHdx units EXPRESSION R hbyang
C smartset:Routers 0xffffffff 1800 > 20.000000 <= 75.000000 % s 58720263
MIB .1.3.6.1.4.1.9.2.1.58 0 avgBusy5 units INTEGER R hbyang
C smartset:CiscoDevices 0xffffffff 1800 > 90.000000 <= 75.000000 % s 58720263
MIB .1.3.6.1.4.1.9.2.1.46 0 bufferFail units INTEGER R hbyang
C smartset:CiscoDevices 0xffffffff 1800 > 0.000000 <= 0.000000 x% s 58720263
MIB .1.3.6.1.2.1.6.9 0 tcpCurrEstab units GAUGE R hbyang
C smartset:WebServers 0xffffffff 1800 > 0.000000 <= 0.000000 xA s 58720263
######### The end of the snmpcol.conf ##########
In the above file, every C line contains "0xffffffff", which I don't know the
meaning. But possibly, when I add a new entry, 0xffffffff will work fine. There
are also serveral symbol in the entry such as < > %.
By the way, on windows, you can not use Notepad to modified snmpcol.conf. Use
edit under command line can make a successful modification.
Bruce Yang
0086-755-26743243
hbyang@sysway.com
======= 2003-08-11 10:34:00 您在来信中写道:=======
>"Haibo Yang" <hbyang@sysway.com> writes:
>>
>> Hello, List:
>>
>> I have an Netview 7.1.3 installed on a Win2000 server and Now I'd
>> like to collect several data for Nokia. They are snmp V2, so I have
>> to modify snmpcol.conf manually. But when I open the file, I cannot
>> understand the syntax, I tried to modified one entry which is a
>> default one. When I restart the snmpcollect daemon, it says there is
>> an error in the snmpcol.conf file.
>>
>> The following is an entry in the snmpcol.conf, what is the meaning for each
>> field?
>> MIB .1.3.6.1.2.1.6.9 0 tcpCurrEstab units GAUGE R hbyang
>> C smartset:WebServers 0xffffffff 1800 > 0.000000 <= 0.000000 xA s 58720263
>
>Here's another example:
>
>MIB .1.3.6.1.4.1.94.1.21.1.7.1 ipsoProcessUtilization percent GAUGE s
>C 10.67.215.25 60 80 100 A s 58720263 ALL -
>C nokia.blah.foo.com 60 80 100 A s 58720263 ALL -
>
>The example above shows two devices--one specificified by IP address
>10.67.215.25, and another specified by name nokia.blah.foo.com.
>
>Add a .C. line for each firewall to monitor. The format above
>indicates, the OID, a label, the type of variable. For each host to
>query, the format indicates the host address, the collection interval
>in seconds (60), the trigger threshold (80) release threshold
>(100-no hysteresis--send event every polling interval if alarmed) ,
>absolute versus relative thresholding (A), as well as the specific
>trap number associated with Threshold trigger events.
>
>Also, here's the header of the unix file comments...
>
># snmpCollect configuration file
># created by xnmcollect on Mon Sep 16 17:04:32.6 2002
># pid: 23992 uid:0 euid:0
>#
># File format:
># MIB <MIB object ID> <MIB alias name> <units> <data type> <S|R>
># (S=suspend R=resume)
>#
># <C|X|W> <node name|IP range> <interval> <threshval> <resetVal>
># <A||xA> <s|d> <specific trap #> <REGEXP|LIST|ALL>
># <instances>
># (C=collect X=don't collect W=wildcard)
># (A=absolute reset = reset x[A]=no threshold)
># (s=store data d=don't store data)
># (REGEXP=as regular expression, LIST=as list, ALL=all)
>#
>
>
>--
>jb
= = = = = = = = = = = = = = = = = = = =
致
礼!
Bruce Yang
hbyang@sysway.com
2003-08-12
---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com
*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)
|