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

#2911
Hi,

what NetXMS version you are using?

Best regards,
Victor
#2912
General Support / Re: Not polling
September 22, 2015, 12:01:17 AM
Hi,

operation and value are ignored for data collection error thresholds.

Best regards,
Victor
#2913
Hi,

what version of agent you are running and on what OS? Could you run agent for some time with debug level 6 and send me log file?

Best regards,
Victor

#2914
General Support / Re: Upgrade server?
September 21, 2015, 11:51:34 PM
Hi,

in most cases it is hold by mmc.exe because it contains message catalog that is used by event log viewer. Try to ensure that all mmc instances (or any other process that possibly reading event log) are stopped.

Best regards,
Victor
#2915
General Support / Re: Failing install at create database
September 21, 2015, 11:49:14 PM
Hi,

try to create database and user for NetXMS using MySQL management tools and in server installer select "use existing database" and specify user and database you created.

Best regards,
Victor
#2916
General Support / Re: Network Service vs ServiceCheck.SMTP
September 21, 2015, 11:47:21 PM
Hi,

for monitoring network service object server just reads ServiceCheck.* parameters from appropriate node, so basically there are no difference in monitoring method, only in result presentation. For SMTP check you should enter valid email address in request field, response is ignored. Checker will try to send email to that address.

Best regards,
Victor
#2917
Hi,

I really recommend you to upgrade to 2.0. RC1 is quite stable, and we will roll out RC2 soon which should be even better. Upgrade procedure is the same as from 1.2.16 to 1.2.17, and you can upgrade directly to 2.0-RC1 or higher.

Best regards,
Victor
#2918
General Support / Re: Duplicated Objects in 2.0-RC1
September 21, 2015, 11:42:25 PM
Hi,

you mean you getting two nodes - one with old IP and one with new IP? Server is supposed to detect IP change by MAC address, but if node does not support SNMP server can rely only on switch forwarding databases. Does server has access to switches where all those nodes are connected? Are MAC addresses correctly detected for non-SNMP nodes?

Best regards,
Victor
#2919
General Support / Re: DCI Database errors
September 21, 2015, 11:39:32 PM
Hi,

do you have any messages in server log started with "SQL query failed"?

Best regards,
Victor
#2920
Hi,

from the trace I see that server is blocked on reading one of Service.Check(...) parameters (and I see there are lot of them) which probably takes some time to complete. As DCI is locked when it is being polled, when item poller thread attempts to access this DCI it locks, and so watchdog warning is triggered.
Actually new feature called "agent side DCI cache" introduced in 2.0-RC1 can help - you can turn on agent cache for those DCIs (or all DCIs). This will switch then from polling mode to push mode, thus eliminating long locks on server side.

Best regards,
Victor
#2921
Only direct parents are examined. Recursive script could looks like this:


rcpt = GetRecipients($node);
return (rcpt != null) ? rcpt : "default@email";  // fallback email if nothing was set in containers

sub GetRecipients(obj)
{
    rcpt = GetCustomAttribute(obj, "recipients");
    if (rcpt != null)
return rcpt;
    foreach(p : GetObjectParents(obj))
    {
        rcpt = GetRecipients(p);
  if (rcpt != null)
return rcpt;
    }
    return null;
}


and if you want that any closest parent had higher priority:


rcpt = GetRecipients($node);
return (rcpt != null) ? rcpt : "default@email";  // fallback email if nothing was set in containers

sub GetRecipients(obj)
{
    foreach(p : GetObjectParents(obj))
    {
        rcpt = GetCustomAttribute(p, "recipients");
if (rcpt != null)
return rcpt;
    }
    foreach(p : GetObjectParents(obj))
    {
        rcpt = GetRecipients(p);
if (rcpt != null)
return rcpt;
    }
    return null;
}


Best regards,
Victor
#2922
Hi,

it's possible, but way is long :)

To be able to use value in charts, you have to create DCI. You receive events from log parser, and have to convert them into data in DCI. Easiest way is to create push DCI and script action, which will use PushDCIData function to push new value extracted from event. Then you can add this DCI to chart as usual.

Best regards,
Victor
#2923
Hi,

how script to extract recipients looks like?

Best regards,
Victor
#2924
General Support / Re: Not polling
September 11, 2015, 03:23:30 PM
Hi,

you can add threshold on data collection error - it should fire if server was unable to read data for any reason.

Best regards,
Victor
#2925
Hi,

when you encounter hang next time, could you please capture process state using following instruction?

1. Check netxmsd PID
2. Run

gdb netxmsd

(use full path if necessary). It will show (gdb) prompt.

3. Within gdb run

attach <netxmsd_pid>

it should show (gdb) prompt again.

4.  Run

thread apply all bt

and send me the output (could be quite long, so make sure you have adequate buffer length in terminal).

5. Run

detach

to detach from netxmsd and let it run.

Best regards,
Victor