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

Topics - CrUser

#1
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
#2
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
#3
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
#4
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
#5
General Support / Import database backup file
September 08, 2017, 07:38:03 PM
Hi,

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

#6
Dears,

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
#7
Hi,

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


#8
Hi,

I need one help with alarm presentation on the alarm browser table.
When I generate alarms for one node (after receive some traps of this node) in NetXMS server all alarms from one node come in one line on the alarm browser table
independently of type, index or alarm severity.
After one next alarm generated on server for the same node counter increase number a alarm message line only show last alarm description.
It's not logical because there is many different alarms with different severity and line show only last incoming alarm.

After I double click on this line I can see all alarms in count on the alarm details table and that is great.

Is there any way to separate all new alarm with different message or severity or different index of alarm and show it in new line on the alarm browser table.

Maybe in server parameters exist some variable to change rule of alarm count and showing on the alarm table.

Please if anybody have solution for this please help me with some advice.

Thanks,
Tomislav
#9
Hi,
I have two Netxms Servers with identical events and rules configuration and I want forward events from one to another server.

Both server are installed on the Win7 system and it's connected on the switch in one VLAN.
On the both server firewall is turned off.

I've set the following settings - EnableISCListener and ReceiveForwardedEvents to destination server and restarted the core. On the main server I have created new action type "forward event" with IP address 172.19.228.42 of slave server and I have created rules for some event with forward action.
After alert have occurred on the main server it has nothing sent to slave server. I have check log file on the main server and there is following log
[27-Dec-2016 14:54:25.114] [DEBUG] *actions* Executing action 1 (ForwardEventTo_172.19.228.42) of type FORWARD EVENT
[27-Dec-2016 14:54:25.114] [DEBUG] *actions* Forwarding event to "172.19.228.42"
[27-Dec-2016 14:54:30.121] [WARN ] Failed to forward event to server 172.19.228.42: Connect failed

I have run wireshark on the main sever but nothing is receiving the data on port 4702.

Any ideas is there something I've missed?

Tomislav
#10
Hi Guys,

At first, NETXMS application is excellent solution for SNMP management. I have used this application for two week and I'm think that this SNMP manager it is great choice.

I have two question
1. First problem is pushing value to target node when user select acknowledge on specific alarm on the list.
One of node specific parameters as described as "activeAlertlsAcknowledged" and it has read/write access.
How I can recognize action of user Acknowledge and make some script to activate write(push) value to this specific node parameters?
.
2. Second problem is how create repeated sound for alarms which will be terminated after user select a Acknowledge state of target alarm.

Please if someone have any idea how to resolve these requirements and make script for these action please help me.

Thanks,
Tomislav