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

#1
General Support / Re: Deactivation Event - After x polls
November 06, 2023, 09:57:02 AM
Thank you very much Filipp!
I did not think/know about the different functions which are available for the threshold. 

I should get it to work with the information you gave me :) 

Kind Regards,
Mitch
#2
General Support / Deactivation Event - After x polls
October 31, 2023, 09:02:00 AM
Hello!

Currently we have a small issue with NetXMS resolving errors if it cannot poll a certain value.

For example: The value should be 0. If the value is 1, a error will be given. But if NetXMS cannot poll the value for 1 poll, the errors resolves.
I tried setting the samples to 3 in the hope that the error would also resolve after 3 tries, but this is not the case.

Activation Event - Will be given after 3 polls
Deactivation Event - Will be given after 1 poll


NetXMS is not able to execute a script because the file is probably open. Then NetXMS will "Resolve" the DCI and after 3 polls it will be activated again.
Is it possible to have the deactivation event also set to like 3 polls so that we don't get any "resolved" notifications if NetXMS is not able to get results from a script?

We are on version 4.1.420 over NetXMS Management Console.


Kind Regards,
Mitch
#3
This did the trick!

I changed my config to: ExternalParameter=Test:"cmd.exe "/C C:\PROGRA~1\Scripts\test.bat"" and now I have the result in my NetXMS Server :)


Thanks!
#4
Hi Filipp,

I don't think the ExternalParameterShellExec is compatible with Windows 2000. As soon as I add this to my agent config, the Server shows: Error
However the ExternalParameter should work as it is right now or not? Because the full path to the .bat file is mentioned in the config.
#5
Hello,

We are running NetXMS on a lot of our systems which are windows XP, Windows 7 and Windows Server 201x. The agent is running perfect on those systems and we created some specific powershell scripts which allows us to monitor specific service states and more.

We also have a lot of Windows 2000 systems on which we do not have installed the agent yet. This is what i'm currently testing, and we noticed that version 1.0.13 is still compatible with windows 2000. I installed this agent without any problem and our NetXMS server can "talk" with this system.

The problem I have now is that I want to create specific .bat files which check if a service is still running on the Windows 2000 system.
I have created the following .bat for this:


@ECHO OFF
sc query NetXMSAgentdw32 | find "RUNNING"
sc query NetXMSAgentdw32 | find "STOPPED"


and the .bat file returns the following:
STATE : 4 RUNNING

I would like to have this value to be returned in our NetXMS server so that I can set alarm thresholds.
I have changed the nxagentd.conf as follow:

ExternalParameter=Test:"Start C:\PROGRA~1\Scripts\test.bat"

Then I added the test to our Data Collection Configuration (See attachment).
But this returns an ERROR (See other attachment).
We would like / expect to have the result from the Batch inside of the Value so that we can set thresholds on this value.


Normally we use Powershell which works perfect. But we can't use that on the Windows 2000 systems since they don't support Powershell..


Is there a way to get the result from the .bat into our value field / did I make any mistakes in the nxagentd.conf?


-Mitch