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

#2116
Hi,

seems to be a bug in the code. What version you are using?

Best regards,
Victor
#2117
Hi,

seems that template was somehow removed from object structure but not deleted. Try to login with user system - most likely you will see that template in the root of object tree. Then you'll be able to delete it completely.

Best regards,
Victor
#2118
Hi,

please turn on agent crash dumps by adding to nxagentd.conf:

CreateCrashDumps = yes
DumpDirectory = some_path

and send crash dumps (if any) to [email protected]

Best regards,
Victor
#2119
Hi,

you have to add object access rights as well. They are assigned in object properties. You can also add your users to Admins group - it should have all object rights assignments already.

Best regards,
Victor
#2120
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
#2121
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
#2122
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
#2123
Yes, this is what zones are for. You can have overlapping IP addresses as long as they are in different zones.

Best regards,
Victor
#2124
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.
#2125
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
#2126
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
#2127
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
#2128
Добрый день!

А скрипт трансформации есть на DCI? Если да, то как он выглядит?
#2129
Попробуйте включить уровен дебага 6, дождаться появления дубликата, и прислать лог сервера (или найти в нем записи связанные с дублируючимися объектами).
#2130
Сервер выполняет такой 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;


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