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

#1
I checked the agent log and after invreasing the debug level to 7; found thi. Maybe it can help identify the reason:
2023.12.13 13:02:47.458 *D* [comm.cs.1          ] Requesting metric "RegQuery.EBTransfer720"
2023.12.13 13:02:47.458 *D* [comm.cs.1          ] H_ExternalMetric called for "RegQuery.EBTransfer720" ""D:\Program Files\NetXMSAgent\custom\CheckRegKey\CheckRegKey.exe" "HKLM\SOFTWARE\WOW6432Node\Aucotec\Engineering Base\7.2.0\Server\Files" "ImageFilePath""
2023.12.13 13:02:47.458 *D* [exec              ] RunExternal called for "RegQuery.EBTransfer720" ""D:\Program Files\NetXMSAgent\custom\CheckRegKey\CheckRegKey.exe" "HKLM\SOFTWARE\WOW6432Node\Aucotec\Engineering Base\7.2.0\Server\Files" "ImageFilePath""
2023.12.13 13:02:47.458 *D* [exec              ] RunExternal: command line is ""D:\Program Files\NetXMSAgent\custom\CheckRegKey\CheckRegKey.exe" "HKLM\SOFTWARE\WOW6432Node\Aucotec\Engineering Base\7.2.0\Server\Files" "ImageFilePath""
2023.12.13 13:02:47.473 *D* [procexec.13        ] ProcessExecutor::executeWithOutput(): process "CMD.EXE /C "D:\Program Files\NetXMSAgent\custom\CheckRegKey\CheckRegKey.exe" "HKLM\SOFTWARE\WOW6432Node\Aucotec\Engineering Base\7.2.0\Server\Files" "ImageFilePath"" started (PID=14800)
2023.12.13 13:02:47.739 *D* [procexec.13        ] ProcessExecutor::readOutput(): stopped on GetOverlappedResult (The pipe has been ended.)
2023.12.13 13:02:47.739 *D* [procexec.13        ] ProcessExecutor::stop(): cannot terminate process (Access is denied.)
2023.12.13 13:02:47.739 *D* [comm.cs.1          ] GetMetricValue("RegQuery.EBTransfer720"): 0 (SUCCESS) value = "'D:\Program' is not recognized as an internal or external command,"
2023.12.13 13:02:47.739 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 3839; size 112; uncompressed)


To me it looks like Net XMS is adding a CMD.EXE /C before my command, witch I don't understand. Shoudn't this be only the case if I use ExternalMetricShellExec?
#2
Hi,
I updated our NetXMS installation from 4.2 to 4.4.5 today and have a problem with getting values from ExternalParameter.

I used the following line in 4.2 to get the value of a registry key:
ExternalParameter=RegQuery.EBTransfer720:"D:\Program Files\NetXMSAgent\custom\CheckRegKey\CheckRegKey.exe" "HKLM\SOFTWARE\WOW6432Node\Aucotec\Engineering Base\7.2.0\Server\Files" "ImageFilePath"

After update the showed the following in value:
'D:\Program' is not recognized as an internal or external command

After some reading I found that  ExternalParameter is replaced by ExternalMetric,
so I tried:

ExternalMetric=RegQuery.EBTransfer720:"D:\Program Files\NetXMS\custom\CheckRegKey\CheckRegKey.exe" "HKLM\SOFTWARE\WOW6432Node\Aucotec\Engineering Base\7.2.0\Server\Files" "ImageFilePath"
But the result us the same:  'D:\Program' is not recognized as an internal or external command

Any idea what could be the reason?

Regards

Stefan
#3
Is this meanwhile implemented? If not, what is the easy workaround?

Best regards

Stefan
#4
General Support / Best way to check if a file exists
November 16, 2022, 01:29:34 PM
Hi,
I want to raise an alarm in case an outdated Office dll exists.
The path of the file is
C:\Program Files (x86)\Common Files\microsoft shared\OFFICE11\mso.dll

At the moment I use this File.Count DCI:
File.Count("C:\Program Files (x86)\Common Files\microsoft shared\OFFICE11","mso.dll",0,0)

As long as the OFFICE11 folder exists this works fine, but if the folder doesn't exist it returns an error.

I can't count recursive from  \microsoft shared\  for mso.dll as there is a OFFICE16 folder below it containing a mso.dll as well.

Regards

Stefan
#5
Hi,

right clicking on the axis works! Thanks a lot.

Regards

Stefan
#6
Hi,
does anybody else have the problem that the context menu in the Dashboards is not working anymore?
In older versions I could define a timespan by right clicking on a graph when the interactive option was set.
I'm on 4.0.2227 and right clicking on a graph does nothing.
Left click and marking an area works.

Do I miss something that changed in this version?

Regards

Stefan
#7
General Support / Re: FileMgr subagent access denied
April 05, 2022, 09:28:34 AM
That fixed it! Thanks a lot.

Regards

Stefan
#8
General Support / FileMgr subagent access denied
March 30, 2022, 10:45:08 AM
Hi,

in my Agents configuration file, I added the NetXMS Agent folder to the filemgr section like this:
*FILEMGR
RootFolder = D:\Program Files\NetXMS # read/write access


It basically works. In the console I can see now the defined folder using the File Manager. (see screenshot)
But when I try to show or download a file, I always get an Access Denied error.

I tried runnning the agent as Local System (default as far as I know), and as an account who is member of the Adminitrator group.

Any idea what the problem could be?

Regards

Stefan
#9
General Support / Re: Threshold with if clause?
March 28, 2022, 11:35:11 AM
Thank You.
#10
General Support / Threshold with if clause?
March 24, 2022, 10:38:20 AM
Hi,
I have the following problem. I need to monitor a folder for changes. I do this by using a File.Size DCI and comparing the size of the folder with the previous read size. The DCI runs every hour. If the size is the same, it's a sign that our process has a problem.
My problem now is, that the folder can be empty for long time and this is totally ok. How can I tell a threshold not to fire an alarm if the value is zero?

Regards

Stefan
#11
Any idea? Do You need more informations?

Best regards

Stefan
#12
Hi,

the alarms are back, so the Cofiguration Poll had no effect. So I think it's the "isLocalManagement flag".
If I understand You right, is has to be true if this is the active NetXMS server. How can I set it to true?.

Regards

Stefan
#13
Hi Alex,
thanks for Your reply.

Here are my answers:
1) It is the active server (we only have one)
2) I think no. The command returns false. Please see the attache screenshot.
3) I did the poll today, let's see if the alarms come back tomorrow

Some additional info that I think might help.
- After terminating the alarms they come back the next day.
- In addition to the update, the NetXMS installation was moved to a new server.

Best regards

Stefan
#14
Hi,

after updating NetXMS to the latest version, I get a lot of alarms because of unsupported DCIs (see attachment 1).
I had this once in the past and was able to fix this by setting the "ImportConfigurationOnStartup" setting to always. This time it doesn't help.
Any suggestions?

Best regards

Stefan
#15
General Support / Re: WebUI questions
July 05, 2021, 10:18:02 AM
HI,

thanks a lot. I'm a big step further now. The fullscreen-dashboard is a really useful option.

Now there is only one thing I can't get working. I see the Dashboard but its not displaying any values.
The user 'EB' has read access on the dashboard and on the objects referenced in it.
I attached some screenshots showing the configuration and the result.
As soon as I add the 'EB' user to the admins group it works.

Any idea?