how many character does hostmoniter support when fill in

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
nieaicai
Posts: 73
Joined: Fri Aug 03, 2012 9:05 pm

how many character does hostmoniter support when fill in

Post by nieaicai »

abaout snmp get

it is a good feature:
Starting from version 9.18 HostMonitor allows you to use expressions like
TotalTraffic1 = [1.3.6.1.2.1.2.2.1.10.1] + [1.3.6.1.2.1.2.2.1.16.1]
In such case HostMonitor will retrieve 2 counters (1.3.6.1.2.1.2.2.1.10.1 - total number of octets received on interface #1; 1.3.6.1.2.1.2.2.1.16.1 - total number of octets transmitted out of interface #1) calculate sum of these counters and check result.
When you are using this expression, %MIBNAME%, %MIBNAMESHORT% and %PATH% variables will be set to TotalTraffic1 (name of the variable specified in this expression); while %OBJECT% variable will be set to [1.3.6.1.2.1.2.2.1.10.1] + [1.3.6.1.2.1.2.2.1.16.1]



now :
val=[1.3.6.1.4.1.3375.2.2.5.4.3.1.11.22.122.104.117.97.110.122.104.97.110.103.106.105.95.57.57.57.56.95.122.111.111.108.1.4.10.0.116.28.9998]-[1.3.6.1.4.1.3375.2.2.5.4.3.1.11.22.122.104.117.97.110.122.104.97.110.103.106.105.95.57.57.57.56.95.122.111.111.108.1.4.10.0.116.29.9998]
hostmoniter can work ok,


but




val2=
([1.3.6.1.4.1.3375.2.2.5.4.3.1.11.22.122.104.117.97.110.122.104.97.110.103.106.105.95.57.57.57.56.95.122.111.111.108.1.4.10.0.116.28.9998]-[1.3.6.1.4.1.3375.2.2.5.4.3.1.11.22.122.104.117.97.110.122.104.97.110.103.106.105.95.57.57.57.56.95.122.111.111.108.1.4.10.0.116.29.9998]-10)
and ([1.3.6.1.4.1.3375.2.2.5.4.3.1.11.22.122.104.117.97.110.122.104.97.110.103.106.105.95.57.57.57.56.95.122.111.111.108.1.4.10.0.116.28.9998]-20)

does not work, just because i can not fill in so many character ,
how many character does hostmoniter support when fill in the oid?

i also do not kwow why F5 device's oid is so long

infact it is a simple express

it is just :val2=([oid1]-[oid2]-10)and ([oid1]-20)
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

how many character does hostmoniter support when fill in the oid?
512
Also, you may use variables
------------------
Also you may use folder-level variables instead of expression. In such case variable should be specified using Folder Properties dialog and it should contain valid expression.
For example you may use [1.3.6.1.2.1.2.2.1.10.1]+[1.3.6.1.2.1.2.2.1.16.1] string for %fvar_totaltraffic1% folder variable and then just type %fvar_totaltraffic1% when setup SNMP Get test item. In such case %MIBNAME%, %MIBNAMESHORT% and %PATH% variables will be set to totaltraffic1 while %OBJECT% variable will be set to [1.3.6.1.2.1.2.2.1.10.1]+[1.3.6.1.2.1.2.2.1.16.1]
------------------

Regards
Alex
nieaicai
Posts: 73
Joined: Fri Aug 03, 2012 9:05 pm

tks

Post by nieaicai »

can you tell me more detail, i saw it before but still do not how to use folder-level variables instead of expression
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

How to specify folder-level variable? Select folder, click "Folder properties" button, select "Variables" tab and specify variable.
http://www.ks-soft.net/hostmon.eng/mfra ... FolderTree

Regards
Alex
nieaicai
Posts: 73
Joined: Fri Aug 03, 2012 9:05 pm

Post by nieaicai »

tks

i get it

now for example

i define

fvar_oid1 [1.3.6.1.2.1.2.2.1.10.7]

fvar_oid2 [1.3.6.1.2.1.2.2.1.10.12]

than my express is

(%fvar_oid1%-%fvar_oid2%-10)and (%fvar_oid2%-20)

and it works

so great!

tks lot
Post Reply