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

#451
Update: %OBJECT_IP_ADDR% больше не поддерживается, вместо них - макросы как в Event Processing (%a). Список: https://wiki.netxms.org/wiki/UM:Event_Processing#Macros_for_Event_Processing
#452
Feature Requests / Re: Extra Tools
June 14, 2016, 01:03:21 PM
Update: %OBJECT_IP_ADDR% is now deprecated, use EPP macroses instead (%a). More: https://wiki.netxms.org/wiki/UM:Event_Processing#Macros_for_Event_Processing
#453
Макросов вида %OBJECT_IP_ADDR% больше не существует, вместо них можно использовать те же самые макросы, как в event processing (https://wiki.netxms.org/wiki/UM:Event_Processing#Macros_for_Event_Processing).
Используйте "%a".
#454
Все пакеты теперь подписаны MD5..SHA512
#455
General Support / Re: Reporting server
June 11, 2016, 02:30:26 PM
Sample report (+ source project for Jasper Studio) attached to this message.
To build resulting jar file you need Java and Apache Maven: "mvn package" will produce resulting jar in target/
#456
General Support / Re: Reporting server
June 10, 2016, 03:08:00 PM
1) Download https://www.netxms.org/download/reporting/netxms-reporting-server-2.0.4.zip
2) Unpack to any desired location (I'll use /opt/nxreporting)
3) Create folder for configuration: mkdir /opt/nxreporting.
4) Create configuration file /opt/nxreporting/conf/nxreporting.xml:

<config>
  <workspace>/opt/nxreporting/workspace</workspace>
    <netxmsdConfig>/etc/netxmsd.conf</netxmsdConfig>
    <smtp>
        <server>127.0.0.1</server>
        <from>[email protected]</from>
    </smtp>
    <netxms>
        <server>127.0.0.1</server>
        <login>admin</login>
        <password>netxms</password>
    </netxms>
</config>


Section "<netxms>" required only if you have java-based reports, not sql-based.

5) (optional) Create logger configuration /opt/nxreporting/conf/logback.xml:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    <file>/opt/nxreporting/log/nxreporting</file>

    <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
      <fileNamePattern>/opt/nxreporting/log/nxreporting.%i.gz</fileNamePattern>
      <minIndex>1</minIndex>
      <maxIndex>5</maxIndex>
    </rollingPolicy>

    <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
      <maxFileSize>16MB</maxFileSize>
    </triggeringPolicy>
    <encoder>
      <pattern>%d %5p | %t | %-55logger{55} | %m %n</pattern>
    </encoder>
  </appender>

    <appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>%d %5p | %t | %-55logger{55} | %m %n</pattern>
        </encoder>
    </appender>

    <logger name="com.radensolutions" level="debug" />
    <logger name="com.radensolutions.reporting.infrastructure.impl.TcpConnector" level="error" />

    <root level="DEBUG">
        <appender-ref ref="CONSOLE"/>
        <!--<appender-ref ref="FILE"/>-->
    </root>
</configuration>


More info: http://logback.qos.ch/manual/configuration.html

6) Create folder for workspace and copy some definitions:

mkdir -p /opt/nxreporting/workspace/definitions
cp ldz-alarm-resolution-time-1.0.0.jar /opt/nxreporting/workspace/definitions/

7)  Enable reporting server connector, set EnableReportingServer to 1 (either in GUI - server configuration, or using command line: "nxdbmgr set EnableReportingServer 1"), then restart netxmsd.
8) Create additional tables by executing both scripts from https://git.netxms.org/public/netxms.git/tree/refs/heads/develop:/src/java/nxreporting/sql
9) Start reporting server: cd /opt/nxreporting/ && java -jar nxreporting-2.0.4.jar


In under 10 seconds, netxmsd should connect to reporting server and list of available reports will be visible in "Reporting" perspective.

Final layout of the file system:

/opt/nxreporting/conf/logback.xml
/opt/nxreporting/conf/nxreporting.xml
/opt/nxreporting/lib/*.jar
/opt/nxreporting/reporting-server-2.0.4.jar
/opt/nxreporting/workspace/definitions/ldz-alarm-resolution-time-1.0.0.jar
#457
Please start netxmsd with debuglevel=9 and provide log (you can send it to [email protected]).
#458
Announcements / Follow us on Facebook and Twitter
June 07, 2016, 07:46:12 PM
Hello, everyone.

We post all project-related news (and sometimes a bit more - but we don't abuse!) to all major social networks: Facebook and Twitter.

Please follow us there!
#459
Modify /etc/init.d/netxmsd, add "mysqld" to "Required-Start" section.
#460
Announcements / Telegram group
June 07, 2016, 06:22:31 PM
Hello.

We are evaluating new support channels, and now it's time for Telegram.
Join as at https://telegram.me/netxms.

Updated 07.08.2017:
Join Russian speaking group at https://telegram.me/netxms_ru.
#461
General Support / Re: OpenWRT Agent
June 03, 2016, 08:34:55 PM
I don't have build environment right now to check, but I'm pretty much sure I used  15.05.
You are using feed from https://github.com/netxms/openwrt-feed?
#462
Да, на этой неделе будет обновлен репозиторий.
#463
Как вариант - формировать сообщение (или его часть) скриптом (%[script_name] в тексте).

Другой вариант - настроить разные actions (с дополнительным текстом) для этих нод в EPP:

1:
Src=node1, node2, Container1
Event=SYS_IF_DOWN
Action=email critical
2:
Src=NOT (node1, node2, Container1)
Event=SYS_IF_DOWN
Action=email

Или:
1:
Src=node1, node2, Container1
Event=SYS_IF_DOWN
Action=email critical
Stop processing
2:
Event=SYS_IF_DOWN
Action=email
#465
Hello.

I found a few mentions of similar issue on google, but no definite answer how to fix it (or what cause that).
I'd suggest: completely restart tomcat (if hot deploy was used), upgrade jdk, change JDK vendor (e.g. openjdk -> oracle jdk)