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

#196
General Support / Re: Agent upgrade fails
February 28, 2020, 08:43:45 AM
It seems that "nxagent-3.2.350-x64.exe" is uploaded to "var" but after that error "File transfer failed" is received.

Level 6 debug:
2020.02.28 08:23:55.327 *D* [comm.cs.2          ] Requesting parameter "System.PlatformName"
2020.02.28 08:23:55.327 *D* [comm.cs.2          ] Sending message CMD_REQUEST_COMPLETED (ID 3; size 56; uncompressed)
2020.02.28 08:23:55.329 *D* [comm.cs.2          ] Received message CMD_TRANSFER_FILE (4)
2020.02.28 08:23:55.329 *D* [comm.cs.2          ] CommSession::recvFile(): Preparing for receiving file "nxagent-3.2.350-x64.exe"
2020.02.28 08:23:55.329 *D* [comm.cs.2          ] CommSession::recvFile(): Writing to local file "C:\NetXMS\var\nxagent-3.2.350-x64.exe"
2020.02.28 08:23:55.332 *D* [comm.cs.2          ] Sending message CMD_REQUEST_COMPLETED (ID 4; size 32; uncompressed)
2020.02.28 08:23:55.339 *D* [comm.cs.2          ] Received raw message CMD_FILE_DATA
  [Repeats alot]
2020.02.28 08:23:55.341 *D* [comm.cs.2          ] Received raw message CMD_FILE_DATA
2020.02.28 08:24:01.203 *D* [comm.cs.2          ] Sending message CMD_REQUEST_COMPLETED (ID 4; size 32; uncompressed)
2020.02.28 08:24:01.203 *D* [comm.cs.2          ] Communication channel closed by peer
2020.02.28 08:24:01.204 *D* [comm.cs.2          ] Session with [NetXmsIP] closed
2020.02.28 08:24:01.204 *D* [comm.cs.2          ] Session unregistered
2020.02.28 08:24:01.204 *D* [comm.cs.2          ] Receiver thread stopped


i have lvl 9 debug also but thats litle big for posting :)

#197
General Support / Agent upgrade fails
February 27, 2020, 09:20:25 AM
Hello

Where could i find information about failed package deployment. When new version came out, most of the agents upgraded fine, but 5 did not. I get error "File transfer failed" or "Unable to start upgrade process"

Egert
#198
Announcements / Re: NetXMS 3.2 released
February 26, 2020, 02:51:59 PM
Few things i noticed:

Alarm windows shows warning: Only 4096 most recent alarms shown and alarm window is filled with agent messages "[Normal]   Node name   Package xxx updated from  to unset"

Cant find DCI for: "New internal parameters for server stats (object count, alarm count, etc.)"

Future idea:

Would it be possible to add version check to agent upgrade process? When upgrading alot of agents then it is unneccesary to reupload package and install when version is already updated.
#200
General Support / Re: cant get powershell script to run
February 17, 2020, 11:44:11 AM
Thanks for the reply. In later posts i changed the polling method to script file instead of direct command in agent conf. When i changed script content to simple output where i could change execution time, then depending on run time > 4835ms:error | < 4835ms:good. So i think path variable is working.

$age = 1500;
Start-Sleep -Milliseconds 4840
$Output = 'Parameter.Name=' + $age
echo $Output



Currently working method:

Agent Conf:
ExternalParametersProvider=powershell.exe C:\NetXMS\script\ReturnInfo.ps1:1800

ReturnInfo.ps:
$DataFile = "C:\NetXMS\script\output.txt"

$Array = "";

if (Test-Path -Path $DataFile) {

    $Content = Get-Content $DataFile
    $Array = $Content.split('|');

}


return $Array


Output.txt is generated from different script that is running with task scheduler.
#201
General Support / Re: Logging console 'sh sta'
February 16, 2020, 06:31:04 PM
Thanks for tip.

I went with following solution:

Agent conf:
Query = Alarms-Outstanding:db1:300:SELECT COUNT (alarm_state) as Alarms FROM [netxms_db].[dbo].[alarms] WHERE alarm_state = 0

Dci parameter: DB.QueryResult(Alarms-Outstanding)
#202
General Support / Logging console 'sh sta'
February 14, 2020, 07:18:03 PM
Hello

Is it possible to log statistics shown in console 'sh sta'? For example poll them via dci script?
#203
General Support / Re: scripting and ssh commands
February 10, 2020, 01:49:07 PM
Resurecting an old topic.

What i am trying to do is make tool->restart ssh command (for ubiquiti wireless device).

is "$node->executeSSHCommand("reboot");" correct syntax ? when i run it it returns null as value and device doesent reboot. Ssh credentials are filled out in node config.

#204
General Support / Re: Cisco 2960X Monitoring
February 09, 2020, 01:07:42 PM
Have you configured switch snmp, does netxms discover node as snmp compatible?
#205
General Support / Re: Network map node placement
February 06, 2020, 10:02:03 AM
Map mode is custom map, automatic layout is disabled. Only "show grid" / "snap to grid" are enabled when editing.

Preview:
#206
General Support / Re: Network map node placement
February 04, 2020, 12:21:59 PM
Have tested in win 7 and win server 2008 r2. Management console version 3.1.300
#207
General Support / Network map node placement
January 31, 2020, 12:17:00 PM
Hello

Not realy sure if its a bug or ment to be like so. Basicly when creating custom network map and drag/drop a new node into map it always ends up in top left cornern. When map gets bigger it is annoying to constantly have to scroll back up to find new node and drag it back to where ever it needs to go. It would be nice if node appears where it was dropped to.
#208
General Support / Re: cant get powershell script to run
January 23, 2020, 04:07:29 PM
Win 7 Pro

$PSVersionTable:
Name                           Value                                                                                                                                                                                                                             
----                           -----                                                                                                                                                                                                                             
PSVersion                      4.0                                                                                                                                                                                                                               
WSManStackVersion              3.0                                                                                                                                                                                                                               
SerializationVersion           1.1.0.1                                                                                                                                                                                                                           
CLRVersion                     4.0.30319.42000                                                                                                                                                                                                                   
BuildVersion                   6.3.9600.16406                                                                                                                                                                                                                   
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}                                                                                                                                                                                                             
PSRemotingProtocolVersion      2.2   



Currently i have setup where i run PS script with task scheduler and save result into txt file. Then with netxms agent i run a script that reades value out of txt file. That way it stays well under 1 sec runtime and works perfectly. Currently testing in 8 different machines.

ExternalParametersProvider=powershell.exe C:\NetXMS\script\ReturnInfo.ps1:1800
#209
General Support / Re: cant get powershell script to run
January 18, 2020, 01:01:15 PM
Seems like it is Bug / error on netxms, did quick and simple test:

Script:
$age = 1500;
Start-Sleep -Milliseconds 4840
$Output = 'Parameter.Name=' + $age
echo $Output


if script ran 4835 ms or more then no result to agent. Anything less and agent received value.

Also "The pipe has been ended." doesent mean error, it comes with 0 or 1 value.
#210
General Support / Re: cant get powershell script to run
January 16, 2020, 08:03:20 AM
2020.01.14 19:49:15.569 *D* [                   ] ProcessExecutor::readOutput(): stopped on GetOverlappedResult (The pipe has been ended.)

Could that mean script or agent error ? It seems script runs about 5-6 seconds as usual. Also if someone is decent at powershell maybe there is somthing wrong with script itself? I am very beginner in PS :)