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
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
#2
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
#3
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

#4
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
#5
General Support / Re: Automatic Alarm Resolve
February 14, 2019, 11:03:42 PM
Thanks a lot,
Tomislav
#6
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
#7
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
#8
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

#9
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.
#10
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
#11
Hi Victor,

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

best regards,
Tomislav
#12
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
#13
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

#14
Thanks 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



#15
Thanks 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