News:

We really need your input in this questionnaire

Main Menu
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

#4516
Надо использовать параметр PDH.CounterValue, или в 1.2.7 поставить origin "windows performance counter" и указать нужный счетчик. В конфиге агента в этом случае прописывать ничего не надо.
#4517
Здесь похоже что какой-то другой процесс успел захватить порт 4700, на котором сидит агент, поэтому он и не стартует. Посмотрите, какой еще процесс может 4700 использовать, и если возможно поменяйте его настройки, или попробуйте поставить другой номер порта для NetXMS агента (параметр ListenPort в nxagentd.conf). Если меняется номер порта у агента, то надо не забыть в консоли монитринга в свойствх соответствующего объекта тоже его поменять.
#4518
Да, у многих в 1.2.7 такая проблема. В 1.2.8 должно быть исправлено.
#4519
General Support / Re: Web UI Server 2012
June 26, 2013, 04:14:16 PM
Hi!

Looks like port 8787 already used by some other program. Try to change port number when installing service.

Best regards,
Victor
#4520
Hi!

On my system, it looks like system library, located in /usr/lib:


tower:/# ldd /opt/netxms/bin/nxagentd
/opt/netxms/bin/nxagentd needs:
         /opt/netxms/lib/libnxdb.a(libnxdb.so.1)
         /opt/netxms/lib/libnetxms.a(libnetxms.so.1)
         /usr/lib/libxnet.a(shr_64.o)
         /usr/lib/libpthread.a(shr_xpg5_64.o)
         /usr/vacpp/lib/libC.a(shr_64.o)
         /usr/vacpp/lib/libC.a(ansi_64.o)
         /usr/lib/libc.a(shr_64.o)
         /opt/netxms/lib/libnxexpat.a(libnxexpat.so.1)
         /opt/netxms/lib/libnxtre.a(libnxtre.so.5)
         /usr/lib/libdl.a(shr_64.o)
         /usr/lib/libcrypto.a(libcrypto64.so.0.9.8)
         /usr/lib/libiconv.a(shr4_64.o)
         /usr/lib/libc.a(pse_64.o)
         /unix
         /usr/vacpp/lib/libC.a(shrcore_64.o)
         /usr/vacpp/lib/libC.a(ansicore_64.o)
         /usr/lib/libcrypt.a(shr_64.o)
         /usr/lib/libpthreads.a(shr_xpg5_64.o)


But it's AIX 5.3. Most likely your system has newer libcrypto.

Here is link to download /usr/lib/libcrypto.a from my system: https://www.dropbox.com/s/gxqodx91t0099oz/libcrypto.a.

Best regards,
Victor
#4521
Hi!

Do you configure DCI for ProvaExternal parameter? Can you run agent in debug mode and check if server requests this DCI and what happens with external script execution?

Best regards,
Victor
#4522
Hi!

Agent is built with prefix /opt/netxms, so path to internal libraries embedded in binary is /opt/netxms/lib. Try to set environment variable LIBPATH before running agent as following:

$ LIBPATH=/apps/TRUE/netxms/nxagent-1.2.7-aix5.3-ppc64/opt/netxms/lib:$LIBPATH
$ export LIBPATH
$ /apps/TRUE/netxms/nxagent-1.2.7-aix5.3-ppc64/opt/netxms/bin/nxagentd

or just run agent as following:

$ LIBPATH=/apps/TRUE/netxms/nxagent-1.2.7-aix5.3-ppc64/opt/netxms/lib /apps/TRUE/netxms/nxagent-1.2.7-aix5.3-ppc64/opt/netxms/bin/nxagentd

Because of different path, you may also need to load platform subagent manually. Add the following lines to nxagentd.conf:

EnableSubAgentAutoload = no
SubAgent = /apps/TRUE/netxms/nxagent-1.2.7-aix5.3-ppc64/opt/netxms/lib/netxms/aix.nsm


Best regards,
Victor
#4523
Попробуйте тип DCI поменять на Floating Point Number.
#4524
Значение instance берется не из самого параметра - это просто текст, занесенный в поле instance на страничке Thresholds в свойствах DCI.
#4525
General Support / Re: Instance Discovery questions
June 20, 2013, 12:33:25 PM
Just checked trace. I've created simple script:


for(i = 0; i <= 9; i++)
trace(i, "Trace at level " . i);


and run it on my test server console (with debug level set to 6). Output is as expected:


netxmsd: exec c:\temp\trace.nxsl
[20-Jun-2013 12:32:15.828] Trace at level 0
[20-Jun-2013 12:32:15.828] Trace at level 1
[20-Jun-2013 12:32:15.828] Trace at level 2
[20-Jun-2013 12:32:15.828] Trace at level 3
[20-Jun-2013 12:32:15.828] Trace at level 4
[20-Jun-2013 12:32:15.828] Trace at level 5
[20-Jun-2013 12:32:15.828] Trace at level 6
INFO: Script finished with rc=0

netxmsd:


Best regards,
Victor
#4526
General Support / Re: Custom Attributes
June 19, 2013, 12:40:16 PM
Hi!

You can create new empty template, open data collection configuration for existing one, select DCIs you want to copy to new template, right-click, select "Copy to other node...", and select new template object as destination.

You can modify templates using nxshell and Python scripts. Info about nxshell can be found here: http://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations, and Java API documentation is here: https://www.netxms.org/documentation/javadoc/latest/ (you call Java API from nxshell script).

Best regards,
Victor
#4527
Общие вопросы / Re: snmp v3 informs
June 18, 2013, 05:36:33 PM
На первый взгляд ответ кажется правильным. Буду читать RFC внимательно и сравнивать ответ сервера с тем, что должно быть по стандарту.
#4528
General Support / Re: Custom Attributes
June 18, 2013, 05:13:26 PM
Another possible option is to use script type macros in templates. For example, you can use macro like

%{script:SelectOID}

instead of actual OID in template, and create script called [n]SelectOID[/b] in script library, which will return correct OID for given node. This script will have $node variable set, so it can get any information about the node.

For example:


if ($node->snmpOID like ".1.3.6.1.4.1.11.*")
   return ".1.3.6.1.4.1.11.2.3.4.5.6.7.8.0";
return return ".1.3.6.1.2.1.1.1.0";


Not sure if this will be easier then configuring separate templates...

Best regards,
Victor
#4529
General Support / Re: Custom Attributes
June 18, 2013, 04:59:52 PM
Hi!

Custom attributes are attached to the object. Template only handles data collection configuration, custom attributes will not be copied. Custom attributes was designed to store object-specific attributes, and often used by integration tools or scripts. For data collection it is usually enough to create different templates for different vendors/models.

Best regards,
Victor
#4530
Мистика какая-то. Connection from 192.168.3.3 rejected означает что 192.168.3.3 не прописан в конфиге в MasterServers. Для теста, попробуйте в конфиге добавить MasterServers = 0.0.0.0/0 - тогда агент должен любые соединения принимать.