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

#2521
General Support / Re: UseInterfaceAliases
May 27, 2016, 06:19:23 PM
For processing SYS_IF_DOWN/SYS_IF_UP events script could be easier, because you have interface index as fifth parameter:


iface = GetInterfaceObject($node, $event->parameters[5]);
return (iface != null) ? iface->alias : "no info";


Best regards,
Victor
#2522
General Support / Re: Netxms macro for instance??
May 27, 2016, 06:13:21 PM
Hi,

do you have "instance" field actually filled for DCI (it is on "Thresholds" tab in DCI properties)?

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

так точно не должно быть. Покажите пожалуйста детальную информацию по продублировавшимся устройствам - скриншот overview для обеих копий, и скриншот закладки Interfaces для обеих копий.
#2524
Hi,

server will re-send SMS if driver returns failure. You should see messages like "Failed to send SMS (will retry)" in server's log on debug level 3 and higher. Because SMS is actually sent, most likely agent for some reason cannot get final OK from modem and so considers SMS sending as failure. You can confirm this by setting debug level on agent to 5 and looking for lines starting with text "SMS:".

Best regards,
Victor
#2525
General Support / Re: netxmsd segmentation faults
May 27, 2016, 10:26:27 AM
Template seems normal, nothing unusual. Even if agent returns texts in some fields server should handle it correctly. There were some fixes in 2.0.4, you can try to re-enable this template when 2.0.4 will be available. If it will not help, then the only way to debug issue will be to run netxmsd under debugger and wait for crash.

Best regards,
Victor
#2526
Hi,

error 4 is general communication error, and error 17 is SNMP engine ID mismatch. Does this problematic gateway use SNMP version 3? Could you please capture SNMP traffic between NetXMS server and gateway during unsuccessful status poll?

Best regards,
Victor
#2527
Hi,

it seems that server is started on OS boot and then stopped. One possible reason could be that it started before database is ready, so it cannot access database and exits. Can you please set debug level to 9 (by adding DebugLevel=9 to netxmsd.conf), restart the system, and post server's log file?

Best regards,
Victor
#2528
General Support / Re: UseInterfaceAliases
May 27, 2016, 09:43:27 AM
Hi,

you can do that using scripts - interface object has attribute "alias". To get interface object you can use function GetInterfaceObject if you know interface index or walk through all node interfaces using GetNodeInterfaces function and iterate through it's results.

Best regards,
Victor
#2529
No, origin need to be "NetXMS agent". Yes, this is the main reason why agent needs SQLite. Usually no additional configuration required, agent will create local database in reasonable location ($install_prefix/var/lib/netxms if built from sources, /var/lib/netxms if installed from deb package).
There is a bug in 2.0.3 (fixed in 2.0.4) that cached mode actually works only for servers listed as MasterServers in agent configuration.

Best regards,
Victor
#2530
General Support / Re: Netxms macro for instance??
May 27, 2016, 09:34:58 AM
Hi,

for threshold violation event it is %6 (or %<instance>). Are you sure you generate email from event related to threshoold?

Best regards,
Victor
#2531
General Support / Re: Disable DCI in script?
May 24, 2016, 06:09:38 PM
Hi,

currently it's not possible. You only can bulk enable/disable DCIs using nxshell scripts.

Best regards,
Victor
#2532
Hi,

in fact export file is just SQLite database. Try to run nxdbmgr import giving your database file as input.

Best regards,
Victor
#2533
Hi,

all mentioned points definitely worth fixing/implementing. What you call "conditions" will definitely be complicated, while rest seems to be relatively easy to implement. I'll try to schedule it for next releases.

Best regards,
Victor
#2534
General Support / Re: Port check on node add
May 24, 2016, 05:53:50 PM
Hi,

you can use portcheck subagent on management server. In the script you can use FindObject function to find management server node, then use AgentReadParameter to check status of a port using ServiceCheck.Custom parameter. For example:


mgmt = FindObject("netxms");
status = AgentReadParameter(mgmt, "ServiceCheck.Custom(" . $node->ipAddr . ",23)");
if (status == 0)
{
    // Port 23 open, do something
}


this script will check if port 23 is open on current node.

Best regards,
Victor
#2535
Windows / Re: Agent development - best-practice
May 24, 2016, 05:38:16 PM
Hi,

you best bet is to take any existing subagent as an example and ask questions here (src/agent/subagents/ecs for example - it is very simple subagent and structure should be easy to understand). You can also purchase training and/or support for your developers from Raden Solutions if you need premium support.

Best regards,
Victor