Since we upgrade NetMaster 12.1 to 12.2, we didn't benefit from CONALERT.STOP and CONALERT.START events that we defined before. Unfortunely, it can't create alerts when custom event occurs anymore.
Also, we have 'SBCON' NCL member in TESTEXEC dsn, and it is added in NMINIT member below like this:
SUB BSYS SBCON -** conn stop/start monitor
SBCON NCL member:
-* &CONTROL TRACELOG NOLABEL
&INTCMD PROFILE EDS ENABLE=NST1CON NAME=$IP.CONNECT.* TYPE=ALL
&DOWHILE &ZFDBK = 0
&ASSIGN MDO=IPMDO. MAP=$NCL
&ASSIGN VARS=$IP$* GENERIC FROM MDO=IPMDO.
-* -EXEC SBNVARS
-* &WRITE LOG=YES TERM=YES DATA=JOBNAME &$IP$JOBNAME
-* &WRITE LOG=YES TERM=YES DATA=COMMAND &$IP$COMMAND
-* &WRITE LOG=YES TERM=YES DATA=APPLNAME &$IP$APPLNAME
-* &WRITE LOG=YES TERM=YES DATA=REMOTE IP &$IP$RMTADDR
-* &WRITE LOG=YES TERM=YES DATA=LOCAL IP &$IP$LCLADDR
-* &WRITE LOG=YES TERM=YES DATA=LOCAL PORT &$IP$LCLPORT
-* &WRITE LOG=YES TERM=YES DATA=REMOTE PORT &$IP$RMTPORT
-* &WRITE LOG=YES TERM=YES DATA=IN/OUT BYTE &$IP$BYTESIN/&$IP$BYTESOUT
&IF .&$IP$RECTYPE EQ .CN &THEN +
&ALERT1 = &STR CONALERT
&APPL1 = &NBLSTR &$IP$APPLNAME
&IF .&$IP$COMMAND EQ .INIT &THEN +
&ALERT1 = &STR CONALERT.START
&IF .&$IP$COMMAND EQ .TERM &THEN +
&ALERT1 = &STR CONALERT.STOP
&EVENT NAME=&ALERT1 SCOPE=SYSTEM TYPE=APPLICATION +
OBJECT=&$IP$JOBNAME RESOURCE=&APPL1 +
DATA=&$IP$COMMAND &$IP$LCLADDR:&$IP$LCLPORT &$IP$RMTADDR:&$IP$RMTPORT
For example:Telnet2023 (Custom Event Detector /EDETECT)
Short Description ..... telnet2023 conn.Stop alert Status ACTIVE
Monitor Events for:
&EVENT NAME=CONALERT.STOP TYPE=APPLICATION +
Description &$IPRES1 conn.STOP alert &$IPOBJECT &$IPSTDDESC
Severity .... 2 Type ...... ALERT
Resource Name &$IPRES1 Resource ID &$IPOBJECT
AUTO_TROUBLE_TICKET email selviyet
This event should create the alert like this:
TELNET2023 conn.STOP alert INETD8 TERM 10.24.129.1:2023 10.242.8.131:56236
1)IPAPPLS definitons were migrated from old version to new.
2)When i trigger to this custom event, i can see IP History as Resource TELNET2023, but there is no alert.
I'm in doubt about whether SBCON NCL member is compatible with 12.2 or not, but it doesn't create any error logs, or we might have missed out any details at the time of migration.
Release : 12.2
Component : CA NetMaster Network Management for TCP/IP
In NetMaster Release 12.2, there are some event field names that are longer than what SBCON was coded for. Change all '$IP$' to '$IP' in SBCON. Changing this will generate the CONALERT events.