Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Victor Kirhenshtein

#5491
General Support / Re: Cluster node disappers
March 22, 2012, 03:11:20 PM
Sorry for not returning to this issue for too long. Looking through the code didn't give me any ideas. Is it possible to do either: 1) run system for some time with high debug level (at least 5, 6 is better) and send me debug log after nodes disappear; or 2) give me remote access to the system so I can look around and possibly get additional information?

Best regards,
Victor
#5492
General Support / Re: Using best notification action
March 22, 2012, 03:07:21 PM
Hi!

Yes, this is possible. You have to create two rules: one for sending SMS and second for executing your notification script. In first rule you have to add filtering script, which will return TRUE if there are no internet connection. For second rule you can use the same script, but with reversed return values: FALSE if there are no internet connection and TRUE if internet connection is available. Depending on your policy, you may also add "stop processing" flag to first rule (for SMS sending), and do not use filtering script in second rule at all.

Best regards,
Victor
#5493
Hi!

There are few possible ways, assuming you have preconfigured targets on agent:

1. You can collect Icmp.PacketLoss parameter for target, and generate event when last value reaches 100 (or any other unacceptable packet loss value).

2. You can collect Icmp.AvgPingTime or Icmp.LastPingTime, and set threshold for value 10000 - ping subagent returns 10000 as response time value to indicate unreachable target.

If you use Icmp.Ping parameter (so no preconfigured target), the only possible way is to set threshold for value 10000.

Hope this helps!

Best regards,
Victor
#5494
General Support / Re: ibm blade center
March 20, 2012, 09:36:43 AM
Hi!

Can you confirm that IP address 172.16.4.41 presented on one of the interfaces of the node?

Best regards,
Victor
#5495
Все счетчики - это беззнаковые целые, и при достижении максимума переходят через 0. Например, если у меня 8-ми битовый счетчик, то при значении 254 прибавив 3 я получу 1. Обычно для счетчиков абсолютные значения не важны, и собирают обычно дельту. В истории должно хранится уже значение после вычисления дельты и обработки transformation скриптом. Что касается быстрых интерфейсов, то переполнение счетчиков происходит очень быстро, и чтобы получить осмысленные значения, надо собирать данные часто, каждые 5-10 секунд, иначе между двумя опросами может произойти несколько переполнений и переходов через 0, и тогда дельта, вычисленная сервером, даст неправильный результат. Можно также использовать 64-битные счетчики из ifXTable (.1.3.6.1.2.1.31.1.1.1.6 и другие), если устройство их поддерживает.
#5496
Eto pohoze primer iz etogo obsuzdenija: https://www.netxms.org/forum/oe-oo/oo-oto-teeo-snmp-traps/
#5497
You can specify multiple /SUBAGENT=xxx options in command line.

Best regards,
Victor
#5498
Quote from: SKYnv on March 14, 2012, 08:11:50 AM
столкнулся с проблемой что выпадают некорректные значения при сборе и обработке значение.

скрипты примерно такие


sub main()
{
return int64((($1*8)/1024)/1024);
}

выпадают отрицательные значения там где их не может быть, собирается параметр .1.3.6.1.2.1.2.2.1.16.1

Poskol'ku original'noe znachenie 32 bit, to pri pervom umnozenii na 8 mi mozem vijti za predeli vozmoznih znacenij dlja 32 bitnogo celogo, i poluchit' perepolnenie. Ja bi predlozil delat' snachala privedenie znachenija k 64 bitam, chtobi interpretator vse dal'nejshie matematicheskie operacii delal kak s 64 bit znacheniem. Vot malen'kij skript, kotorij pokazivaet raznicu:


println int64((($1 * 8) / 1024) / 1024);
println int64(((int64($1) * 8) / 1024) / 1024);


Rezul'tat:


C:\Source\NetXMS\debug>nxscript math.nxsl 100000000
NetXMS Scripting Host  Version 1.1.10
Copyright (c) 2005-2012 Victor Kirhenshtein

762
762

C:\Source\NetXMS\debug>nxscript math.nxsl 1000000000
NetXMS Scripting Host  Version 1.1.10
Copyright (c) 2005-2012 Victor Kirhenshtein

-562
7629

#5499
Quote from: SKYnv on March 14, 2012, 02:55:59 PM
ну наиболее стабильная работа идет на стандартных настройках.
то есть тип определяется как unsigned integer,никак не интерпретируется больше, ясно что это недостаточно, потому как на больших значениях данные ожидаемо падают в 0 и нужно использовать unsigned integer64, у этого же наоборот данные падают в нереальный плюс, если тип ансигнед, если сигнед то еще и в минус могут.
Отдаваемый тип явно int64
The total number of octets received on the
            interface, including framing characters.


Esli rech' idet o standartnih OIDah dlja trafika na interfeisah (.1.3.6.1.2.1.2.2.1.16 naprimer), to oni imejut SNMP tip Counter, t.e. unsigned 32bit integer. Zaschet togo chto znachenie unsigned, vichislenie delta budet prohodit' pravil'no daze pri perehode cherez 0.
#5500
Quote from: SKYnv on March 15, 2012, 05:55:17 AM
в script library опечатка в названии скрипта Resolve IfName

A chto eto za skript takoj? V default installjacii takogo vrode kak net.
#5501
Quote from: SKYnv on March 15, 2012, 10:12:27 AM
И еще вопрос в догонку я подозреваю что использовать сдвиги выгоднее деления или не принципиально?

Dlja interpretiruemogo skripta eto ne principial'no :)
#5502
Feature Requests / Re: Java Console - Event Monitor
March 14, 2012, 10:20:16 AM
From the error it seems that connection between NetXMS server and MySQL server is broken for some reason. There are many possible reasons for that. The fact that problem occurs on exact hours may point to some scheduled task, which broke communication with MySQL server in some way. Do you have MySQL server on same machine or on remote host?

Best regards,
Victor
#5503
A kak opredelen tip dannih v samom DCI (na zakladke General)? Kakoe original'noe znachenie, poluchaemoe s hosta?

Ogranichenij na kolichestvo DCI net.
#5504
General Support / Re: ibm blade center
March 12, 2012, 09:47:45 AM
Hi!

I suspect that NetXMS server incorrectly process some information obtained from device. Could you please send me more information about this object(s)? I'm mostly interested in information shown on summary page (capabilities, OID, system description), list of interfaces with IP addresses, and IP address selected as primary. I don't need to know exact IP addresses, but very important is to check that address selected as primary IP is presented on one of interface objects.

Best regards,
Victor
#5505
Vpechatljajuschij spisok :) Ja pozavozu eto kak otdel'nie bagi v nash bugtracker. Chto kasaetsja imen ob'ektov, to v nih nel'zja ispol'zovat' simvoli s kodom men'she 32 i sledujuschie special'nie simvoli:

|\"'*%#\\`;?<>=

Vo mnogom eto uze perezitok proshlogo, sejchas vrode kak nichego na eto ne zavjazano. Navernoe edinstvennaja potencial'naja problema - ispol'zovanie imen ob'ektov v komandah - posle podstanovki mogut poluchitsja neozidannie rezul'tati, esli tam skazem kavichki ili vertikal'naja cherta.

Viktor