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

#1
General Support / Re: Monitor current system time
October 02, 2025, 02:53:39 PM
Thank you Filip, I will try to adjust DCI current measure with to see exact value of timestamp. I hope that will be resolve this issue. Also I will try built-in time synchronization functionality.
 
Tomislav
#2
General Support / Monitor current system time
October 01, 2025, 03:41:46 PM
Hi,

I need to monitor current time with NetXMS server for all workstations with NetXMS agent installed on them. The idea was to compare the current system time (macro %T) on the NetXMS server with the data obtained from the NetXMS agent System.CurrentTime. Unfortunately, after the first poll query I received an alert that the limit set in the threshold rule was exceeded with the content "Threshold reached for data collection item "Current system time" (Metric: System.CurrentTime; Threshold value: 1.76 G; Actual value: 1.76 G)". From this message I cannot see exactly which timestamp was read because it is expressed in giga format. Does anyone have an idea how to perform a system time check on nodes with server time and trigger an alarm in case of a mismatch.

Thanks in advance
Tomislav
#3
General Support / NetXMS console freezing/crash
September 21, 2025, 10:11:56 PM
Hello, I tried to install the NetXMS version 5.2.5. This version of the server works without problems, but my client (console) freezes constantly, remains in a state of not responding. There is no rule when console is frozen, simply after a few clicks on the icons of the objects in the tree view, the screen remains frozen and the current server time stop, and the Windows system reports that the application is in the status of not responding. I waited up to 10 minutes but the console does not return to normal operation.
After the forced close of the console (close task in Task manager) and start console again, everything works correctly. I looked at the log from the server and I don't see any server error, obviously the problem occurs on the console. Does anyone know this problem and maybe have a solution for it. I have many years of experience working with NetXMS version 3.2 and I have never encountered a problem similar to this.

Thanks for any help,

Tomislav
#4
It seems to me that I will still have to write a script outside of the NetXMS to forward the incoming traps. Anyway, many thanks Victor for the reply
#5
Hi,

I have been using NetXMS for several years in monitoring a smaller network system and I am very satisfied with the reliability and performance of the NetXMS server, a great tool for this purpose.
I'm trying to find a way to forward already received and processed traps on the NetXMS server to a third-party NNM server.
I know that NetXMS can exchange events within its own network but if I need to send traps to a third party NNM server it cannot understand events from the NetXMS server.
Is it possible to use a NetXMS agent installed together with a server on the same computer or using a scripting language through which traps would be generated to a third party for filtered conditions, let say only sending critical alarms to a third party NNM server.
Please give me an idea of which way to go in resolving such requests.

Thanks in advance,
Tomislav
#6
Hi,

I may not have clearly defined the issue but I have managed to solve this message filtering problem in the meantime through Event processing policy.
I set up a script to filter by event content in a filtering script.
if ($event->message ~= "something to filter")
{
return true;
}

I used regular expresions to filter the content of the event and thus run server actions only for messages that contain post text.

For now, everything works so I hope I did it correctly

Tomislav

#7
Hi,

I would ask for help with processing the content of the trap message.
The idea is that when receiving a trap message, I can use a script and expression filter to categorize some special events in accordance with the content of the message and create special events for them, and process all other traps that do not contain the required text in the message to the standard event creation process.
When I manage to get extracted events for such traps of special content then I can generate separate alarms via event policy and action scripts and send them for example via emails
If anyone has experience in writing such scripts and ways to do so please help.

best regards,
Tomislav
#8
General Support / Re: Automatic Alarm Resolve
February 14, 2019, 11:03:42 PM
Thanks a lot,
Tomislav
#9
General Support / Re: Automatic Alarm Resolve
February 14, 2019, 03:15:10 PM
Thanks you Victor.
When you expect new revision where this bug will probably resolve?
Tomislav
#10
General Support / Automatic Alarm Resolve
February 08, 2019, 11:08:24 AM
Hi,

I have one problem about automatic alarm resolve. I have one recording system/device which can sent alarm for every fault in system via trap.
After receive trap NetXMS is configure to create alarm with some serial number. Unfortunately, recording device can't sent trap when system itself clear all active alarms.
Only way what I can do is auto resolving alarm when I got result 0 from reading DCI parameter "Active alarm" from this node using regular expression for all alarm of this node.
There is one problem. NetXMS always resolve all alarms for this node no matter that some of those alarms already resolved before. In this case I have only one date for "Last changes" in alarm table for all alarms of this node.
I don't now how filter only outstanding alarms in alarm function "Resolve all alarm with key" and regular expression. Maybe there some variable for the state of alarm (0,1,2,3 - Outstanding, acknowledged, resolved, terminated) which I can put in expressions filters.
If anyone have some good idea please help me to resolve this situation.

thanks in advance
Tomislav
#11
General Support / Re: Script for synology NAS
January 03, 2019, 04:02:50 PM
Hi,

I have resolved this script error. I found mistake on first line "raid_Status= GetDCIValueByName($node, "raidStatus");"
DCI parameter must be configured by DCI ID "raid_Status= GetDCIValueByName($node, "1.3.6.1.4.1.6574.3.1.1.3.0");
Now everything is working fine.
First I am put suggested code to eliminate error for null value of DCI parameter and after that I went to read again function GetDCIValueByName and found my mistake of parameters description.

Also, I will try the second suggestion to put script directly in Threshold of DCI value but I have only one solution resolved.

Thanks guys,

Have a nice day and happy new year 2019.
Tomislav

#12
General Support / Re: Script for synology NAS
January 03, 2019, 11:59:59 AM
Thank guys for this advice, I will try both and I hope that it will be solved.
#13
General Support / Script for synology NAS
December 12, 2018, 04:22:21 PM
Hi,

I have one problem with scripting for maintenance of synology NAS equipment. unfortunately, Synology NAS server hasn't implement SNMP agent with sending traps for some alert. Because that I have to create events and alarm internaly from DCI parameters.
For the example, for the RAID status I can read DCI paratameter from NAS device which can be number of 1- 10. Every number present special condition of current RAID status. I have written one script to anaylize DCI parameters and generate specific event for any condition (number)
This is my script for DCI parameter named "raidStatus".

raid_Status= GetDCIValueByName($node, "raidStatus");
details = "NORMAL";
switch (raid_Status)
{
   case 1:
      evt = "SYNOLOGY_RAID_STATUS_NOTIFICATION";
      details = "NORMAL";
      break;
   case 2:
      evt = "SYNOLOGY_RAID_STATUS_NOTIFICATION";
      details = "REPAIRING";
      break;
   case 3:
      evt = "SYNOLOGY_RAID_STATUS_NOTIFICATION";
      details = "MIGRATING";
      break;
   case 4:
      evt = "SYNOLOGY_RAID_STATUS_NOTIFICATION";
      details = "EXPANDING";
      break;
    case 5:
      evt = "SYNOLOGY_RAID_STATUS_NOTIFICATION";
      details = "DELETING";
      break;
    case 6:
      evt = "SYNOLOGY_RAID_STATUS_NOTIFICATION";
      details = "CREATING";
      break;
    case 7:
      evt = "SYNOLOGY_RAID_STATUS_NOTIFICATION";
      details = "SYNCING";
      break;
    case 8:
      evt = "SYNOLOGY_RAID_STATUS_NOTIFICATION";
      details = "CHECKING";
      break;
    case 9:
      evt = "SYNOLOGY_RAID_STATUS_NOTIFICATION";
      details = "ASSEMBLING";
      break;
    case 10:
      evt = "SYNOLOGY_RAID_STATUS_NOTIFICATION";
      details = "CANCELING";
      break;
    case 11:
      evt = "SYNOLOGY_RAID_STATUS_ERROR";
      details = "DEGRADE";
      break;
    case 12:
      evt = "SYNOLOGY_RAID_STATUS_ERROR";
      details = "CRASHED";
      break;

PostEvent($node,evt,null, details);

Also, I have one event and suitable event procesing policy role with activation one NXSL script for creation new events for any RAID status case, like a "SYNOLOGY_RAID_STATUS_NOTIFICATION" with massage which I would get from my script, for example  "CHECKING".
Suitable Event for this case is configured with name "SYNOLOGY_RAID_STATUS_NOTIFICATION" and message
"Synology RAID status: %1"

During testing process I got NetXMS system error message that one of parameters can not convert to string.
I didn't found much guides for NXSL programing and I can't understand where is the problem with script posting parameters.

if anybody have suggestion for resolve this problem, please help me to solve this.

Thanks,
best regards,
Tomislav
#14
Hi Victor,

Thank you form you replay.
I hope that will be resolved with next patch.

best regards,
Tomislav
#15
General Support / Re: Import database backup file
September 21, 2017, 10:56:19 AM
Hi Victor,

Thank you for you replay.

I use MySQL database and NetXMS version 2.1.

Tomislav