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

#2161
Hi,

you can use instance filter script to modify instance itself or just instance name. For example, if you instance is two numbers connected with dot you can use the following filter script:


instance = $1;
if ($1 ~= "[0-9]+\\.([0-9]+)")
{
   return %(true, instance, $1);
}
return true;


This script will keep instance as is (i.e. 4.2) but set instance name to second number (i.e. 2). You can then use {instance-name} in description to insert updated display name.

Best regards,
Victor
#2162
Hi,

alarms are grouped based on alarm key - if alarm with same key already exist when new alarm is generated new alarm will replace existing alarm and increase repeat count. Make sure you have meaningful alarm keys (or empty keys to disable alarm matching).

Best regards,
Victor
#2163
General Support / Re: agent-to-server connections
April 09, 2017, 12:19:43 PM
Hi,

this is short configuration instruction: https://wiki.netxms.org/wiki/How_to_configure_agent_to_server_connection

Best regards,
Victor
#2164
Yes, this is what zones are for. You can have overlapping IP addresses as long as they are in different zones.

Best regards,
Victor
#2165
General Support / Re: 2.1M3 Mqtt support
April 07, 2017, 09:41:03 AM
P.S. You can also use Port, Login, and Password parameters in broker section.
#2166
General Support / Re: 2.1M3 Mqtt support
April 07, 2017, 09:39:32 AM
Hi,

currently agent can connect to broker and pass published data to server as events or provide additional metrics with received data. You can connect multiple brokers to one agent. For each broker you should create section named MQTT/Broker/broker_name where you'll define broker hostname using Hostname parameter. Then you can use sections MQTT/Broker/broker_name/Events and MQTT/Broker/broker_name/Metrics to map receiving data to events and metrics.

Example MQTT subagent configuration:


SubAgent = mqtt.nsm

[MQTT/Brokers/Office]
Hostname = mqtt.office.radensolutions.com

[MQTT/Brokers/Office/Events]
MQTT_METERHUB_RAW_DATA = "cmnd/5C:CF:7F:25:79:D6/#"

[MQTT/Brokers/Office/Metrics]
MeterHub.Telemetry.RSSI = "tele/5C:CF:7F:25:79:D6/RSSI"
MeterHub.Telemetry.Time = "tele/5C:CF:7F:25:79:D6/TIME"


here agent will subscribe to one broker at address mqtt.office.radensolutions.com, will generate event MQTT_METERHUB_RAW_DATA for each message matching pattern cmnd/5C:CF:7F:25:79:D6/#, and provide two additional metrics MeterHub.Telemetry.RSSI and MeterHub.Telemetry.Time.

Best regards,
Victor
#2167
Hi,

as far as I can tell your schedule is not valid cron expression. As stated on web site "Generated expressions are based on Quartz cron format". NetXMS supports subset of UNIX cron format (see here for example: https://en.wikipedia.org/wiki/Cron#Modern_versions). It only supports *, /, -, L, and lists. Try to change your schedule to


30 23 * * 1-5


Best regards,
Victor
#2168
Hi,

you are using assignment operator (=) instead of equals operator (==). This script will work:



if ($1 == 1000000000)
return "1 Gbps";
if ($1 == 100000000)
return "100 Mbps";
if ($1 == 10000000)
return "10 Mbps";


Or you can simplify it a bit to


switch($1)
{
   case 1000000000: return "1 Gbps";
   case 100000000: return "100 Mbps";
   case 10000000: return "10 Mbps";
}


Best regards,
Victor
#2169
Добрый день!

А скрипт трансформации есть на DCI? Если да, то как он выглядит?
#2170
Попробуйте включить уровен дебага 6, дождаться появления дубликата, и прислать лог сервера (или найти в нем записи связанные с дублируючимися объектами).
#2171
Сервер выполняет такой SQL запрос для получения связанных событий по аларму:


SELECT event_id,event_code,event_name,severity,source_object_id,event_timestamp,message FROM alarm_events WHERE alarm_id=? ORDER BY event_timestamp DESC LIMIT 200;


и для каждого полученного события


SELECT e.event_id,e.event_code,c.event_name,e.event_severity,e.event_source,e.event_timestamp,e.event_message
FROM event_log e,event_cfg c WHERE e.root_event_id=? AND c.event_code=e.event_code;


можете попробовать выполнить такие запросы вручную и проверить насколько быстро они выполняются? И если медленно, то почему?
#2172
Hi,

starting with 2.1-M3 we have added integration with Grafana visualization tool. It is not PNG as you wanted, but still can be used to provide web UI for seeing graphs without actually giving access to NetXMS.

Best regards,
Victor
#2173
General Support / Re: Agent Screenshot
April 03, 2017, 11:37:43 AM
Hi,

currently screenshots defaulted to console session. We will add session selector in one of next versions.

Best regards,
Victor
#2174
Hi,

most likely that's because your JVM does not support AES-256, only AES-128. You may need to download and install "JCE Unlimited Strength Jurisdiction Policy Files" into your JVM.

Best regards,
Victor
#2175
Hi,

nxdbmgr supposed to be able yto handle upgrades from any version to current. You can try to run upgrade again, just make sure you check and fix all issues with DB before starting upgrade. If you are interested in paid support from Raden Solutions, just send me private message.

Best regards,
Victor