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 - DanG

#61
General Support / Re: Windows Events logging
November 16, 2011, 03:07:32 PM
Hi,

Glad this had been solved. :)

I have a related question to syslog events. I can pass params of matching regex defined in the parser <match>...</match> section.
I'd like to pass the event ID as an additional parameter so I can test on it in the Event Processing Policy, Is there a way to do this?

Regards,

Dan
#62
General Support / Re: Windows Events logging
November 16, 2011, 10:31:49 AM
Hi,

Followed your instruction, with 1.1.6.2 everything works smoothly:

[16-Nov-2011 09:05:58] LogWatch: publisher name is test
[16-Nov-2011 09:05:58] Match event: source="test" id=100 level=1 text="testing"
[16-Nov-2011 09:05:58] checking rule 1 ""
[16-Nov-2011 09:05:58]   rule has no context
[16-Nov-2011 09:05:58]   matching against regexp (.*)
[16-Nov-2011 09:05:58]   matched
[16-Nov-2011 09:05:58] SendTrap(): event_code=100010, num_args=1, arg[0]="testing" arg[1]="(null)" arg[2]="(null)"
[16-Nov-2011 09:05:58] rule 1 "" matched

I then reverted to the 1.1.6 agent, now I receive the error again:

[16-Nov-2011 09:16:28] LogWatch: publisher name is test
[16-Nov-2011 09:16:28] LogWatch: Call to EvtFormatMessage failed: The specified resource language ID cannot be found in the image file.

I went on and installed the original 1.1.6 agent in a separate directory.
This returns the above error as well

So it seems something in 1.1.6.2 solves the problem, hopefully you know what this is.

Regards,

Dan
#63
General Support / Re: Windows Events logging
November 15, 2011, 04:31:58 PM
Hi Victor

The test that resulted with the error was done on the same server where NetXMS runs on.
I upgraded it to 1.1.6., after which the error is still there – this is expected.
May I install the debug Agent on top of the server? Can I revert should something go wrong?

BTW, I did another test with the Agent on a different server (Win 2008 64x, v. 1.1.5 and 1.1.6) without any problems. Go figure...

Regards,
Dan
#64
General Support / Re: Windows Events logging
November 10, 2011, 11:31:52 AM
Hi Victor,

I've noticed 1.1.6 is out, does it address the above mentioned problem?

Regards,
Dan
#65
General Support / Re: List of IP's
October 04, 2011, 11:55:52 AM
Hi Alex,

I followed your steps and was able to import the report and open it.
Executing it was successful. when I then try to Render it to PDF I get the "Save File" dialog, but after clicking the Save button I receive the following error:
Cannot render report IP List job 1: Input/Output error

Any clue?

Regards,

Dan
#66
General Support / Re: List of IP's
October 03, 2011, 11:47:51 PM
Hi Alex,

Thank you for the SQL query, it works fine.
I'm afraid the url to the Java report generator returns 404.
Another question, which JDBCDriver should I use for MsSql?

Regards,

Dan
#67
General Support / List of IP's
October 03, 2011, 02:58:58 PM
Hi,

Is there a way to produce a repport with all IP's discoverd by NetXMS?

Regards,

Dan
#68
Hi,

I thought I could avoid examining the log file by adding a a custom attribute on the Condition object and set is within the script

The following line:
SetCustomAttribute($node,"MaxTimeDeviation",maxDeviation);
returns the following error:
Failed to execute evaluation script for condition object 1234 "TimeDeviation": Error 14 in line 13: Left argument of -> must be a reference to object

Using the following test line gives the same error:
SetCustomAttribute($node,"MaxTimeDeviation","test");

What am I doing wrong?

Regards,

Dan
#69
Feature Requests / Re: Windows Registry
October 03, 2011, 10:51:37 AM
Hi Victor,

Don't worry about it, it can happen to all of us :-)
BTW, you suggested I could test an Event Log related error by providing me a debug version for me to use. If you can provide me with information to where I can grab it, I would be more than happy to test is.

Regards,

Dan
#70
Feature Requests / Re: Windows Registry
October 02, 2011, 11:01:11 AM
Hi,

After upgrading to 1.1.5 I don't see a DCI for registry inquiry. WinNT and WinPerf and WMI subagent are loaded.
What am I doing wrong?

Regards,

Dan
#71
General Support / Re: UPS configuration
October 02, 2011, 12:40:16 AM
Hi,

After installing Agent 1.1.5 and using the new extended syntax the NetXMS recognizes the UPS. DCI works nicely.

Thank you!

Regards,

Dan
#72
Hi Victor,

I set the schedule to * * * * * and up to now receive derivation of a second. Having a two second tolerance is more than acceptable in my case.
Your other solution is indeed even better, it's just that while searching for a solution to the problem at hand I learned an interesting NetXMS feature that will without a doubt serve me in the future. Thanks!

Regards,

Dan
#73
Victor,
I upgraded to 1.1.5, this time with no problems. Great!

I set the new syntax for obtaining the values and it works.

In my specific case the result is not what I had expected. I use the DCI System.CurrentTime to get the time on several servers, As they're using NTP their time is within a few milliseconds of each other yet the my script calculates a different deviations each time (up to a minute apart). As the pooling interval of both DCI's was 60 seconds I guess this has to do with the moment NetXMS grabs the value from each of the servers. This bring me to the question of where is the condition object calculated, is it each time one of the DCI's in the list of DCI's of the condition object pool changes?
I changed to pooling interval to 10 seconds and the deviation got to under 10 seconds, I could set is to once every seconds which probably resolve the problem, however it will be using a lot of resources for just knowing if my servers are still in sync.
If I change the pooling to custom schedule, will they be pooled on the same time?

Using the condition object for the first time, I've noticed it behaves differently than a DCI. Would it not be better to make it closer to a DCI? It retains the "Data tab" where one set the different DCI's to be used, the "script tab" should allow calculate any type of  value, a "Thresholds tab" where triggers can be set. This will also allow to have historical result with "last value" and the ability to draw graphs (in my case the max deviation of the time on the severs)

Regards,

Dan
#74
Victor,

I wanted to ask when 1.1.5 will be released, but noticed it was released today (JIT).
I'll upgrade and try again. Thanks.

Regards,

Dan
#75
Victor

My script above was mistyped (sorry), the script on the server has the same text as your suggestion.

The error returned is for following line:
for(i=0; $values != null; i++)

Could it be something else?

Dan