How to modify built in Event template?

Started by commando, November 01, 2021, 03:54:31 PM

Previous topic - Next topic

commando

Hi all,
I just start to use NetXMS for few weeks. I can see there are already some built in Event Configuration there, but now I want to modify something now.
Question are,
1, how to modify built in Event template? Where are they defined?
2, I want to modify "SYS_IF_UP", and if possible, could someone tell me how to add the device MAC there? My idea is add the device MAC info into event log, when it is UP or DOWN.
3, I want to know how to add more event template there.

Thanks in advanced.

Victor Kirhenshtein

Hi,

you can go to Configuration -> Event Configuration. There you can edit built-in templates.

To add MAC address or any other information you can modify message template and call NXSL script to extract necessary information by using %[script_name] macro. For such macro system will lookup script with name given inside [ ] and insert whatever this script returns into resulting message.

Also you can add new event templates from there (either right click anywhere and select "new template", or by pressing plus sign in top right corner).

Best regards,
Victor