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

#1
General Support / Connect Web Browser with port
November 17, 2021, 11:52:51 PM
In my objects some of them require specific IP ports for web management. I've modified the object communications section with the correct port (8080) but I'm struggling to get the connect web browser tool to open the IP with port.

This is the command in the Object Tools:
http://%u

What variable do I add to get the port appended to this?

Is it better to make a tool specific to this unit with the port specified like this:
http://%u:8080

I was trying to find a comprehensive list of all the variables but I could not find it.

Thanks.
#2
General Support / JIRA cloud integration
November 15, 2021, 08:16:59 PM
I'm looking for some insight on how to integrate an on premise NetXMS server with a JIRA cloud hosted "server.atlassian.net" server. I do not see an app available on there for NetXMS and I'm wondering if this type of integration is not possible.

if it is possible would you happen to know the exact steps to take? I do not need a plugin section as described in the administration guide.

Thanks in advance.
#3
OK well I solved my own problem...

I checked the netxmsd log at /var/log/netxmsd and the latest entries indicated that the DB was locked by a different IP address. I then realized that my test server had shifted IP addresses, I forgot to set a static IP on this VM when I built it...

so I forced the DB unlock "nxdbmgr unlock" and rebooted the machine.

The service started and I'm back in business.
#4
General Support / Connection Refused, service failed
October 22, 2020, 09:19:30 PM
Need a little help troubleshooting my test NetXMS system. I am unable to log into the web or console and get a connection refused error.
Systemctl status shows the following:

netxmsd.service - NetXMS Server
   Loaded: loaded (/lib/systemd/system/netxmsd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2020-10-22 13:13:19 CDT; 38s ago
  Process: 869 ExecStart=/usr/bin/netxmsd -d (code=exited, status=0/SUCCESS)
Main PID: 870 (code=exited, status=3)

Oct 22 13:13:19 netxms-test systemd[1]: Starting NetXMS Server...
Oct 22 13:13:19 netxms-test systemd[1]: Started NetXMS Server.
Oct 22 13:13:19 netxms-test systemd[1]: netxmsd.service: Main process exited, code=exited, status=3/NOTIMPLEMENTED
Oct 22 13:13:19 netxms-test systemd[1]: netxmsd.service: Unit entered failed state.
Oct 22 13:13:19 netxms-test systemd[1]: netxmsd.service: Failed with result 'exit-code'.


Tried upgrading all packages, and restarting the service but get the same errors.
This is running on Debian 9, installed a couple months ago per the install instructions on the Wiki.

Thanks.
#5
General Support / Re: SNMP Trap Parsing
September 23, 2020, 07:06:45 PM
I followed you write up and it wasn't working for me. The clearing traps were being processed by the first even action, it seems like the filter script was not seeing the "critical, major, minor, warning" text as you originally had it. I needed to change it back to the numbers included in the trap. Seems like the transform script wasn't updating the field correctly or something. Either way using your guidance I got this to work with the settings in the pictures. This accomplished what I needed it to and I should be able to apply this same logic to other vendors.

Transform:
switch ($event->parameters[5])
{
case "1":
   $event->setSeverity(4);
   SetEventParameter($event, "4", "critical");
   break;
case "2":
   $event->setSeverity(3);
   SetEventParameter($event, "4", "major");
   break;
case "3":
   $event->setSeverity(2);
   SetEventParameter($event, "4", "minor");
   break;
case "4":
   $event->setSeverity(1);
   SetEventParameter($event, "4", "warning");
   break;
case "5":
   $event->setSeverity(0);
   SetEventParameter($event, "4", "cleared");
   break;
case "6":
   $event->setSeverity(0);
   SetEventParameter($event, "4", "information");
   break;
default:
   $event->setSeverity(5);
   SetEventParameter($event, "4", "unknown");
}
return;


Event Policy:
// Adjust the severity of the current event to reflect the value passed from the trap
// Drop events with severity != critical/major/minor/warning
switch ($event->parameters[5])
{
case "1":
   $event->setSeverity(4);
   return true;
case "2":
   $event->setSeverity(3);   
   return true;
case "3":
   $event->setSeverity(2);   
   return true;
case "4":
   $event->setSeverity(1);
   return true;
default:
   return false;
}



#6
General Support / SNMP Trap Parsing
September 23, 2020, 03:13:46 AM
Hello again. I'm a complete novice when it comes to scripting and parsing of SNMP traps. What I'm hoping to accomplish is to be able to take an incoming trap, identify the included severity and then post this trap to the associated node with the severity from the trap. Once the same alarm, from the same device is cleared I'd like to see that alarm cleared. I tried to follow some guidance from this post: https://www.netxms.org/forum/general-support/snmp-trap-configuration/
However, I'm still coming up short...

Alarm Trap
09.22.2020 18:47:41   10.24.43.40   Commscope ION-B   .1.3.6.1.4.1.331.1.2.1.1.3.1   .1.3.6.1.2.1.1.5.0 == 'TEST_SYS'; .1.3.6.1.4.1.331.1.2.1.1.2.5.0 == '2388'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.2.0 == '1618'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.3.0 == '9618'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.4.0 == '1'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.5.0 == '07 E4 09 16 17 1C 0B 00 2B 00 00 '; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.6.0 == '4'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.7.0 == '24'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.8.0 == 'RX1 Optical power fail'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.9.0 == 'SR=1.LUNIT=8'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.10.0 == '0'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.11.0 == '.0.0'; .1.3.6.1.4.1.331.1.2.1.1.5.1.0 == '{0844730D-3F76-4C1E-9FC6-0F65BCDEF886}'; .1.3.6.1.4.1.331.1.2.1.1.1.7.0 == ''

Clearing Trap:
09.22.2020 18:47:56   10.24.43.40   Commscope ION-B   .1.3.6.1.4.1.331.1.2.1.1.3.1   .1.3.6.1.2.1.1.5.0 == 'TEST_SYS'; .1.3.6.1.4.1.331.1.2.1.1.2.5.0 == '2390'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.2.0 == '1618'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.3.0 == '9618'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.4.0 == '5'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.5.0 == '07 E4 09 16 17 1C 1C 00 2B 00 00 '; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.6.0 == '4'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.7.0 == '24'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.8.0 == 'RX1 Optical power fail'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.9.0 == 'SR=1.LUNIT=8'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.10.0 == '0'; .1.3.6.1.4.1.331.1.2.1.1.2.6.1.11.0 == '.0.0'; .1.3.6.1.4.1.331.1.2.1.1.5.1.0 == '{0844730D-3F76-4C1E-9FC6-0F65BCDEF886}'; .1.3.6.1.4.1.331.1.2.1.1.1.7.0 == ''

I'm really concerned with variables:
2   .1.3.6.1.2.1.1.5.0 == 'TEST_SYS'; - System Name
3   .1.3.6.1.4.1.331.1.2.1.1.2.6.1.8.0 == 'RX1 Optical power fail'; - Additional Text
4   .1.3.6.1.4.1.331.1.2.1.1.2.6.1.9.0 == 'SR=1.LUNIT=8'; - Alarm Equipment
5   .1.3.6.1.4.1.331.1.2.1.1.2.6.1.4.0 == '1'; - Severity: 1=critical; 2=major; 3=minor; 4=warning; 5=cleared; 6=information
6   .1.3.6.1.4.1.331.1.2.1.1.2.6.1.2.0 == '1618'; - Alarm ID
7   .1.3.6.1.4.1.331.1.2.1.1.2.5.0 == '1860'; - Alarm Trap Counter
8   .1.3.6.1.4.1.331.1.2.1.1.2.6.1.5.0 == '07 E4 09 16 10 0C 23 00 2B 00 00 '; -Date and time from system
9   .1.3.6.1.4.1.331.1.2.1.1.5.1.0 == '{0844730D-3F76-4C1E-9FC6-0F65BCDEF886}'; -UID just in case I need to identify hardware IDs

I thought I modified the script correctly but it's still not working:
if ($event->parameters[6] > 0)
{
   switch($event->parameters[5])
   {
      case 1:
         evt = "COMMSCOPE_CRITICAL";
         break;
      case 2:
         evt = "COMMSCOPE_MAJOR";
         break;
      case 3:
         evt = "COMMSCOPE_MINOR";
         break;
      case 4:
         evt = "COMMSCOPE_WARNING";
         break;
      case 5:
         evt = "COMMSCOPE_CLEAR";
         break;
      default:
         evt = "COMMSCOPE_INFO";
         break;
   }
   PostEvent($node, "$2");  // pass message as first parameter to generated event
}
else
{
   PostEvent($node, "TRAP_CLOSE");
}


I attached some screen shots for reference. In Even Processing Policy I created two rules
1. CONDITIONS| EVENT = COMMSCOPE_RAW; ACTION check stop processing; ACTION|ALARM do not change alarms ACTION | SERVER ACTION = COMMSCOPE_Action Delay 0 Timer Key 1
2. CONDITIONS| EVENT = COMMSCOPE_CRITICAL, COMMSCOPE_MINOR, etc....; ACTION|ALARM create alarm; ACTION | SERVER ACTION = COMMSCOPE_Action Delay 0 Timer Key 1

I see the raw information posting in the event log, but I'm not seeing the alarms showing on the node itself. I appreciate all the help.
#7
General Support / Re: compiled MIB not in Browser
September 23, 2020, 12:46:09 AM
Well I figured out what I did wrong. I mis-typed the command from the WIKI page. I guess a . is no replacement for /

Now I have to figure out how to get a specific trap variable to trigger an event and alarm...
#8
General Support / compiled MIB not in Browser
September 22, 2020, 09:03:51 PM
Hello all. I'm trying to import some MIB files from our equipment provider. I am able to upload the files to the server, move them to the mibs folder and compile all without errors. However, in the MIB browser the enterprise it not showing up. Any SNMP traps we are getting from these devices are not translating into readable text. I've attached the MIB files for reference.

I'm running NetXMS on a Debain Hyper-V hosted machine and I'm using the WebUI.

The equipment we are monitoring is not standard IT equipment in that it will allow for SNMP polling. These are distributed antenna systems (DAS) for cellular coverage indoors. Every remote system has a controller which is handling several other downstream fiber optic units. The controller will send out an SNMP trap when an even occurs, we need to be able to collect and read those traps to determine how to best resolve the error, seeing the OIDs is not going to be good enough, and creating an even for each OID is also not a good solution. I have 10 different equipment vendors, with multiple equipment models and each with it's own MIB file. I'm facing a daunting task to bring these all in, I tried to start with the easiest...

Thanks