NetXMS Support Forum

English Support => General Support => Topic started by: hkusulja on May 07, 2014, 10:47:51 PM

Title: How to disable SYS_INCORRECT_NETMASK event ?
Post by: hkusulja on May 07, 2014, 10:47:51 PM
Hi,
sometimes we have routers that have configured public ip with /32, this is for a reason (VRRP for example), and in that case, NetXMS reports new Event - SYS_INCORRECT_NETMASK - "Invalid network mask 255.255.255.255 on interface eth1" should be ....". This is wrong in our case and I want to turn this check off completely.

I have disabled Event processing policy to stop creating alerts.

However, is there a way to disable such NetXMS-integrated event to stop showing in Event Monitor at all ?

Thank you
Title: Re: How to disable SYS_INCORRECT_NETMASK event ?
Post by: yshiro on May 08, 2014, 11:14:16 AM
Hi, you can disable it on "Configuration\Event processing Policy" just look for "Generate alarm when incorrect network mask detected on interface" and disable this policy.

Regards.
Title: Re: How to disable SYS_INCORRECT_NETMASK event ?
Post by: hkusulja on May 08, 2014, 11:36:32 AM
Quote from: yshiro on May 08, 2014, 11:14:16 AM
Hi, you can disable it on "Configuration\Event processing Policy" just look for "Generate alarm when incorrect network mask detected on interface" and disable this policy.
Hi, thank you for a tip, however as I said, I have already disabled in Event processing policy. The issue is that NetXMS Agents are still generating this Events, and if you look real-time Event monitor, there are lot of them, so I am trying to disable this feature / event log generation for this.

Thank you
Title: Re: How to disable SYS_INCORRECT_NETMASK event ?
Post by: joni on December 17, 2014, 12:22:53 PM
+1 how to disable sys_* (all system) events ? or how to owerwrite it?
Title: Re: How to disable SYS_INCORRECT_NETMASK event ?
Post by: Alex Kirhenshtein on December 17, 2014, 01:50:42 PM
Short answer - you can't. You can, however, disable saving them to event log (Event Configuration -> edit SYS_INCORRECT_NETMASK -> uncheck "Write to event log").

If you really want to disable them, change src/server/core/node.cpp, lines 1016 and 5699, remove "PostEvent" call (all 3 lines) and recompile.         PostEvent(EVENT_INCORRECT_NETMASK, m_id, "idsaa", pInterface->getId(),
                   pInterface->getIfIndex(), pInterface->getName(),
                   pInterface->getIpNetMask(), pSubnet->getIpNetMask());


P.S. I highly recommend you to fix invalid netmask on servers/routers instead of muting them in monitoring.

Quote from: hkusulja on May 08, 2014, 11:36:32 AM
Quote from: yshiro on May 08, 2014, 11:14:16 AM
Hi, you can disable it on "Configuration\Event processing Policy" just look for "Generate alarm when incorrect network mask detected on interface" and disable this policy.
Hi, thank you for a tip, however as I said, I have already disabled in Event processing policy. The issue is that NetXMS Agents are still generating this Events, and if you look real-time Event monitor, there are lot of them, so I am trying to disable this feature / event log generation for this.

Thank you
Title: Re: How to disable SYS_INCORRECT_NETMASK event ?
Post by: Harun on October 01, 2015, 02:56:39 PM
Quote from: Alex Kirhenshtein on December 17, 2014, 01:50:42 PM
P.S. I highly recommend you to fix invalid netmask on servers/routers instead of muting them in monitoring.
This approach does not work if I use vrf (virtual routing and forwarding).
Title: Re: How to disable SYS_INCORRECT_NETMASK event ?
Post by: tomaskir on October 01, 2015, 03:00:02 PM
Probably best to leave the events to be generated, and instead modify EPP (event processing policy) to not create alarms for these events from certain nodes where you know this is supposed to happen.

This is better then disabling the event generation all together.