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

#1006
Announcements / Re: NetXMS 1.2.0 released
April 24, 2012, 12:36:57 AM
Double checked it on clean Windows VM - there was bug installer.
Updated version will be available in next couple of minutes - it will fix requirement for JAVA_HOME (it's deprecated on Windows and should be used)

Quote from: Goriem on April 20, 2012, 03:15:23 PM
Finally got it to work, i was missing the JAVA_HOME path in my system settings for the OS
#1007
nxget -w 10 IP 'ATCTest.FXS.Count(...)'

где "10" - таймаут для nxget.

Про ExternalDataProvider я написал в вики: http://wiki.netxms.org/wiki/ExternalParametersProvider
В процессе написания обнаружилась бага, будет исправлена в 1.2.1 - или заменить src/agent/core/getparam.cpp на версию из SVN (https://svn.netxms.org/public/netxms/trunk/src/agent/core/getparam.cpp) и пересобрать агента.
#1008
Какие результаты дает nxget?

Я попробовал повторить у себя:

Alexs-MacBook-Air:~ alk$ cat /opt/netxms/etc/nxagentd.conf
MasterServers = 127.0.0.1
LogFile = /opt/netxms/var/log/nxagentd

ExecTimeout=10000

ExternalParameter=TEST(*):/tmp/test.sh $1 $2 $3
Alexs-MacBook-Air:~ alk$ cat /tmp/test.sh
#!/bin/sh

sleep 6
echo ok
Alexs-MacBook-Air:~ alk$ /opt/netxms/bin/nxget -w 10 localhost 'TEST(abc)'
ok


Плюс я очень не рекомендую использовать ExternalParameter, когда скрипт выполняется долго - для этого лучше подходит ExternalProvider. Я напишу пример конфигурации в вики и скину сюда линк.
#1009
Announcements / Re: NetXMS 1.2.0 released
April 20, 2012, 01:06:30 PM
There are two options:
1) When installing WebUI, select "JRE" option in installer
2) Install JRE from Oracle: http://www.oracle.com/technetwork/java/javase/downloads/jre-7u3-download-1501631.html

Quote from: Goriem on April 20, 2012, 10:07:34 AM
I have upgraded core server from 1.1 without problem, but when installing the new webservice webui it wont start, it states in teh log that it cannot find the jave jre enviroment:
#1010
General / Re: Management Console GTK Source
April 14, 2012, 06:16:04 PM
Sources are here: https://svn.netxms.org/public/src/java/netxms-eclipse, it's based on Eclipse RCP.
#1011
General Support / Re: what no webconsole win2003
March 26, 2012, 02:32:05 PM
Web interface included with current (1.0.13 and 1.1.10) installer is deprecated and will be replaced in next release.
You can download snapshot of new version here: https://www.netxms.org/download/webui/nxmc-1.1.10.war

To run this WAR you need to install any servlet container (Tomcat, Jetty, etc.) and deploy it into container.

For example: install Tomcat (http://mirrors.webhostinggeeks.com/apache/tomcat/tomcat-6/v6.0.35/bin/apache-tomcat-6.0.35.exe) as service, then copy WAR file into "webroot" folder inside Tomcat's installation directory.
After that web UI will be available at "http://localhost:8080/nxmc".

Right now I'm preparing standalone WebUI installer for upcoming release, so if you can wait couple of days - it will save you from hassle of installing and configuring servlet container on your own.
#1012
General Support / Re: Mac OS - NetXMS Console
February 22, 2012, 02:05:46 AM
I don't have access to my mac right now to check, but looks like nxmc-1.1.10.tar.gz is packaged incorrectly.
You can try do following:
* open Terminal.app
* cd to directory, where you unpacked nxmc (you can type "cd " and then drag folder from Finder to Terminal.app)
* run "chmod +x nxmc.app/Contents/MacOS/nxmc"


Invalid server version message means that we did some incompatible changes in communication protocol, for example you can't connect with management console from 1.1x.x branch to 1.0.x server.
#1013
Announcements / Re: NetXMS 1.1.10 released
February 15, 2012, 02:35:05 PM
Quote from: DanG on February 13, 2012, 02:25:06 PM
- Reports is still not working for me: Execute works, however when I try to render the result to PDF I receive the following error:
   'Rendering report' has encountered a problem. Cannot render report xxx job y: Input/Output error

I've fixed couple more issues with reporting, it will be included in 1.1.11.
In a meantime, please check couple of things:
1) netxmsd started with full path to netxmsd.conf (e.g. "netxmsd -c c:\netxms\etc\netxmsd.conf", not something like "netxmsd -c ..\etc\netxmsd.conf")
2) "JavaPath" parameter in netmxsd.conf should point to java executable (e.g. "JavaPath=C:\Java\jdk1.6.0_17.x86\bin\java.exe")
3) "JDBCDriver" should be set to appropriate driver (e.g. "JDBCDriver=org.postgresql.Driver"). Currently supported: org.postgresql.Driver, com.ibm.db2.jcc.DB2Driver, com.microsoft.sqlserver.jdbc.SQLServerDriver, com.mysql.jdbc.Driver and oracle.jdbc.OracleDriver.
4) "JDBCUrl" is set to proper jdbc connection string (e.g. "JDBCUrl=jdbc:postgresql://localhost/netxms")
5) "report-generator.jar" is in directory specified by "JavaLibraryDirectory" parameter. Default location (for windows build) is "c:\netxms\lib\java\"
#1014
Общие вопросы / Re: Reporting bug?
January 25, 2012, 05:54:03 PM
Отчеты сейчас требуют дополнительных шагов:

1) Скачать https://netxms.org/report-generator.jar (или собрать из trunk/src/java/report-generator/) и положить в любой каталог (в этом примере — /opt/netxms/java-lib/)
2) Добавить в конфиг примерно такое:JavaPath=/usr/bin/java
JavaLibraryDirectory=/opt/netxms/java-lib
JDBCDriver=org.postgresql.Driver
JDBCUrl=jdbc:postgresql://localhost/netxms


Логин/пароль используется из DBLogin/DBPassword.
#1015
Hi

I have no real experience with OpenDMK, but did a quick test and seems that integration should be like this:

1) make MIB file
2) generate java stubs using mibgen
3) implement these stubs to return real data
4) copy MIB file to ${prefix}/share/netxms/mibs (c:\NetXMS\var\mibs on Windows)
5) recompile all NetXMS MIBs:nxmibc -d /usr/share/netxms/mibs -o /usr/share/netxms/mibs/netxms.mib
6) restart management console, it should download updated netxms.mib from server
7) add your server to NetXMS
8) configure DCIs (set source to "SNMP Agent")
#1016
Check that netxmsd is not running, then run "nxdbmgr check", this will remove stale lock and also check database integrity.
#1017
Да, установка с DESTDIR была поломана некоторое время назад.
/trunk уже поправлен, 1.1.7 должен уже ставиться нормально.
#1018
Это старая проблема MySQL с utf-8, баг висит с 2004 года (http://bugs.mysql.com/bug.php?id=4541).

Можно попробовать так:

CREATE TABLE images
(
   guid varchar(36) not null,
   name varchar(255) not null,
   category varchar(255) not null,
   mimetype varchar(32) not null,
   protected integer default 0,
   PRIMARY KEY(guid),
   UNIQUE(`name`(165), `category`(165))
)
#1019
В выводе ldd не видно libnetxms.so, что странно.
Проверьте sha1 библиотеки:alk@normandy:~/deb$ sha1sum /usr/lib/libnsm_linux.so.0.0.0
ab272c256ffc9f88a1c85360ca9b02b09de18858  /usr/lib/libnsm_linux.so.0.0.0


Если sha1 отличается, то удалите все следы из системы и попробуйте поставить с нуля:

apt-get purge netxms-agent netxms-base
rm -i /usr/lib/libnxsqlite.so* /usr/lib/libnetxms.so* /usr/lib/libnsm_* /usr/lib/libnxlp.so* /usr/bin/nxagentd /usr/bin/nxcptest



Проверьте, что символ есть в библиотеке:
alk@normandy:~/deb$ nm /usr/lib/libnetxms.so|grep AgentWriteDebugLog
000000000000c600 T _Z18AgentWriteDebugLogiPKcz
000000000000c5a0 T _Z19AgentWriteDebugLog2iPKcP13__va_list_tag


И используется именно он:
alk@normandy:~/deb$ nm /usr/lib/libnsm_linux.so|grep AgentWriteDebugLog
                 U _Z18AgentWriteDebugLogiPKcz
#1020
General Support / Re: List of IP's
October 04, 2011, 02:27:59 AM
My bad, it should be https://netxms.org/report-generator.jar (or you can build it from svn: https://svn.netxms.org/public/netxms/trunk/src/java/report-generator)

I don't have MSSQL available right not to test, but connection string should be like jdbc:microsoft:sqlserver://server_name:port/dbname. Port (including colon) is optional, default value is 1433.

Also set JDBCDriver to "com.microsoft.sqlserver.jdbc.SQLServerDriver".