How can I setup net_connect to send different alarm levels to different sets of servers

Document ID : KB000124017
Last Modified Date : 28/12/2018
Show Technical Document Details
Question:
How can I setup net_connect to send different alarm levels to different sets of servers such as major for non-Production servers and critical for Production servers?
Answer:
-open net_connect configuration (IM) 
-click on the second icon (Message Manager) 
-right click add new 
-create a new message with the following props: 

Identification: MsgConnectFailProduction 
Token: msg_fail 
Alarm text: Connection to '$hostname' PRODUCTION ($service) failed (profile: $profile) 
Subsystem: 1.1.3 
Severity: Critical 

-right click create a group called Production 
-move all production servers to this group 
-click on the last icon (Bulk Configuration) 
-select all hosts in the group "Production" 
-select Modify Host properties, Specify host values, Monitor ICMP connectivity (ping), Generate alarm 
-change Message Fail to MsgConnectFailProduction 
-apply the configuration