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 - Alex Kirhenshtein

#391
Thank you.

Can you please specify license (GPL, MIT, Public domain) - I'll include it into official packages repository.
#392
Добавье DCI на этих фантомных  нодах:
  Origin=Internal
  Name=Dummy
  Transformation script="return 0;"
  Other options->включить "Use this DCI for node status calculation"
#393
Проверьте в настройках сервера параметр CheckTrustedNodes, он должен быть выставлен в 0
#394
Такие DCI можно (и нужно) создавать при помощи Instance Discovery, по списку интерфейсов.
График - да, надо будет скриптом.
Альтернативный вариант - включить дял этих DCI опцию Show in performance tab, тогда они автоматом будут появляться в закладке "Performance" на объекте.
#395
Добавьте threshold с функцией "Collection Error" - получите событие, которе можно как-то обработать.

MIB Browser никак не относится к тому, что возвращает устройство - это просто база соответсвий текста на OID.

Проверяйте при помощи nxsnmpget (и nxsnmpwalk). Если возвращает ошибку, хотя точно должно работать - попробуйте любую другую имплементацию SNMP клиента (например Net-SNMP).

Пример:
nxsnmpget DEVICE_IP .1.3.6.1.2.1.31.1.1.1.10.584
#396
Сейчас нет возможности раздавать права на уровне метрик (тут вообще много открытых вопрос - например что делать с событиями).
Обходной путь - сделать дополнительный  ноды для каждой ноды с IP=0.0.0.0, на них настроить нужные метрики, и для каждой метрики прописать Source Node=реальный хост. где собираются значениия датчиков.
#397
Создания графика на основе чего? Что хочется получить?
#398
General Support / Re: LVM_PV_STATE_NOT_ACTIVE event
September 19, 2016, 01:34:03 PM
That's event from bundled AIX template for LVM monitoring.

                <event id="100010">
                        <name>LVM_PV_STATE_NOT_ACTIVE</name>
                        <guid>ca8e1035-16cc-4c1d-a530-5900d44ba52c</guid>
                        <code>100010</code>
                        <severity>3</severity>
                        <flags>1</flags>
                        <message>Physical volume %6 is in %4 state</message>
                        <description></description>
                </event>

Event is fired when LVM.PhysicalVolume.Status({instance}) is not equal "active" for five samples.

                                        <name>LVM.PhysicalVolume.Status({instance})</name>
                                        <description>LVM: status of physical volume {instance}</description>

All DCIs should be created automatically using instance discovery - check why instance name is empty.
#399
General Support / Re: Monitor memory usage per user
September 13, 2016, 07:59:43 PM
No, there are no such functionality at the moment
#400
In threshold configuration:
number of samples=5
function: diff
value: 0
#401
General Support / Re: Custom scripts
September 06, 2016, 01:47:51 AM
One of the forum members started similar topic in Russian part of the forum: https://www.netxms.org/forum/oe-oo/em-ktam-4586/

However I think it's more convenient to keep these samples in Wiki.
#402
can you please provide result of tcpdump running inside container (during failed attempt with encryption)?
#403
General Support / Re: ZeroMQ
August 23, 2016, 06:10:18 PM
Hello.

It was developed for internal use (for integration with existing customer system) - it allows you to subscribe for node/container events and data collection values.
I think that REST API for subscription management is not public right now.


update: actually you can manage it using java API (using nxshell, for example):

public void updateZmqEventSubscription(long objectId, long dciId, boolean subscribe) throws IOException, NXCException;
public void updateZmqDataSubscription(long objectId, long dciId, boolean subscribe) throws IOException, NXCException;
public List<ZmqSubscription> getZmqSubscriptions(ZmqSubscriptionType type) throws IOException, NXCException;


You need to set "ZeroMQEndpoint" in server's configuration (standard ZeroMQ notation, server use ZMQ_PUSH socket for communications).
#404
Общие вопросы / Re: Segfault
August 22, 2016, 09:19:14 PM
Спасибо, будем смотреть.
Я удалил пока дамп из сообщения.
#405
Like any  pure-python library, just add it to search path.

mkdir c:\tmp
cd c:\tmp
git clone git://github.com/kennethreitz/requests.git
java -jar nxshell-2.0.5.jar
Server IP [127.0.0.1]:
Login [admin]:
Password [netxms]:
NetXMS 2.0.5 Interactive Shell
>>> import requests
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named requests
>>> import sys
>>> sys.path.append('c:\\tmp\\requests')
>>> import requests
>>> r = requests.get('https://www.netxms.org/')
<Response [200]>
>>> r.status_code
200
>>> r.headers
{'Keep-Alive': 'timeout=15, max=100', 'Server': 'Apache/2.2.16 (Debian)', 'Connection': 'Keep-Alive', 'Date': 'Wed, 17 Aug 2016 14:06:34 GMT', 'Accept-Ranges': 'bytes', 'Content-Encoding': 'gzip', 'Vary': 'Accept-Encoding', 'Content-Length': '3237', 'Content-Type': 'text/html'}