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
CrUser
Posts
-
Monitor current system time -
Monitor current system timeHi,
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 -
NetXMS console freezing/crashHello, 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
-
NetXMS forward traps to higher NNM server in the hierarchyIt 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
-
NetXMS forward traps to higher NNM server in the hierarchyHi,
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 -
Script to analyze trap message content and generate eventHi,
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
-
Script to analyze trap message content and generate eventHi,
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 -
Automatic Alarm ResolveThanks a lot,
Tomislav -
Automatic Alarm ResolveThanks you Victor.
When you expect new revision where this bug will probably resolve?
Tomislav -
Automatic Alarm ResolveHi,
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 -
Script for synology NASHi,
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 -
Script for synology NASThank guys for this advice, I will try both and I hope that it will be solved.
-
Script for synology NASHi,
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 -
Minor stutus of nodes and error message in object details in new version 2.1Hi Victor,
Thank you form you replay.
I hope that will be resolved with next patch.best regards,
Tomislav -
Import database backup fileHi Victor,
Thank you for you replay.
I use MySQL database and NetXMS version 2.1.
Tomislav
-
Import database backup fileHi,
I need help with importing database file into new NetXMS database.
I have followed instruction to create database backup with instruction nxdbmgr export export_file.
Export file has created without error but in proces of importing this file into fresh NetXMS database i have got error:"SQL query failed (Incorrect integer value: "" for column 'port_rows'. I have put complete error message in attachment.
Obviously, something is wrong with database data but application is working fine without any error or warning for this node.
If anybody have advice what can I do to avoid this importing error please help me.Thanks,
Tomislav

-
Minor stutus of nodes and error message in object details in new version 2.1Thanks for help,
Maybe I didn't describe problem with port and interface show enough.
On the object browser tab a can see all interface of every switches and on the object details tab I can see overview, alarms, last value and performace as well.
But when I select Interface or Ports tab on Object Details for some switches interface table and ports is not show (or stay on last switch port list). Also, when I select tab overview after selection of ports or interface I got error. I sent you error picture in the attachment.I have check information data in Overview tab for all switches and I can see anything suspected or wrong.
In my system I use cisco SF500 and SF500 stacked switches.best regards,
Tomislav

-
Minor stutus of nodes and error message in object details in new version 2.1Thanks a lot,
I have changed "View all alarm categories" permission for admin and now I can see all alarms for any node and after resolve all alarms node goes to normal state.
Also, I have changes propagation status as Critical -Warning and now I get warning alert for port down on switch.
Now I have only one problem with interface and port view on object details tabs, for some switch I can see interface table and ports but
for other ports tab is empty and interface tab is not refresh with list of interface. Problem usually with stacked switch but find same problem with normal switch. If you have some advice how I can resolve this bugs please help me.Have you experience with new future Outstanding alarm remainder. I have set one sound for this option but I when alarm occured noting hapened.?
Is there any server parameter to set time of outstanding reminder?best regards,
Tomislav -
Minor stutus of nodes and error message in object details in new version 2.1Dears,
I upgraded NeteXMS server from 2.0.8 to 2.1 version but in new version I got same strange notification and error in work of server.
First, at a few cisco switch server can't show port view and list of interface. After I change tab on Object details server generate message box with error
"An Error has occurred when activation this view" (attach). I have never seen this message before in the old version of server.
Second problem is status of some nodes. For a example, after one of interface goes down node change status to critical. When this interface go to normal state
node go to some strange "Minor" state. I have checked all alarms of this node and interface status and all is in the normal state but icon of node is still o "Minor" state. When this occurred I can only recreate this node (delete and create new node) to change his status to normal.Also, I have question how I can change events severity level for interface down of some node from "Critical" to "Warning" or "Minor".
If anybody have some idea to resolve these problem please help me.
best regards,
Tomislav

-
Problem with hudge database data of NetXMS applicationHi,
I need help with cleaning database of NetXMS. I saw that some table on database name like tdata_record_xxx and tdata_rows_xxx is grown up every day, a few Gb.
I check data on this table and it's look like some archive of data collection polling.Does NetXMS application have some purge tools for cleaning this data in database and how I can reduce filling this data on the database.
Maybe I can clean it with other tools but I wouldn't like drop or clean some table because that will occur crash application at all.Thanks for any suggestion and advice,
with best regards,
Tomislav