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 - Tatjana Dubrovica

#166
Use this two functions of ColumnFilter class:

/**
* Create filter of type SET
*/
public ColumnFilter()
{
type = SET;
set = new HashSet<ColumnFilter>();
operation = AND;
}

/**
* Add new element to SET type filter

* @param filter
*/
public void addSubFilter(ColumnFilter filter)
{
if (type == SET)
set.add(filter);
}


It will look something like this:

filter = ColumnFilter();
filter.setOperation(ColumnFilter.OR);
filter.addSubFilter(normalFilter); //ColumnFilter that filters events from event_severity column that have normal state
filter.addSubFilter(warningFilter);  //ColumnFilter that filters events from event_severity column that have warning state
#167
"Unmanaged" is one of Object Statuses(ObjectStatus.UNMANAGED). You can call function "getStatus()" on any object that inherit AbstractObject class(for example Node class).
#168
If you mean level tag:
https://www.netxms.org/documentation/adminguide/log-monitoring.html#level-tag
or severity tag:
https://www.netxms.org/documentation/adminguide/log-monitoring.html#severity-tag
all information is available there. To filter by multiple severity levels you should specify sum of appropriate codes.

If you mean regexp filtering you can write like this: "level[04](.*)"
This will mean that line should contain "level0" or "level4" and anything after that, that will be used like Event parameter.
#169
One of solutions can be creation of zones and add devices with same IP in different zones.
#170
General Support / Re: no new network creation
July 07, 2016, 01:04:55 PM
Does it still happen?
#172
General Support / Re: switch on/off PDU outlet
July 06, 2016, 12:01:25 PM
For now there is no option to create any button type widgets on dashboards. But you can create 2 Gauge objects with Text type. This type of gauge changes color depending on configuration.
#173
Общие вопросы / Re: POLLERS is too high
July 05, 2016, 07:07:09 PM
Аллерт выскакивает потому что у нас баг в "NetXMS Server"->"Thread pools" Template. Там в пороговом значение(threshold) должно быть значение сильно больше 1. Мы это поправим к следующему релизу(2.0.5) и если Вы обновитесь когда мы его выпустим, то всё должно будет решиться само сабой или Вы можете сами поправить value. Оно должно быть PollerThreadPoolMaxSize(250). Это пороговое значение нужно, чтобы оповестить администратора о том, что есть запросы которые стоят в очереди на обработку, но не обрабатываться, потому что количество запросов превышает максимальное количество доступных потоков.
#174
For now there is no easy solution for it. I have created bug about it: https://dev.raden.solutions/issues/1253

One of non trivial solutions can be:
Create script DCI that will return 1 if threshold should be generated and 0 if deactivation event should be generated. And count everything by yourselves(it should be working but "dirty" solution).

Something like this(have not tested this):
value = GetDCIValue($node, FindDCIByName($node, "Agent log status"));
if(value != null)
{
   attr = GetCustomAttribute($node, "NormalStateSampleCount");
   count = 5;
   if(attr != null)
   {
      count = int32(attr);
   }
   if(int32(value) > 5) //Activation event should be generated
   {
      SetCustomAttribute($node, "NormalStateSampleCount", "0");
      return 1;
   }
   
   if(int32(value) < 5)
   {
      count++;
      SetCustomAttribute($node, "NormalStateSampleCount", "0");
      if(count == 5) //Deactivation event should be generated
      {
         return 0;
      }
      return 1;
   }   
}

SetCustomAttribute($node, "NormalStateSampleCount", "0");
return 1;
#175
General Support / Re: Agent Cache
July 05, 2016, 06:04:53 PM
For now it's not possible. Bug created: https://dev.raden.solutions/issues/1252
#176
Общие вопросы / Re: POLLERS is too high
July 05, 2016, 05:31:21 PM
Quote from: Evgeniy Skoropadskiy on May 31, 2016, 10:08:36 AM
Я прошу прощения, но я тогда не понимаю значение/назначение остальных счетчиков?
Load average - средняя загрузка, usage и current size - колличество (это как я понимаю).
Вы пишите, что бы я установил в Load average значение какого параметра:

  • PollerThreadPoolBaseSize
  • PollerThreadPoolMaxSize
  • NumberOfDataCollectors

Я просто хочу разобраться что к чему, т.к. запутался. Помогите, пожалуйста!

Здесь есть описание этих параметров:
https://www.netxms.org/documentation/adminguide/appendix.html?highlight=pollerthreadpoolmaxsize#server-configuration-parameters

Если вкатце:

  • PollerThreadPoolBaseSize - минимальное количество потоков(используется для Status poll, Configuration poll, etc.  кроме сбора данных)
  • PollerThreadPoolMaxSize - количество до которого максимально может расти количество потоков(используется для Status poll, Configuration poll, etc.  кроме сбора данных)
  • NumberOfDataCollectors - количество потоков которое используется для сбора данных
#178
There was no changes connected with beacon between this versions.

What is result of resolving DNS google.com from NetXMS server computer? Host may be not accepted if its IP is a wildcard address or a loopback address or a multicast address or a broadcast address or a link local address or if NetXMS server failed to resolve DNS.

Events that are generated: SYS_NETWORK_CONN_LOST and SYS_NETWORK_CONN_RESTORED.
#179
There is screenshot of NetXMS configuration and netxms log.
#180
Everything works for me with latest server(from development branch):
[25-Jun-2016 17:37:04.267] [DEBUG] Beacon host 195.13.231.157 added
[25-Jun-2016 17:37:04.267] [DEBUG] Beacon host 8.8.8.8 added
[25-Jun-2016 17:37:04.267] [DEBUG] Beacon poller thread started

Host configuration: "google.com,8.8.8.8"

What version do you use? May it happen that there were some DNS problems?