Professional Documents
Culture Documents
0
myAMC.FA-Messenger
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 1 of 148
myAMC.Messenger
Contents
Contents ...........................................................................................................................................................3
1 Preface ......................................................................................................................................................5
1.1
Introduction ........................................................................................................................................5
1.2
Target group .......................................................................................................................................5
1.3
Summary of contents .........................................................................................................................5
1.4
Notational conventions .......................................................................................................................5
1.5
Features in this version ......................................................................................................................6
1.6
Basic and extended Versions of Messenger/Robot ..........................................................................6
2 Getting Started ..........................................................................................................................................9
2.1
Introduction ........................................................................................................................................9
2.2
Requirements ...................................................................................................................................10
2.3
Installation ........................................................................................................................................11
2.3.1
Install myAMC.Messenger on the management host ...............................................................11
2.3.2
Start the myAMC.Messenger Server ........................................................................................15
2.3.3
myAMC.Messenger configuration.............................................................................................15
2.4
Examples .........................................................................................................................................16
2.4.1
Forwarding of messages in a FlexFrame environment .........................................................16
2.4.2
Alerting with myAMC.Messenger and myAMC.Printer .............................................................17
2.4.3
Alerting with myAMC.Messenger and myAMC.Network ..........................................................17
3 Introduction ..............................................................................................................................................19
3.1
Architecture ......................................................................................................................................19
3.1.1
Components..............................................................................................................................20
3.1.2
Operating modes ......................................................................................................................20
3.1.3
Input interfaces .........................................................................................................................21
3.2
Message History ..............................................................................................................................22
3.3
Filters ...............................................................................................................................................23
3.4
Reactions .........................................................................................................................................25
3.4.1
Reaction types ..........................................................................................................................25
3.4.2
Receiver groups ........................................................................................................................26
3.5
Output interface................................................................................................................................27
3.6
Master/Slave Messenger .................................................................................................................27
3.7
Repository ........................................................................................................................................28
3.7.1
Fault-resistant Message Repository .........................................................................................28
4 myAMC.Messenger Usage .....................................................................................................................29
4.1
Introduction ......................................................................................................................................29
4.2
Examples .........................................................................................................................................30
4.2.1
Example: Input formulas ...........................................................................................................30
4.2.2
Example: Receiver types ..........................................................................................................33
4.2.3
Example: Receiver Groups .......................................................................................................53
4.2.4
Example: Filter ..........................................................................................................................55
4.2.5
Example: Output .......................................................................................................................67
4.3
Funtional description ........................................................................................................................70
4.3.1
Input interfaces .........................................................................................................................70
4.3.2
Message structure ....................................................................................................................71
4.3.3
Filter Learn mode ......................................................................................................................71
4.3.4
Dynamic processing .................................................................................................................71
4.3.5
Message group .........................................................................................................................72
4.3.6
Log File .....................................................................................................................................72
5 myAMC.Messenger: Configuration .........................................................................................................73
5.1
Introduction ......................................................................................................................................73
5.2
Functional description ......................................................................................................................74
5.2.1
Program handling .....................................................................................................................74
5.2.2
Messenger ................................................................................................................................82
5.3
Master-Slave Repository ................................................................................................................142
6 Troubleshooting.....................................................................................................................................145
myAMC.FA-Messenger V9.0
General section
Page 3 of 148
Stand: 05.04.2012
6.1
Debugging ..................................................................................................................................... 145
6.1.1
Introduction ............................................................................................................................ 145
6.1.2
myAMC.Messenger Service .................................................................................................. 145
Index ............................................................................................................................................................ 146
Figures ......................................................................................................................................................... 147
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 4 of 148
1 Preface
1.1 Introduction
myAMC.Messenger/Robot is an enterprise solution for the distributed management of
heterogenous applications and systems.
myAMC.Messenger receives events and alerts from applications, network components,
printers, storage systems and other managements systems. In response to incoming events
there is a wide range of automated or manual reactions possible.
myAMC.Messenger is a general component of myAMC to receive and distribute alarms and
events. This component is the central point for analysis, benchmarking, visualization and
forwarding alerts. Alerting and forwarding can happen as SNMP-trap, as file or email..
myAMC.Messenger includes an event viewer, which can be used to monitor all incoming
alerts. Additionally, the graphical configuration tool allows fine-grained control over filters,
reactions and predefined rulesets to handle incoming events and alerts.
myAMC.Robot is an addon component for the myAMC.Messenger for IT Automation. The
myAMC.Robot component has an own manual in addition to the myAMC.Messenger manual.
The interfaces and APIs exposed by myAMC allow other management products to integrate
and to connect with myAMC management solutions.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 5 of 148
Preface
myAMC.Messenger
Priority-controlled alerts
Master/Slave Repository
The main differences between myAMC.Messenger Basic and Expert are listed below:
myAMC.Messenger Basic
Reception of SNMP traps from myAMC applications and some other pre-defined
components like network devices
Simple, unfiltered forwarding of all incoming messages to a single email address and
SNMP trap destination
Message history can be browsed in Message View of the Config Viewer or any
myAMC GUI.
myAMC.Messenger Expert
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 6 of 148
Getting Started
myAMC.Messenger/ Robot
Taskautomation
Reaction Tasks
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 7 of 148
2 Getting Started
2.1 Introduction
This chapter describes how to start your Enterprise IT application management with
myAMC.Messenger in some easy steps from installation to using the myAMC.Messenger.
This chapter does NOT describe all capabilities of myAMC.Messenger. This will be done in
following chapters.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 9 of 148
Getting Started
2.2 Requirements
myAMC.Messenger runs on both Microsoft Windows and Linux platforms.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 10 of 148
Getting Started
2.3 Installation
2.3.1
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 11 of 148
Getting Started
Unzip myodbc-3.51.14-nt.zip and start Setup.exe (you can also get the latest myODBC
driver from www.mysql.com)
Under MySQL, enter the IP address or hostname of the MySQL server into the host field
Unzip MySQLgui-win32-static-1.7.5-2.zip
Copy the created folder to C:\Program files\MySQL GUI (or another folder)
On tab Server:
Host name:
Default database:
On tab Client:
User name:
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 12 of 148
Getting Started
su root
rpm -i MySQL-server-4.1.13-0.i386.rpm
rpm -i MySQL-client-4.1.13-0.i386.rpm
su root
cd/usr/bin
mysql
flush privileges;
quit
In the future and with root as database user you have to type in mysql -u root p instead of
<mysql>. You will be asked for the password (as an alternative you can use
/usr/bin/mysqladmin u root p password <new password> )
su root
rpm i MySQL-shared-compat-4.0.13-0.i386.rpm
rpm i MyODBC-3.51.14-1.i386.rpm
su root
rpm i unixODBC-2.2.2-94.i386.rpm
Please execute /sbin/ldconfig, so that myAMCMessenger can find the required shjared
libraries.
myAMC.FA-Messenger V9.0
General section
Page 13 of 148
Stand: 05.04.2012
Getting Started
rpm i myAmcMessenger-server-*.rpm
If the Messenger Server is not running, you have to check the Messenger log file which you
will find in /opt/myAMC/Messenger/log/ . There are four main reasons which have to be
considered:
User and password wrong. Solution: /etc/init.d/myAMC.MessengerSrv connect <user>
<password>.
The name of the myODBC driver slightly differs, because you installed a different version of
it. In this case you have to correct the entry Driver in the files /etc/odbc.ini and
/root/.odbc.ini.
The SNMP port (default: 162) is blocked. In this case you either have to quit the program
blocking the port ( netstat -a -p udp ), or you have to configure the Messenger so that it
does not use the default SNMP port. As an alternative you can switch to another port. The
SQL command update CNF_CONFIGGLOBAL set STRINGS='-1' where TYPES=
'SNMPRCVPORT' and APPLICATION=9 switches off the SNMP port. To use another port,
replace STRINGS=-1 with STRINGS=8162 in the statement above.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 14 of 148
Getting Started
2.3.2
2.3.3
myAMC.Messenger configuration
The myAMC.Messenger configuration can be started via
Windows
Start Menu Programs Siemens myAMC WebGui FaConfigGui
Linux
/opt/myAMC/FA_ConfigGui/configgui.sh
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 15 of 148
Getting Started
2.4 Examples
2.4.1
Procedure
1. Set up outgoing email functionality by configuring MailServer and MailSender in the
FlexFrame / Basic forwarding menu.
2. Enter the administrators email address in the field MailReceiver of the FlexFrame /
Basic forwarding menu.
3. Enter hostname or IP address of your external management console in the fields
TrapTarget and TrapCommunity of the FlexFrame / Basic forwarding menu.
Result
Whenever myAMC.Messenger receives a message, it is automatically forwarded to your
administors email address and to the central management station. Additionally, all
messages can be browsed in the MessageView of the myAMC.ConfigViewer or any
other myAMC GUI.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 16 of 148
Getting Started
2.4.2
Procedure
4. Set <MailServer>, <MailServerPort> and <MailReceiverPort>, <MailSender> in the
Messenger / Messages / Mail Settings menu.
5. Create two new receivers. (Admin, Service) Therefore press the Add button at the
Messenger / Targets / Message Receivers menu.
6. Select each of the receivers and press the Physical receivers button. Now select the
Physical Receivers by pressing the Add button.
7. Select the Physical Receiver type Email. In the Address field there should be placed
the email address of the according receiver.
8. Create two new groups. (AdminGroup, ServiceGroup). Therefore press the Add
button of the Messenger / Targets / Receiver Groups page.
9. The new receivers have to be assigned to the new groups. Therefore select a
Receivers Group and press Timed receivers. Choose the receiver which you will
add to the group and press the Save button.
10. Last but not least the different reactions have to be specified. Press the Add button
in the Messenger / Filter & Reactions / Reactions dialog.
11. printer is offline therefore select Application==myAMC.Printer, set the tick
ShortMessage in the Message contens menu and fill in the textfield printer is offline.
The receiver group has to be changed into one of the new groups (AdminGroup)
created above.
12. paper is empty therefore select Application==myAMC.Printer, set the tick
ShortMessage in the Message contens menu and fill in the textfield paper is empty.
The ReceiverGroup in the Message source menu has to be changed to one of the
new groups (AdminGroup) created above.
13. toner cartridge is empty therefore select Application==myAMC.Printer, set the tick
ShortMessage in the Message contens menu and fill in the textfiled toner cartrige is
empty. The ReceiverGroup in the Message source menu has to be changed to one
of the new groups (AdminGroup) created above.
14. toner cartridge is empty not only the AdminGroup but also the ServiceGroup should
be notified. So create a new reaction fill in the same parameters as above but now
the receiver group should be ServiceGroup.
Result
If printer is offline or paper is empty a person (Admin) will get an email. If toner cartrige
is empty a person (Admin) and also a person (Service) will get an email
2.4.3
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 17 of 148
Getting Started
Sending an email and a SMS to a network admin and an admin for a SAP R/3 system if
the interface of the SAP applicationserver is not available.
Procedure
1. Set MailServer, MailServerPort and MailReceiverPort, MailSender in the Messenger
/ Messages / Mail Settings menu.
2. Set in the Messenger / Messages / Pager Settings menu the Use Pagers hook and
select a modem.
3. Create two new receivers. (Admin, NetAdmin) Therefore press the Add button on
the Messenger / Targets / Message receiver page.
4. Select each of the receivers and press the Physical receivers button. Now select the
Physical Receivers by pressing the button Add button.
5. Select The Physical Receiver Type Email. In the address field shold be placed the
email address of the according receiver.
6. Select The Physical Receiver Syub type Pager and the correct Pager Center and fill
in the Address field the mobile number you want send a SMS.
7. Create a group. (NetGroup) Therefore press the Add button in the Messenger /
Targets / Receiver Groups page.
8. The new receivers have to be assigned to the new groups. Therefore select a
Receivers Group and press the Timed receivers button. Press the Add button and
choose the receiver which you will add to the group and press the Save button.
9. Last but not least the reaction has to be specified. Press the Add button in the
Messenger / Filter & Recations / Reactions dialog. Set the tick Host and fill in the
textfield the <hostname>.Then select Application==myAMC.Net, set the tick
ShortMessage in the Message contens menu and fill in the textfield interface not
available. The ReceiverGroup in the Message source menu has to be changed to
the new group (NetGroup) created above.
Result
If the network interface of the SAP applicationserver host isn't available two persons
(Admin, NetAdmin) will get an email and a SMS.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 18 of 148
3 Introduction
3.1 Architecture
myAMC.Messenger is the component of the myAMC application management center
responsible for the management of alerts, events und reactions. This chapter tells you how this
component can be integrated into an enterprise management solution.
myAMC.Messenger is a modular component which consists of the following components:
Messenger Service
Repository
Message viewer integrated with myAMC and FlexFrame graphical user interface
Enterprise
event console
myAMC.Messenger
myAMC.MessageViewer
myAMC.Messenger
Application-specific messages, alerts, events
Server, Network,
Storage
myAMC
FA Agents
Master
Repository
Slave
Repository
myAMC
LogAgent
Log
files
Figure 1
myAMC.Messenger: Structure
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 19 of 148
myAMC.Messenger: Configuration
3.1.1
Components
The myAMC.Messenger Repository is he database with the configuration and the eventdata.
The myAMC.Messenger Repository can be realiced as MS-SQL and mySWL database.
3.1.2
Operating modes
The myAMC.Messenger server can work in two different operating modes.
Learn Mode
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 20 of 148
myAMC.Messenger: Configuration
3.1.3
Input interfaces
myAMC.Messenger provides several input interfaces for messages.
The Receiving Interfaces are responsible for receiving and identifying incoming alerts and
messages. Functionality and configurating differ between different interface types.
A myAMC.Messenger in site A can send a Email to the Mailexchange proxy in site A. The
Mailserver in Site A transfers the message to a definid Email Adress for site B. The mailserver
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 21 of 148
myAMC.Messenger: Configuration
on site B makes an forward to the local emailservice of messenger in site B. the message can
be tsendes with the format MailTrans2Messenger.
3.1.3.5 Messenger TicketID
The myAMC.Messenger can create a unique Ticket ID send with every SNMP Trap or email.
The TicketID has to be definied with myAMC.Messenger Configuration GUI global variables
Serialnumber.
The reactionmode defines the message history as receivertyp like email or snmp Trap.The
difference to the standard mode is that every message is stored in the history. The
reactionmode stores only the message which can pass the filterrule for the message history.
The standard filter definition for the reactionmode has a all match filter rule, that means the
same result as the standard mode. To use the reactionmode for special tasks the reaction rule
has to be adapted.
An other feature of the new reactionmode is to split the incoming events in dependency of
message typ to different history tables. Such a table must have the same datastructure as the
standard history table. In the default repository of the messenger are tables
DYN_HISTORY_1
DYN_HISTORY_2
DYN_HISTORY_3
are predefined.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 22 of 148
myAMC.Messenger: Configuration
3.3 Filters
Extensive support for filtering is one of the most important features of myAMC.Messenger.
Input interface
No reaction
Receive and identification rule
sets
Standard and
Precision filter
Filter
rules
No reaction
Reactions
Standard message
history
Receiver groups
Group x
Group y
Group z
Alternative
message
history
Output interface
Physical receiver
Repositor
y
Email, SNMP Trap, external program
Figure 2
myAMC.Messenger:Filter: Workflow
myAMC.Messenger provides both Standard filters and Precision filters, which can be used to
specify, which actions to perform whenever an important event occurs.
The Standard filter decides whether to react on an alert and whether to forward the incoming
alert to the Precision filter.
This mechanism allows easy activation or deactivation of groups of alerts while leaving the
possibility for special treatment of specific alerts.
A simpe example is to deactivate the Toner empty alert, sent by myAMC.Printer using the
Standard filter. The Precision filter can now be used to activate this alert for specific printers,
while the alert is ignored for other printers.
Filters can be applied for a number of attributes for each alert using wildcards which gives the
administrator a powerful tool to react on specific events and scenarios.
The filtering component also provides time-based filtering. Alerts of similar type, which arrive
within a specified time span, can be filtered so that only one alert is allowed to pass. The time
filter specifies the time range, for which alerts of similar type are blocked. As long as the time
filter is active for a specific alert the number of similar incoming alerts is displayed together
with the current alert.
The parameter Discard first controls whether to forward the first or last <count> messages.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 23 of 148
myAMC.Messenger: Configuration
Discard first is not set: The first <count> messages in the time range will be processed; the
following messages will be discarded.
Discard first is set: The first <count> messages will be discarded, the following messages will
be processed.
The filter mechanism, in conjunction with the configured reactions for all alerts are a base
requirement for the reasonable use of Notification via SMS and/or email.
No reaction
Standard filter
Standard filter active,
no precision filter
No reaction
Precision filter
Message matches
filter perform
reactions
Standard
message history
Reactions
Repository
Reactions
Figure 3
Alternative
message
history
myAMC.Messenger: Filter
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 24 of 148
myAMC.Messenger: Configuration
3.4 Reactions
Essential parts of the myAMC.Messenger are the many possibilities to react on received,
identified and filtered messages. You can define reactions in order to notify administrators or
operators. After a message passes the filters, it can be routed to different receivers using
several types of reactions.
3.4.1
Reaction types
myAMC.Messenger offers a wide range of reaction types.
The following services are available:
Execution of an arbitrary external program, e.g. to establish a link to a Job Control System
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 25 of 148
myAMC.Messenger: Configuration
3.4.2
Receiver groups
Receiver groups are an easy way to define reactions targeted at a group of message
receivers. Each receiver group consists of one or more receivers. Each receiver may specify
individual reactions and a scheduling plan for time-based message delivery. For example you
can send alerts to an administrator by email during the day and by SMS in the evening. In
addition a receiver group may specify a follow-up reveiver group, which is activated when the
receivers of the previous group are not available.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 26 of 148
myAMC.Messenger: Configuration
Requirements :
All messages have to be send to all myAMC.Messenger services.
All myAMC.Messenger services can receive multicast messages from each other. In case
of problems the routing like this have to added (route add net 224.0.0.0 netmask 240.0.0.0 dev
lo).
To activate the master/slave mode the global variable ABC must be true. In other cases the
myAMC.Messenger works as Master..
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 27 of 148
myAMC.Messenger: Configuration
3.7 Repository
All myAMC components use a relational repository based on a MySQL or MS-SQL Server
database. The repository is devided into several parts of configuration data, currently
processed messages, message history, as well as basic data for the creation of filter functions
and reactions.
The repository from myAMC can be integrated with the main repository of other myAMC
components or can be used seperately to monitor and distribute events to serveral workplaces
and sites. Each instance of myAMC.Messenger can send SNMP traps, so you can build
hierachical, distributed and redundant structures very easily.
3.7.1
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 28 of 148
myAMC.Messenger: Configuration
4 myAMC.Messenger Usage
4.1 Introduction
The myAMC.Messenger has a wide range of use. In the following chapters areas of use of
myAMC.Messenger are presented. The description of the corresponding configuration dialogs
can be found in chapter 5.
Enterprise
event console
myAMC.Messenger
myAMC.MessageViewer
myAMC.Messenger
Application-specific messages, alerts, events
Server, Network,
Storage
myAMC
FA Agents
Master
Repository
Slave
Repository
myAMC
LogAgent
Log
files
Figure 4
myAMC.Messenger: Structure
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 29 of 148
myAMC.Messenger: Configuration
4.2 Examples
4.2.1
4.2.1.1 Example 1
//Initialize output fields TYPESTRG, CATEGORY, HOST, SHORTMSG and SEVERITY
OutSType='Alarm';
OutSCat='AlCl';
OutSHost='';
OutSShortMsg=;
OutLSeverity=50;
//Copy the value of variable binding with OID .1.3.6.1.4.1.4321.1.1.1.2 to HOST field
IF(SnmpSGetByOid(VarS01,'.1.3.6.1.4.1.4321.1.1.1.2'))THEN OutSHost=VarS01 FI;
//If HOST field is empty then copy IP adress of sending host into
IF(OutSHost=='')AND(InSSendHostIp<>'')THEN OutSHost=InSSendHostIp FI;
//Copy the value of variable binding with OID .1.3.6.1.4.1.4321.1.1.1.3 to SHORTMSG field
//If this character string contains the word CRITICAL, the SEVERITY field is set to critical. If it
//otherwise begins with the word WARNING, the SEVERITY field is set to warning
IF(SnmpSGetByOid(VarS01,'.1.3.6.1.4.1.4321.1.1.1.3'))THEN
OutSShortMsg=VarS01;
ChrSUpper(VarS01);
IF(ChrSFind(VarS01,'CRITICAL')THEN OutLSeverity=250
ELSE IF(ChrSCmp(VarS01,'WARNING')THEN OutLSeverity=150;
FI FI;
FI;
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 30 of 148
myAMC.Messenger: Configuration
4.2.1.2 Example 2
//Initialize output fields TYPESTRG, CATEGORY, HOST, SHORTMSG, SEVERITY
//and GROUP
OutSType='Alarm';
OutSCat='AlCl';
OutSHost='';
OutSShortMsg=;
OutLSeverity=50;
OutSGroup='None'
//If HOST field is empty then copy IP adress of sending host to HOST field. If sending
//hostname is TestHost or IP address is 0.255.255.17 then setting GROUP field to Test
IF(OutSHost=='')AND(NOT(InSSendHostIp==''))THEN OutSHost=InSSendHostIp FI;
IF(OutSHost=='TestHost')OR(InSSendHostIp=='0.255.255.17')THEN OutSGroup='Test' FI;
//Read the 1st bit of the numeric value of the 2nd variable binding to VarL01.
//If the bit is set then set SEVERITY field to critical, otherwise set it to warning
//If the SnmpSGetOidByIdx function fails failes, the trap will be discarded
IF(SnmpSGetOidByIdx(VarS01,2))THEN
VarL01=KvtS2L(VarS02) & 7;
IF(VarL01>0)THEN
OutLSeverity=250;
ELSE
OutLSeverity=150;
FI;
ELSE
OutLValid=0;
FI;
//Get current timestamp (in GMT) and copy date and time as character string to
//the SHORTMSG field
VarL00=DateLGetAktSec();
IF(DateLSecToDateGm(VarS01,VarS02,VarL00))THEN
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 31 of 148
myAMC.Messenger: Configuration
OutSShortMsg='Date: ';
ChrSAdd(OutSShortMsg,VarS01);
ChrSAdd(OutSShortMsg,', Time: ');
ChrSAdd(OutSShortMsg,VarS02);
FI;
//Read all variable bindings starting from the 3rd and append the value to the SHORTMSG
//field
VarL00=SnmpLGetCount();
FOR VarL01=2,VarL01<VarL00,VarL01=VarL01+1 DO
IF(SnmpSGetByIdx(VarS01,VarL01+1))THEN
IF(VarL01==0)THEN
ChrSAdd(OutSShortMsg,'; ')
ELSE
ChrSAdd(OutSShortMsg,', ')
FI;
ChrSNoControl(VarS01,' ');
ChrSAdd(OutSShortMsg,VarS01);
FI;
ROF;
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 32 of 148
myAMC.Messenger: Configuration
4.2.2
Task
If a network connection to a monitored server is going down, myAMC.Messenger should
send a email to the network administrator. The trap from myAMC.Net contains the key
word ping and is critical.
Procedure
The following instructions explain all required steps in detail.
4.2.2.1.1 Configure the email connection
Figure 5
Open the myAMC.ConfigViewer tool and open the property page Messenger / Settings /
MailSettings. Enter the host name of your mail server, the address of the email sender, the
mail server port, and the mail receiver port.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 33 of 148
myAMC.Messenger: Configuration
4.2.2.1.2 Configure the user Administrator as receiver
Figure 6
Open the myAMC.ConfigViewer tool and open the property page Messenger / Targets /
Message Receivers. Press the Add-button. Enter the contact details of your network
administrator.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 34 of 148
myAMC.Messenger: Configuration
4.2.2.1.3 Configure the physical receiver of receiver Administrator
Figure 7
Open the myAMC.ConfigViewer tool and open the property page Messages / Tagets /
Message Receivers. Select your network administrator and press the button Physical
Receivers. In this dialog you press the Add-button and select you physical receiver. The
physical receiver should be Email, the address is the email address of your network
administrator. Save every change by clicking the Save button.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 35 of 148
myAMC.Messenger: Configuration
4.2.2.1.4 Create a new group Network_Group
Figure 8
Open the myAMC.ConfigViewer tool and open the property page Messenger / Targets /
Receiver Groups. Press the Add-button. Type the name of the new group: Network_Group. In
the field Comment you can type a comment you like. The field Next could be left empty.
Press the Save button
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 36 of 148
myAMC.Messenger: Configuration
4.2.2.1.5 Add your network administrator to the receiver group Network_Group
Figure 9
Open the myAMC.ConfigViewer tool and open the property page Messenger / Targets /
Receiver Groups. Select the receiver group Network_Group and press the Timed receiversbutton. Press the Add button at the bottom of the property page. Select your network
administrator and press Save.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 37 of 148
myAMC.Messenger: Configuration
4.2.2.1.6 Configure a suitable Standard filter
Figure 10
Open the myAMC.ConfigViewer tool and open the property page Messenger / Filters &
Reactions / Standard filters. Select the Add-button. Select as application myAMC.Net and as
severity Critical. Select the tick ApplyPrecisionFilter and ForwardMessage to deactivate the
filter. Press Save.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 38 of 148
myAMC.Messenger: Configuration
4.2.2.1.7 Configure a suitable Precision filter
Figure 11
4.2.2.1.8 Summary
Open the myAMC.ConfigViewer tool and open the property page Messenger / Filter &
Reaction / Precision filter. Select the Add-button. Select application myAMC.Net with operation
<==> (equal). Select severity Critical together with the operation <==> (equal) in the Message
contents panel. Activate the field ShortMessage and type *ping*. Go back to the Message
source panel; enable the precision filter and press Save.
In the last chapter and in this chapter a standard filter and a precision filter were defined.
These two filters work together as described below:
The standard filter makes sure that only selected critical alerts from myAMC.Network will be
processed by delegating to a precision filter to restrict the messages being forwarded to the
user Administrator.
The precision filter takes the alerts from the newly configured but deactivated standard filter
and makes sure that all critical alerts from myAMC.Network which contain (!) the word ping in
the short message will be processed by the reaction.
This behavior of the two filters is also described in chapter 0 and corresponds with the 2
in the table of the chapter.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
nd
row
Page 39 of 148
myAMC.Messenger: Configuration
4.2.2.1.9 Test your example
Now you can test your example. The best way to do this is if you configure a non critical PC in
myAMC.Network and unplug the LAN connection from this PC. With the next poll of this PC
the necessary trap will be sent to the myAMC.Messenger and then sent as email to your
network administrator.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 40 of 148
myAMC.Messenger: Configuration
Procedure
The following instructions explain all required steps in detail.
Figure 12
Open the myAMC.ConfigViewer tool and open the property page Messenger / Settings /
MailSettings. Enter the host name of your mail server, the address of the email sender, the
mail server port, and the mail receiver port.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 41 of 148
myAMC.Messenger: Configuration
Figure 13
Press the Physical Receivers button and choose the desired physical receiver type. The
receiver type should be Email, the address is the email address of your network administrator.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 42 of 148
myAMC.Messenger: Configuration
This email address is used to send the mail to. The Summary message is sent as email
subject, while the Detailed message is used as email body.
Note: The email address specified in the dialog Message Receivers is not used for this
purpose.
Figure 14
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 43 of 148
myAMC.Messenger: Configuration
4.2.2.2.4 Physical receiver: Pager
Open the myAMC.ConfigViewer tool and open the property page Messenger / Targets /
Message Receivers. Choose an existing receiver or press the Add-button to create one. Press
the Physical receivers button. Press the Add button and choose the desired physical receiver
type. The receiver type should be Pager along with the target mobile service operator. The
address is the mobile phone number of the administrator. This phone number is used to send
a SMS.
Note: The phone number specified in the dialog Message Receivers is not used for this
purpose.
Note: This feature is only supported for a myAMC.Messenger running on Windows.
Figure 15
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 44 of 148
myAMC.Messenger: Configuration
4.2.2.2.5 Physical receiver: File
First open the myAMC.ConfigViewer tool and open the property page Messenger / Message
output / Files. Press the Add button set the logfilename (e.g.printer alter file) type in the
physical file name (e.g. C:\var\log\printer_alerts.out) and if desired set the file size restrictions.
Figure 16
Next open the myAMC.ConfigViewer tool and open the property page Messenger / Targets /
Message Receivers. Choose an existing receiver or press the Add-button to create one. Press
Physical receivers, than the Add button and configure your physical receiver. The physical
receiver type should be File, the sub type should be the one defined in the File dialog in the
section above.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 45 of 148
myAMC.Messenger: Configuration
Figure 17
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 46 of 148
myAMC.Messenger: Configuration
Figure 18
Switch to the property page Messenger / Targets / Message Receivers. Choose an existing
receiver or press the Add-button to create one. Press the Physical Receiver button, than Add
button and select your physical receiver. The physical receiver type should be External, the
Sub type should be the one defined in the external command dialog in the section above.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 47 of 148
myAMC.Messenger: Configuration
Figure 19
Next open the property page Messenger / Targets / Message Receivers. Choose an existing
receiver or press the Add-button to create one. Press the Physical Receiver button, than the
Add button and select your physical receiver. The physical receiver type should be Table, the
sub type should be the one defined in the Tables dialog in the section above.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 48 of 148
myAMC.Messenger: Configuration
Figure 20
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 49 of 148
myAMC.Messenger: Configuration
Result
from Monday to Friday <person1> will be alerted in the time from 8:00am to 12:00 pm.
<Person2> will be alerted on these days from 12:00 pm to 04:00 pm.
Note
Procedure
The following instructions explain all required steps in detail.
Figure 21
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 50 of 148
myAMC.Messenger: Configuration
4.2.2.3.2 Create a group
Now we have to create a group. (e.g. Shiftplan1) Change to the Receiver Groups dialog
and press the "Add" button. Fill in the name of the new group. (e.g. shiftplan1) and press the
Save button. After pressing the Timed receivers button, press the Add button and select
the receivers Person1 resp. Person2 and press the Save button.
Figure 22
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 51 of 148
myAMC.Messenger: Configuration
4.2.2.3.3 Select the group created before
Now select the group created before (Shiftplan1), press the Timed receivers button and select
the receiver (<Person1>) for whom you want to specify a time range. Now press the Receiver
schedules button, a new dialog appears. Press the Add button and select the new time range
where <Person1> will be alerted. Do these steps as often as you want to specify different time
ranges you want to define for this person. At last press the Save button. Do this also for
receiver <Person2>.
Figure 23
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 52 of 148
myAMC.Messenger: Configuration
4.2.3
Procedure
The following instructions explain all required steps in detail.
Figure 24
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 53 of 148
myAMC.Messenger: Configuration
4.2.3.1.3 Assign receivers
Now you have to assign the receivers to the groups. Select the new group (<Office1>) and
press the Timed receivers button. Press the Add button and select the receiver you want to
add to the group. Do this with all recievers you want to add to this group and press Save. Do
these steps in a similar way for the other group.
Figure 25
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 54 of 148
myAMC.Messenger: Configuration
4.2.4
Example: Filter
Note: This feature is only available with myAMC.Messenger Expert.
Note: -
Procedure
The following instructions explain all required steps in detail.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 55 of 148
myAMC.Messenger: Configuration
Figure 26
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 56 of 148
myAMC.Messenger: Configuration
4.2.4.1.3 Select the file
Now you have to select the file in which you want to log all messages. Switch to the
Messenger / Message output / Files dialog and press the Add button. Now you can select the
name (description) of the file and the physical filename. If you want to restrict maximum file
size or age you can do this as well
Figure 27
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 57 of 148
myAMC.Messenger: Configuration
4.2.4.1.4 Create a receiver
Next you have to create a receiver, to do so change to the Messenger / Targets / Message
Receivers dialog. Press the Add button and fill in the parameters for this receiver. If you have
done this you have to assign the file specified above to a physical receiver of the new receiver.
Press the Physical receivers button, so a new dialog pops up. Now press Add and change the
sub type of the physical receiver to File and choose the file where you want to log the events.
Figure 28
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 58 of 148
myAMC.Messenger: Configuration
4.2.4.1.5 Create a group
Now it is time to create a group. Open the property page Messenger / Targets / Receiver
Groups.Press the Add button. Enter the name of the new group. (e.g. printer-admins). After
that select the new group and press the Timed receivers button and add the receiver created
in the section above. After that press the Save button.
Figure 29
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 59 of 148
myAMC.Messenger: Configuration
4.2.4.1.6 Specify a reaction
Last but not least the reaction has to be specified. Open the property page Messenger / Filters
& Reactions / Reactions. Create a new reaction with the Add button. Select the Application
<myAMC.Printer>, the ApplicationOperator should be <==> (equal). The receiving group
should be the one defined in the section above.
Figure 30
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 60 of 148
myAMC.Messenger: Configuration
Note
Procedure
The following instructions explain all required steps in detail.
Figure 31
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 61 of 148
myAMC.Messenger: Configuration
4.2.4.2.2 Create a precision filter
To create a precision filter press the Add button in the Messenger / Filter & Reactions /
Precision filter section. One criterion to log an alert is that the alert comes from a special host.
So enable the field Host and write in the hostname you want to filter. Dont set the ticks for
negation and case-sensitive. Another criterion is the message text. Only the text TRAY
EMPTY is part of the wanted message. So switch to the page Message contents and enable
the field ShortMessage. Dont set the ticks for the negation and case-sensitive. Go back to the
page Message source and set the application equal (<==>) to myAMC.Printer.
Figure 32
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 62 of 148
myAMC.Messenger: Configuration
Note
Procedure
The following instructions explain all required steps in detail.
Figure 33
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 63 of 148
myAMC.Messenger: Configuration
4.2.4.3.2 Create two receivers
Next step is to create two receivers (printer-admin, printer-service) as well as two receiver
groups (printer-admins, printer-services). The receiver printer-admin should belong to the
group printer-admins and the receiver printer-service is member of the group printer-services.
Please have a look at the examples above on how to perform these steps.
Figure 34
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 64 of 148
myAMC.Messenger: Configuration
4.2.4.3.3 Create two reaction filters
Now we have to create two reaction filters. Press the Add button in Messenger / Filter &
Reactions / Reactions dialog. The first filter should specify the TRAY EMPTY reaction. To do
so set the Application to myAMC.Printer, switch to the Message contents panel and set the
severity to Critical. Also activate the ShortMessage field and set the text to *TRAY EMPTY*.
Go back to the Message source panel and set the Receiver Group to "printer-admins".
Figure 35
The second filter should specify the CLOSE PRINTER COVER reaction. To do so set the
Application to myAMC.Printer, switch to the Message contents panel and set the severity to
Critical. Also activate the ShortMessage field and set the text to *CLOSE PRINTER COVER*.
Go back to the Message source panel and set the Receiver Group to printer-services.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 65 of 148
myAMC.Messenger: Configuration
Figure 36
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 66 of 148
myAMC.Messenger: Configuration
4.2.5
Example: Output
Note: This feature is only available with myAMC.Messenger Expert.
Note
Procedure
The following instructions explain all required steps in detail.
4.2.5.1.1 Design your output style
First you have to define the output style. Change to the Messenger / Message output / Output
styles dialog and press the Add button. Define the name of your own new style in the field
Description (e.g. myCompanyStyle1). In the field Text you can design your own style. Write
your own text mixed with parameters from the myAMC applications by selecting the
parameters you want (e.g. Error on @host@). The drop-down box provides all available
message fields. After you have defined your style press the "Save" button to finish.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 67 of 148
myAMC.Messenger: Configuration
Figure 37
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 68 of 148
myAMC.Messenger: Configuration
Figure 38
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 69 of 148
myAMC.Messenger: Configuration
4.3.1
Input interfaces
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 70 of 148
myAMC.Messenger: Configuration
4.3.2
Message structure
All messages received by other myAMC components through the SNMP interface have a welldefined structure.
4.3.3
4.3.4
Dynamic processing
For each message, all filter conditions are to be checked. In a filter condition, it is decided
whether a message corresponds to a criterion. Afterwards, it is checked in which group this
filter condition is configured.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 71 of 148
myAMC.Messenger: Configuration
4.3.5
Message group
A message group consists of receivers to receive the message. Each receiver may specify
one or more of the following message transport actions:
SNMP Trap
HTTP
External command
File
Table
Each transport method has a priority attached. A priority value of 0 disabled the corresponding
transport method. Methods with higher priority (i.e. lower numeric value) are tried before
transport methods with lower priority (i.e. higher numeric value). Only if no transport methods
of a priority level succeeded, the next level will be tried.
Additionaly each member of a group can be bound to one or more time ranges, e.g. to reflect a
service schedule..
4.3.6
Log File
For administrative use the myAMC.Messenger uses a log file to write errors, warnings or
program operations.
On a Windows installation it is located in <BASEDIR>\Messenger\AMCMsgServer.log.
And on a Linux system you can find it in <BASEDIR>/Messenger/log/AMCMsgServer.log.
<BASEDIR> is the folder of your myAMC.Messenger installation.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 72 of 148
5 myAMC.Messenger: Configuration
5.1 Introduction
Generally the messenger can be used with the default configuration settings. Usually though,
not all messages are treated the same way. Therefore, you can limit the transmissions by
configuring filter rules and user groups.
The following elements belong to the data set:
The data sets can be adjusted using the myAMC.ConfigViewer. Also, myAMC.Messenger has
been a built in learning mode to learn filters for unknown message types automatically.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 73 of 148
myAMC.Messenger: Configuration
5.2.1
Program handling
Figure 39
File
Exit
Closes the myAMC.ConfigViewer.
Config
Described in chapter 0 Tool Bar.
Settings
Here you can choose between the following options.
Connectors
Shows the registered connections, described in chapter 0.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 74 of 148
myAMC.Messenger: Configuration
5.2.1.2 Controls
This panel is the main control view, here you can add, edit, copy and delete data, close the
menu or refresh the view. The chosen action will be shown in the main panel. You can edit
existing data by clicking the item in the instances list of the main panel and modify the data.
Figure 40
Controls menu
Some menus will not support all of those options listed below, this is an overview of all
possible options you will have in the controls menu.
Close
Closes the current view.
Refresh
Refreshes the current view.
Delete
Deletes all selected setting configuration items in the table on the lower right.
myAMC.FA-Messenger V9.0
General section
Page 75 of 148
Stand: 05.04.2012
myAMC.Messenger: Configuration
Copy
Copies the selected configuration items in the table on the lower right.
Add
Creates a new configuration item.
Discard
Discards all unsaved changes of this view.
Save
Saves all changed settings of this view.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 76 of 148
myAMC.Messenger: Configuration
Figure 41
Main panel
The main Panel is the view where you can see and change all data wich can be
configured by the myAMC.ConfigViewer. You can also see the instances of already
configured items and their values.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 77 of 148
myAMC.Messenger: Configuration
Figure 42
Exit
This button closes the myAMC.ConfigViewer. The user will be prompted whether
to save any unsaved data.
Connectors
Shows the registered connections and their connection states (described in
chapter 0).
Configuration
This button provides access to all available configuration actions . By rolling over
the desired component you will see a list of the menus of the component. Clicking
them will display it in the main panel.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 78 of 148
myAMC.Messenger: Configuration
5.2.1.5 Connectors
myAMC.ConfigViewer needs to connect to the data source(s) containing the configuration
data. Data sources may comprise databases or web services. On this property page you can
setup connections to the configuration data sources. The connection can be stored
permanently, so the connections need to be set up only once.
Figure 43
Add
Here you can add a new connection.
Remove
Removes the selected entries
Save
Saves the currently configured connectors. This configuration will be restored upon
program (re)start.
Reload
Reloads the connectors file
Edit
Edit the selected connector
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 79 of 148
myAMC.Messenger: Configuration
Tools
Test
Test availability of the connection. This can be used to ensure, that the
connection is configured correctly, e.g. with correct user name and password.
Import
Import previously configured connectors from a file.
Export
Export the connectors to a file. Only the selected connectors will be exported. You
can select multiple connectors by pressing Shift and/or Ctrl key.
Add a connector
Database
Creates a new connection with a database.
Here you can setup the database settings which will allow you to connect. In this
version it is possible to use a MySQL or a MS-SQL database.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 80 of 148
myAMC.Messenger: Configuration
Web
Http connections are currently not supported.
Import
Import a connectors file with previously configured connectors.
Note: If more than one connector provides access to a configuration data set,
myAMC.ConfigViewer will connect to the first one in the list, or the one with the
highest priority.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 81 of 148
myAMC.Messenger: Configuration
5.2.2
Messenger
5.2.2.1 Settings
5.2.2.1.1 Message Settings
This page contains basic settings for the configuration of myAMC.Messenger. All changed
data is stored by clicking the Save Button. They only take effect after a restart of
myAMC.Messenger (except Filter Learn Mode).
Figure 44
General section
Page 82 of 148
myAMC.Messenger: Configuration
the message history can be browsed using the Message View of myAMC.ConfigViewer
or other myAMC GUIs.
Log level
This option defines the myAMC.Messenger logfile loglevel.
Normal
This is the standard setting, you will see all important log information of
myAMC.Messenger. Normal messages include: ERR, FAT, WRN and MSG.
Warning
Using this setting you will see warnings and critical log information of
myAMC.Messenger. Warning messages include: ERR, FAT and WRN.
Critical
Using this setting you will only see critical log information of myAMC.Messenger.
Critical messages include: ERR and FAT.
Debug
This setting is not recommended, it is only for debugging purposes.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 83 of 148
myAMC.Messenger: Configuration
Figure 45
MailServer
Host name or IP address of your SMTP server. If this field is empty, the transmission of
emails is disabled.
MailSender
Email address of the sender (i.e. myAMC.Messenger). This address is used as sender
and reply-to address.
MailServerPort
Port number on which your SMTP server accepts incoming connects. Default port is 25.
MailReceiverPort
Port number on which myAMC.Messenger will listen for incoming email messages.
Default port is 25.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 84 of 148
myAMC.Messenger: Configuration
Figure 46
MailServer
Host name or IP address of your SMTP server. If this field is empty, the transmission of
emails is disabled.
MailSender
Email address of the sender. This address is used as sender and reply-to address.
MailTarget
Email address of the receiver.
TrapTarget
IP address or host name of the trap target.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 85 of 148
myAMC.Messenger: Configuration
TrapCommunity
SNMP community string of the trap target.
Figure 47
Use Pager
Switch on to enable pager messages. Otherwise all pager messages will fail.
Max Pager Retries
Pager centers can be busy (state of line) or may not answer your outgoing call. In this
case myAMC.Messenger retries to connect to the pager immediately. With this
parameter you can specify how often myAMC.Messenger tries to send a message to a
pager before setting its state to Failed.
Max Pager Messages Per Call
This setting limits the amount of messages sent during a single connection to the pager
center. This setting may limit the individual amount configured for each pager center too.
The value affects memory usage and therefore the scalability of the server
Modem
Here you can select the modem that should be used for connecting pager centers. If this
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 86 of 148
myAMC.Messenger: Configuration
is an ISDN device it must be able to establish a connection using X.75 or V.110. See the
manual of your ISDN device on how to configure outgoing calls. Make sure that there is
a configured modem connected to the selected device of your server.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 87 of 148
myAMC.Messenger: Configuration
5.2.2.2 Messages
5.2.2.2.1 Messages
The message view allows easy brwosiung of all messages contained in the message history.
Figure 48
The time range of messages to display can be controlled using the following elements:
Here you can set up the start of the time range. If the time span is set to a value
other than <None>, the end of the displayed time range will be adjusted
accordingly.
Please press
Goes back for the amount of time specified by the span field
General section
Page 88 of 148
myAMC.Messenger: Configuration
Goes forward for the amount of time specified by the span field
Sets the end of the display time range to the current time and the begin of the
display time range to the current time minus the the amount of time specified by
the span field
Here you can set up the time span to display. If set to <none> the time span can
be specified freely by editing the from and/or end field. Otherwise the time
range start is always adjusted, when time range end has been changed and vice
versa.
Here you clear the message cache and set up the cache size.
Note: The cache wil be cleared as a result!
Here you can setup the end of the displayed time range. If the time span is set to
a value other than <None>, the start of the displayed time range will be adjusted
accordingly.
Please press
The message views is refreshed periodically with the end of the displayed time
range being set to the current time. This allows a live update of all new
messages. Messages older than twice the time span will drop out off the message
view.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 89 of 148
myAMC.Messenger: Configuration
Figure 49
Handling and controls are identical to the Message View described in section 5.2.2.2.1.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 90 of 148
myAMC.Messenger: Configuration
5.2.2.3 Targets
5.2.2.3.1 Message Receiver
On this page you can setup message receivers. A receiver might be an existing person or
reflect a role within your organization. Each receiver should state a meaningful name and may
have on or more physical receivers. The receiver name is used in log files of the server to
name a receiver.
Actions on receivers are stored in database at once. They take affect at program start and
whenever the configuration is reloaded (see Cycletime config reload (secs) in section
5.2.2.1.1).
Note: Deleting a receiver which has physical receivers or which is referenced by a timed
receiver is not possible. All references to a receiver must be deleted before it can be deleted.
Note: This feature is only available with myAMC.Messenger Expert.
Figure 50
Message Receiver
List of configured receivers with his postal address, phone number and Email address.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 91 of 148
myAMC.Messenger: Configuration
Figure 51
The following table decribes all combinations of available methods and the corresponding
address and message format.
Receiver
Type
Receiver
Subtype
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
Address
Email address
of receiver
General section
Page 92 of 148
myAMC.Messenger: Configuration
External
A configured
external
application
(see chapter 0)
File
A configured
output file (see
chapter 0)
Configured output
style for the output
file
Http
A configured
http receiver
Take
HTTPFlexFrame
if you are not shure
Pager
The Pager
center of the
receiver
The phone
number of the
receiver
SNMP
myAMC
Format,
Hostname or
IP address of
the receiver
and SNMP
community
string,
separated by a
comma. If you
dont enter a
community it is
set to public
automatically.
Format of the
SNMP trap.
SrvrView
Format
Unicenter
Format
Take
SrvrView
Format if you
are not shure
Table
Alternative
tables
Take ShortMsg if
you are not shure
History
Plan
Testplan name
Start or Stop
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 93 of 148
myAMC.Messenger: Configuration
Receiver Groups
On this page you can set up receiver groups and their timed receivers. They take affect at
program start and whenever the configuration is reloaded (see Cycletime config reload
(secs) in section 5.2.2.1.1).
Note: Deleting a receiver group which has receivers or which is referenced by another group
is not possible. All references to a receiver group must be deleted before it can be deleted.
Note: This feature is only available with myAMC.Messenger Expert.
Figure 52
Receiver Groups
A receiver group may contain one or more timed receivers. The timed receivers of the
selected receiver group are displayed by clicking the Timed receivers Button.
Name
Enter a unique name for this receiver group.
Comment
This is the place for a user comment and has no other affect.
NextGroupId
Here you can enter the next Receiver Group. If timed receivers of a receiver
group fail, messages will be sent to the next receiver group specified. You may
leave this field unset. In this case message processing will end with this receiver
group.
Timed receivers
Here you can add, edit and delete Timed receivers for the selected Receiver
Group.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 94 of 148
myAMC.Messenger: Configuration
Figure 53
Each transport method has a priority attached. A priority value of 0 disabled the corresponding
transport method. Methods with higher priority (i.e. lower numeric value) are tried before
transport methods with lower priority (i.e. higher numeric value). If one of these messages
fails, all messages with the next priority level will be sent. If one message with the lowest
priority fails, the whole timed receiver will fail and the next receiver group will be used if there
is one configured.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 95 of 148
myAMC.Messenger: Configuration
Figure 54
You can define a time range between two dates, e. g. 01.04.2007, 00:00:00 untill 01.05.2007,
00:00:00, as shown in Figure 54. This is only possible if you set Use date and time.
Figure 55
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 96 of 148
myAMC.Messenger: Configuration
You can define a time range between two weekdays, e. g. Monday, 00:00:00 untill Friday,
23:59:59, as shown in Figure 55. This is only possible if you set Use weekday and time.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 97 of 148
myAMC.Messenger: Configuration
On this page you can set up the Standard Filters. A filter can be used to determine whether to
forward or discard messages. Standard Filters work together with Precision Filter, which can
be used to reverse the decision of the Standard Filter. The working relationship of these two
filters is described in section 0.
Note: This feature is only available with myAMC.Messenger Expert.
Figure 56
Standard filter
The list of Standard filters. Each myAMC input message should only have one matching
filter. If there are more matching filters the first matching filter as returned by the
database will be used.
Application
Here you can specify which Application should be filtered.
Severity
Here you can specify which severity should be filtered.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 98 of 148
myAMC.Messenger: Configuration
Category
Here you can specify which Category should be filtered.
ForwardMessage
The tick ForwardMessage specifies whether a matching message should be
further processed or simply be discarded. This field is always used together with
ApplyPrecisionFilter. See section 0 for details.
ApplyPrecisionFilter
This tick activates the processing of the myAMC precision filter. How the precision
filter works together with the Standard filter is described in chapter 0.
SuspendMode
If you click Suspend, only a configured maximum <count> of similar messages
will be sent within the configured time range.
DiscardFirst
If the tick is set only the first <count> messages in the configured time range will
be discarded. If the tick is not set the first <count> messages will be processed
and the rest will be discarded. The message <count> can be set in field
SuspendCount.
SuspendTime
Here you set up the tmespan for the suspending resp. discarding.
SuspendCount
Here you set up the number of messages to keep or wait for when in
SuspendMode.
Note: If Filter Learn Mode is switched on, new filters might be added to the database
while configuring filters with myAMC.ConfigViewer tool. These filters wont be
shown in the view Messenger / Filters & Reactions / Standard filters unless the
filters are reloaded using Refresh.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Page 99 of 148
myAMC.Messenger: Configuration
Numeric comparison
The following table gives an overview over possible numeric comparisons.
Off
Turns this precision filter criterion off. This criterion is not evaluated.
<
<=
All values which are less than or equal to the selected value.
==
<>
>=
All values which are greater than or equal to the selected value.
>
Textual comparison
This section defines the filter semantics for textual field values. The text expression may
contain wildcards, i.e. an asterisk <*> (zero or more characters) and question mark <?>
(one single character) as placeholder for variable text.
Active
Activates the current filter criterion.
Negate
Negates the result of the text matching process.
Case
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Figure 57
Enabled
Activates or deactivates this precision filter.
Poolname
Name of the pool the message originates from.
Role
Here you can specify which role should be filtered, (for future use).
Group
Name of the group the message originates from.
System
Name of the system the message originates from.
Host
Name of the host the message originates from.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Instance
Name of the instance of service the message originates from. (for future use).
Application
Application, which sent the message.Here you can enter all applications defined in the
property page Messenger / Advanced / Applications (see chapter 5.2.2.7.1). When using
a compare-parameter other than <==>, you need to know the numeric application ID,
which is shown in the property page Application, too.
InstanceNumber
Numeric id of the instance of service the message originates from.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Figure 58
Severity
Possible values for the field Severity are configured in the property page Severity (see
chapter 0). When using a compare-parameter other than <==>, you need to know the
numeric severity value, which is shown in the property page Severity, too.
Priority
Here you can specify which priority should be filtered.
Category
Here you can specify which category should be filtered.
ServiceClass
Here you can specify which service class should be filtered.
ShortMessage
Here you can specify which short message should be filtered.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Figure 59
UseDate
Here you can can choose if you want to use the filter during a specific date, or you use it
recurring at specific weekdays.
Begin
Defines the start weekday of the scope.
Begin
Defines the start date of the scope and the time.
End
Defines the end weekday of the scope.
End
Defines the end date of the scope and the time.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
SuspendMode
If you tick Suspend, only a configured maximum <count> of similar messages will be
sent within the configured time range.
DiscardFirst
If the tick is set only the first <count> messages in the configured time range will be
discarded. If the tick is not set the first <count> messages will be processed and the rest
will be discarded. The message <count> can be set in field SuspendCount.
SuspendTime
Here you set up the tmespan for the suspending resp. discarding.
SuspendCount
Here you set up the number of messages to keep or wait for when in SuspendMode.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
5.2.2.4.2.5 Other
This page contains severy rarely used filter fields.
Figure 60
SymbolicRole
Here you can specify which symbolic role should be filtered.
SymbolicGroup
Here you can specify which symbolic group should be filtered.
SymbolicSystem
Here you can specify which symbolic system should be filtered.
SymbolicHost
Here you can specify which symbolic host should be filtered.
SymbolicInstance
Here you can specify which symbolic instance should be filtered.
Class
Here you can specify which class should be filtered. The alert classes of the
myAMC.R/3 Agent resp. myAMC.LNI SNMP manager are:
myAMC.FA-Messenger V9.0
General section
Page 106 of 148
Stand: 05.04.2012
myAMC.Messenger: Configuration
Class-Number
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
Description
State Change
SAP System Up
10
11
12
Buffer
13
Enqueue
14
Rollpage
15
Trace
16
Dispatcher Queue
20
Performance Dialog
21
Performance Update
22
Performance Batch
23
Performance Spool
30
Abap Update
31
Abap Error
32
Abap Sql
41
DB Indices
42
DB Freespace
43
DB Archiver Stuck
44
DB Backup
51
Spool
52
Archive
53
General Purpose 3
54
General Purpose 4
55
General Purpose 5
56
General Purpose 6
57
General Purpose 7
58
General Purpose 8
59
General Purpose 9
60
General Purpose 10
61
General Purpose 11
62
General Purpose 12
63
General Purpose 13
64
General Purpose 14
General section
myAMC.Messenger: Configuration
65
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General Purpose 15
General section
myAMC.Messenger: Configuration
Figure 61
The precision filter is only used if ApplyPrecisionFilter is enabled in the matching Standard
Filter. Otherwise the precision filter is not used for further processing of the current message
and the result of the standard filter defines whether the message is forwarded to the reaction
st
rd
or not (see 1 and 3 row in the table below).
Note: The Precision Filter always reverses the result of the previously passed Standard Filter.
ForwardMessage
field in
Standard Filter
ApplyPrecisionFilter field in
Standard Filter
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
Standard Filter
is matching
No (no further
processing in
precision filter)
General section
Precision
Filter is
matching
Forward to
reaction
No
myAMC.Messenger: Configuration
Yes
Yes
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Yes
No
No
Yes
No
No
Yes
myAMC.Messenger: Configuration
5.2.2.4.3 Reactions
On this page you can setup the reaction on successfully filtered messages.
For a better overview this property page is subdivided into logical groups which are described
in the following sections.
Note: This feature is only available with myAMC.Messenger Expert.
Numeric comparison
The following table gives an overview over possible numeric comparisons.
Off
Turns this precision filter criterion off. This criterion is not evaluated.
<
<=
All values which are less than or equal to the selected value.
==
<>
>=
All values which are greater than or equal to the selected value.
>
Textual comparison
This section defines the filter semantics for textual field values. The text expression may
contain wildcards, i.e. an asterisk <*> (zero or more characters) and question mark <?>
(one single character) as placeholder for variable text.
Active
Activates the current filter criterion.
Negate
Negates the result of the text matching process.
Case
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Figure 62
Enabled
Activates or deactivates the message reaction. A deactivated message reaction has the
same effect as if you delete the message reaction.
Enabled
Disabled
Group
Specifies the receiver group where the message should be sent. How to configure a
receiver group is described in chapter 0.
Poolname
Name of the pool the message originates from.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Role
Here you can specify which role should be filtered, (for future use).
Group
Name of the group the message originates from.
System
Name of the system the message originates from.
Host
Name of the host the message originates from.
Instance
Name of the instance of service the message originates from. (for future use).
Application
Application, which sent the message.Here you can enter all applications defined in the
property page Messenger / Advanced / Applications (see chapter 5.2.2.7.1). When using
a compare-parameter other than <==>, you need to know the numeric application ID,
which is shown in the property page Application, too.
InstanceNumber
Numeric id of the instance of service the message originates from.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Figure 63
Severity
The possible values of this field are all severities that are configured in the property
page Messenger / Advanced / Severity, (see chapter 0). To use a compare-parameter
you must know the numeric value of the severity.
Priority
The priority of the message you want to react on.
Category
The category of the message you want to react on.
ServiceClass
The service class of the message you want to react on.
ShortMessage
The short description of the message you want to react on.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
5.2.2.5.1 File
This property page contains settings required to write messages into a specified file. Changed
settings are stored by pressing the Save button of the property page. They take effect after a
restart of myAMC.Messenger.
Note: This feature is only available with myAMC.Messenger Expert.
Figure 64
File
List of all configured output files. These output files can be referenced from the Physical
Receiver property page Messenger / Targets / Message Receiver (see chapter
5.2.2.3.1).
Name
Symbolic name of the output file definition. This symbolic name is used referenced from
the Physical Receiver property page Messenger / Targets / Message Receiver (see
chapter 5.2.2.3.1).
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
MaximumMessages
This value specifies the maximum number of messages stored in the output file. If the
number of messages stored in the output file has reached the maximum value, it is
automatically renamed to the output file name with additional extension .old. This
procedure will be repeated every time the maximum number of messages will be
reached. This feature is disabled if the maximum number of messages is set to 0.
MaximumSize
This value specifies the maximum file size in KB. If the output file has reached the
maximum file size, it is automatically renamed to the output file name with additional
extension .old. This procedure will be repeated every time the maximum file size will be
reached. This feature is disabled if the maximum file size is set to 0.
MaximumAge
This value specifies the maximum age of the output file in seconds. If the output file is
older than this value it is automatically renamed to the output file name with additional
extension .old. This procedure will be repeated every time the maximum age of the
output file will be reached. This feature is disabled if the maximum age of the output file
is set to 0.
Filename
In this field you must configure the filename of the output file. You should ensure that
there is enough space on the specified disk device.
Note: The file name is interpreted by myAMC.Messenger on its host which is not
necessarily the same as the local host. So please make sure, that the directory actually
exists and is writable.
If you use a combination of these three output file restrictions the first occurrence of one
restriction causes a new output file. Any previously created .old files are discarded, when a
new one is created.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
5.2.2.5.2 Pagers
This page contains settings required in order to send messages to mobile phones via short
message service (SMS). Changed settings are stored by pressing the Save button. They only
take effect after a restart of myAMC.Messenger.
Note: Deleting a pager center which is referenced by a physical receiver is not possible. All
references to a pager center must be deleted before it can be deleted.
Note: This feature is currently only supported on Microsoft Windows platforms.
Note: This feature is only available with myAMC.Messenger Expert.
Figure 65
A page center is the gateway for sending SMS messages into a mobile network. There should
be one pager center for each network you want to send messages to. Individual mobile
phones are addressed using the Address field in the corresponding physical receiver. See
section 0 for details.
Please ask the mobile operator of the target wireless service for the required values. Examples
are provided for several German mobile networks.
Enabled
By turning this switch on the pager center will be usable.
Name
Name of the Pager Center
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Address
Phone number of the Pager Center
SenderAddress
Phone number of the sender; must be valid if you use UCP.
MaximumMessageLength
Specifies the maximum number of characters in a messages. If the message being sent
is longer than this parameter specifies, additional characters are cut off.
MaximumMessagePerCall
This setting limits the amount of messages sent during a single connection to the pager
center. This setting may limit the individual amount configured for each pager center,
too. This value affects memory usage and therefore the scalability of the server.
Pager properties
You must enter a unique name for a pager center. The phone number will be translated
using the settings of your modem configuration and must not be empty. You have to
specify the maximum number of messages the pager center accepts during one call.
Zero is used to specify an unrestricted number of messages. A GSM SMS can contain
up to 160 characters. If you use other pager systems you must enter their limits. But 160
is the maximum number of characters in this release. The short message string of a
received message can contain up to 160 characters. This message string will be sent to
the pager. If the pager system doesnt support 160 characters, the message may be cut
by the server. In this case a warning will be appended to the log file. Currently, TAP and
UCP pager centers are supported by the server. If you use a UCP pager center, you
must enter a sender address. This should be the number of your mobile phone.
Pager Center
Analogue Phone
Number
D1-TELEKOM
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Figure 66
External command
List of defined external applications. These external applications can be used for the
configuration in the Receiver property page (see chapter 5.2.2.3.1).
Name
You must enter a unique symbolic name for an external application.
Command
Enter the complete path and executable of your external programm. The external
application will be executed by myAMC.Messenger using the shell.
Note: The command line is interpreted by myAMC.Messenger on its host which is not
necessarily the same as the local host. So please make sure, that the command actually
exists and is executable.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Check Returncode
If enabled, myAMC.Messenger expects a return code of 0 as success, any other return
code will be interpreted as failed command.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
5.2.2.5.4 Tables
This property page contains settings required to write messages into an alternative history
table. Changed settings are stored by pressing the Save button. They take effect only after a
restart of myAMC.Messenger.
Note: This feature is only available with myAMC.Messenger Expert.
Figure 67
Here you can set up your table. This is for storing your messages in the tables specified below.
Name
Symbolic name of the table. This name is referenced by Physica Receivers.
TableName
Name of the table in the database
MaximumKeepTime
Maximum time the messages are kept in the table in hours.
Note: The pre-defined tables are available by default, additional tables wont be created
automatically, but must be created manually using external tools! Additionally, there is
currently no message view for manually created tables.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Figure 68
Name
Symbolic name for this WebService. This name is referenced by Physica Receivers.
Username
Username for the HTTP connection.
Password
Password for the HTTP connection.
ProxyHost
Hostname or ip address of the proxy server.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
ProxyPort
Port of the proxy server
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Figure 69
Output Styles
An output styles consists of a name and a text template, which may contain variable
parts,. It can be used for the configuration in the Receiver property page (see chapter
5.2.2.3.1).
Description
Symbolic name for the output style.
Text
Text template, which may contain variables in the form @varname@. A list of available
variables allows easy insertaion at the current cursor position.
The following table provides a list of available variables. Please note, that some fields might be
empty.
Field
Description
Address
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Application
Application Name
Category
Class
Date
Group
Host
Instance
Instance-Number
Numeric Info 0 9
Message Id
Priority
Role
Severity
Severity-Name
Short-Message
Text Info 00 .. 09
Symbol Group
Symbol Host
Symbol Instance
Symbol Role
Symbol System
System
Time
Type
Type-Name
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Figure 70
TrapTypes
List of all Trap types
EnterpriseOid
The Enterprise OID defines the object id of a trap. There is no need to declare it
completely. For example to include the two trap OIDs .1.3.6.1.4.1.231.694.1 and
.1.3.6.1.4.1.231.694.2 you need only one entry with .1.3.6.1.4.1.231.694
Generic Trap number
EnterpriseOId, MajorTrapnumber and MinorTrapNumber are specifying a trap.
Setting the generic trap number to -1 includes all possible numbers of a given OId
and MinorNumber.
Specific Trap number
EnterpriseOId, MajorTrapNumber and and MinorTrapNumber are specifying a
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
trap. Setting the specific trap number to -1 includes all possible numbers of a
given OID und generic trap number.
ApplicationId
The application id of the incoming trap.
TrapName
This short TrapName is only used by myAMC components. May not be changed
for myAMC traps.
Display Name
This is a short comment and has no other affect.
Comment
This is a place for long user comment and has no other affect.
ProcessingMode
ProcessingMode specifies how to handle an incoming trap. The available modes
are:
Default handling is the standard handling for new incoming traps. All variable
bindings of a trap are added as message text. All other fields are empty or
standard settings.
Applying a formula has the advantage that you can extract, interpret and modify
trap components and map them to different input fields, e.g. hostname, severity,
message and so on.
Note: Formulas are only enabled for pre-defined traps originating rom myAMC
components or with myAMC.Messenger Expert.
Formula
This field contains the input formula to be used if the trap is to be parsed using a
formula. Formulas are described in detail in in chapter 0.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Figure 71
DisplayName
Here you can type in a symbolic unique name.
SendHost
The sender host of an incoming email.
Sender
The sender address of an incoming email.
Receiver
The receiver address of an incoming email.
Mode
ProcessingMode defines the manner to handle a trap. The available modes are:
Default handling: some message fields are generated automatically
myAMC.FA-Messenger V9.0
General section
Page 128 of 148
Stand: 05.04.2012
myAMC.Messenger: Configuration
Default handling is the standard handling for new incoming emails. The message body
is used as message text. All other fields are empty or standard settings.
Applying a formula has the advantage that you can extract, interpret and modify
message parts and map them to different input fields, e.g. hostname, severity, message
and so on.
Note: Formulas are only enabled for pre-defined traps originating rom myAMC
components or with myAMC.Messenger Expert.
Comment
Here you can enter a comment.
Formula
This field contains the input formula to be used if the email is to be parsed using a
formula. Formulas are described in detail in in chapter 0.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Figure 72
PatchId
Enter the application by its applicationId you want to recurve.
Formula
Here you can type in the formula needed to mofiy the application ids.
Note: Currently there is only one valid PatchId (ApplicationIds), so there is no way to create
new patch types. The one and only formula can be extended to modify additional application
ids.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
5.2.2.6.4 Formulas
The myAMC.Messenger provides an universal message interface, which can be used. to
integrate SNMP Traps or emails, which are not originated by a myAMC component.
With the aid of formulas the variable bindings of a SNMP trap or email messages can be read
into myAMC.Messenger variables, processed and mapped to the common fields of a
message, such as Severity or LongMessage.
Formulas can contain loops (FOR, DO, WHILE), conditions (IF .. THEN .. ELSE .. FI),
assignments and boolean operations (NOT, AND, OR, XOR).
See chapter 4.2.1 for some example formulas.
KvtS2L(String) converts the character string specified with String and returns a
number.
Example: VarL01=KvtS2L(VarS01);
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
otherwise it returns FALSE.
Example: IF(ChrSNICmp(VarS01,VarS02,VarL01))THEN FI;
General section
myAMC.Messenger: Configuration
DotSCmp(OID1,OID2) compares OID1 and OID2. If they are identical the function
returns TRUE, otherwise FALSE.
Example: IF(DotSCmp(VarS01,VarS02))THEN FI;
SnmpLGetIdxByOid (OID) returns the index of a variable binding specified with OID.
On error the function returns FALSE, otherwise TRUE.
Example: VarL01=SnmpLGetIdxByOid (.1.3.6.1.4.1.4567.1.1.1.1);
SnmpSGet2Oid(SSS) copies the value of two with . linked variable bindings specified
by OIDs to the buffer and returns it (in case of ASN_COUNTER64 only the part
containing the lower 32 bit is used). In case of a failure you will receive NULL.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
5.2.2.6.4.3 Variables
The formula module provides 3 kinds of variables:
Output variables
Special variables
Variables for temporary use are required for temporarily storing function results or results of
mathematical operations. They always start with the fixed string Var. The next character
specifies the variable type. L specifies a numerical variable and S a character string variable.
Valid variables are VarL00, VarL01, VarL02, VarL03, .. , VarL19 and VarS00, VarS01, VarS02,
VarS03, .. , VarS19.
th
Output variables always start with the fixed string Out. As aforementioned the 4 letter is
likewise L or S. Each output variable specifies a field of the current message.
Variable
Field name
OutLSeverity
SEVERITY
OutSSeverity
SEVERITYSTRG
OutSSymInst
SYM_INST
OutLInstNum
INSTNUM
OutSInst
INST
OutLApp
APPLICATION
OutSApp
APPSTRG
OutSSymHost
SYM_HOST
OutSHost
HOST
OutSSymSystem
SYM_SYSTEM
OutSSystem
SYSTEM
OutLType
TYPEID
OutSType
TYPESTRG
OutLClass
CLASS
OutSCat
CATEGORY
OutSSymGroup
SYM_GROUPS
OutSGroup
GROUPS
OutSSymRole
SYM_ROLE
OutSRole
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
ROLE
General section
myAMC.Messenger: Configuration
OutSShortMsg
SHORTMSG
OutSLongMsg
LONGMSG
OutLLong00
INFOLONG00
OutLLong01
INFOLONG01
OutLLong02
INFOLONG02
OutLLong03
INFOLONG03
OutLLong04
INFOLONG04
OutLLong05
INFOLONG05
OutLLong06
INFOLONG06
OutLLong07
INFOLONG07
OutLLong08
INFOLONG08
OutLLong09
INFOLONG09
OutSStrg00
INFOSTRG00
OutSStrg01
INFOSTRG01
OutSStrg02
INFOSTRG02
OutSStrg03
INFOSTRG03
OutSStrg04
INFOSTRG04
OutSStrg05
INFOSTRG05
OutSStrg06
INFOSTRG06
OutSStrg07
INFOSTRG07
OutSStrg08
INFOSTRG08
OutSStrg09
INFOSTRG09
OutSRecvType
RECVTYPE
OutSRecvSubType
RECVSUBTYPE
OutSRecvAddress
RECVADDRESS
InLGenTrapNr which contains the generic trap number of the incoming trap
InLSpecTrapNr which holds the specific trap number of the incoming trap
OutLValid is set to 1 by default. If you want to discard a trap from within a formula you
have to set this variable to 0.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
5.2.2.7 Advanced
5.2.2.7.1 Applications
In this property page you can add, edit or delete user defined applications. The application ids
from -1 to 1000 are reserved for myAMC applications.
Application ids can be used for customized trap definitions (see chapter 5.2.2.6.1 for details).
Note: This menu will only be shown if you switch to the expert mode, you can do this by
pressing the key combination ctrl + m.
Note: This feature is only available with myAMC.Messenger Expert.
Figure 73
Applications
List of defined applications which can be used for the configuration of filters.
ApplicationId
The identifier of the application.
Name
The name of the application.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
5.2.2.7.2 Weekdays
Some filters accept time ranges not only as fixed time stamps but allow the specification of
weekdays. This property page allows to edit the values.
Usually there is no need to extend or change the pre-configured week days. The only
exception is localization of week day names into another language.
Note: This menu will only be shown if you switch to the expert mode, you can do this by
pressing the key combination ctrl + m.
Note: This feature is only available with myAMC.Messenger Expert.
Figure 74
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
5.2.2.7.3 Severities
In this property page you can add, edit or delete severities for the incoming alerts for different
applications. myAMC comes with often used severities pre-configured. Usually there is no
need to extend or change the pre-configured severites.
Note: This menu will only be shown if you switch to the expert mode, you can do this by
pressing the key combination ctrl + m.
Note: This feature is only available with myAMC.Messenger Expert.
Figure 75
Severity
List of all configured severities.
Severity
The numeric severity value (depends on the application which sends the
severity). The value of severity can be between -1 and 300. By convention,
severities in the range 0 to 99 are considered Normal, 100 to 199 are considered
Warning and 200 to 300 are considered Critical.
ApplicationId
The application specifying the severity.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Name
The name of the severity as it is shown in the message history view.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Figure 76
Alert Type
List of configured alert types.
AlertTypeId
The identifier of the alert type (for internal use only).
Typename
The name of the alert type. For myAMC messages the alert types Command,
Alarm, Event and Log are used. If you use other trap sending applications that
use different alert types, you can configure them in this property page.
Trapname
The short name of the alert type as it is used in SNMP traps (category).
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
This page provides a raw view of all configuration variables. Commonly used settings are
changeable from the Message Settings, Mail Settings, and Pager Settings views. Take care
when changing configuration parameters!
Figure 77
General section
myAMC.Messenger: Configuration
1. The mySQL database directory should be on a local disk (e.g. /var/lib/mysql as opposed to
a network mount, e.g. /opt/myAMC/mySQLDBs on FlexFrame systems)
2. MySQL keeps data of all databases in a single directory, with one sub-directory per
database. If the master database resides on a remote file system (e.g. on a NFS mount), it
should be linked to the local database directory using a symbolic link.
Example: the master database resides on a network volume mounted on
/opt/myAMC/mySQLDBs, the local (slave) database resides in /var/lib/mysql. MySQL server is
configured to use /var/lib/mysql as base directory.
shell> ln s /opt/myAMC/mySQLDBs/messenger /var/lib/mysql/
3. Make a copy of the messenger database creation script and change the following 3 lines in
the copied sql script
drop database if exists messenger;
create database messenger;
use messenger;
to
drop database if exists messengermirror;
create database messengermirror;
use messengermirror;
4. Create the slave database
mysql u<user> p<password> < /source/to/CopyOfCreateAmcMsg.sql
5. Copy section [AMCMSG_V10] of file /root/.odbc.ini and change the following parts of the
copied section from
[AMCMSG_V10]
DSN
= AMCMSG_V10
Database
= messenger
to
[AMCMSGSLAVE_V10]
DSN
= AMCMSGSLAVE_V10
Database
= messengermirror
Note: in order to use master-slave mode, the following requirements must be met:
myAMC.Messenger and the MySQL server must run on the same node and be accessible
by MySQL tools (mysql, mysqldump) without special addressing or parameters
The database names may not be changed. The master database is called messenger,
the slave database messengermirror.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
6 Troubleshooting
6.1 Debugging
6.1.1
Introduction
myAMC.Messenger writes debug information to a logfile.
The amount of information can be adjusted with the parameter LogLevel.
This debug information is needed for our developers in case of problems.
6.1.2
myAMC.Messenger Service
The parameters of the myAMC.Messenger service are described in the document General
section: Getting Started.
How to get log- and debug-information is described in the document General section: Getting
Started.
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
myAMC.Messenger: Configuration
Index
Components
myAMC.Messenger Server ........................... 20
Receive interfaces
Command line ........................................... 21
Database ................................................... 21
Receive interfaces ......................................... 21
Repository ............................................... 22, 28
Configuration
Functional description
Advanced
Alert type .............................................. 140
Application ........................................... 136
General Configuration .......................... 142
Severities ............................................. 138
Weekdays ............................................ 137
Filter
Combination of myAMC Standard Filter
and myAMC Precision Filter ............. 109
Precision filter ...................................... 100
Standard filter ......................................... 98
Formulas .................................................. 131
Functions.............................................. 131
Variables .............................................. 134
Message input
Mail types ............................................. 128
Patch types .......................................... 130
Trap types ............................................ 126
Message output
External commands ............................. 119
File ....................................................... 115
Output style .......................................... 124
Pagers .................................................. 117
Tables .................................................. 121
WebServices (HTTP) ........................... 122
Messages
Alternative Message History 1-3 ............ 90
Messages ............................................... 88
Program handling ...................................... 74
Connectors ............................................. 79
Main panel ............................................. 77
Menu bar ................................................ 74
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section
Figures
Figure 1 myAMC.Messenger: Structure .....................................................................................................19
Figure 2 myAMC.Messenger:Filter: Workflow ............................................................................................23
Figure 3 myAMC.Messenger: Filter ............................................................................................................24
Figure 4 myAMC.Messenger: Structure .....................................................................................................29
Figure 5 Configuration: Example: Email connection ..................................................................................33
Figure 6 Configuration: Example: Receiver ................................................................................................34
Figure 7 Configuration: Example: Physical Receiver .................................................................................35
Figure 8 Configuration: Example: Receiver Group .....................................................................................36
Figure 9 Configuration: Example: Members of the Receiver Group ..........................................................37
Figure 10
Configuration: Example: myAMC Standard Filter .....................................................................38
Figure 11
Configuration: Example: myAMC Precision Filter .....................................................................39
Figure 12
Configuration: Example: Email connection ...............................................................................41
Figure 13
Configuration: Example: Receiver ............................................................................................42
Figure 14
Configuration: Example: Physical Receiver: Email...................................................................43
Figure 15
Configuration: Example: Physical Receiver: Pager ..................................................................44
Figure 16
Configuration: Example: File definition .....................................................................................45
Figure 17
Configuration: Example: Physical Receiver: File ......................................................................46
Figure 18
Configuration: Example: External command definition .............................................................47
Figure 19
Configuration: Example: Physical Reciever External commands .............................................48
Figure 20
Configuration: Example: Physical Receiver WebService .........................................................49
Figure 21
Configuration: Example: Create the two receivers ...................................................................50
Figure 22
Configuration: Example: Create a group ..................................................................................51
Figure 23
Configuration: Example: Select the group create before ..........................................................52
Figure 24
Configuration: Example: Create groups ...................................................................................53
Figure 25
Configuration: Example: Assign receivers ................................................................................54
Figure 26
Configuration: Example: Filter dialog ........................................................................................56
Figure 27
Configuration: Example: Select the file .....................................................................................57
Figure 28
Configuration: Example: Assign a file to a receiver ..................................................................58
Figure 29
Configuration: Example: Create a group ..................................................................................59
Figure 30
Configuration: Example: Specify a reaction ..............................................................................60
Figure 31
Configuration: Example: Deactivate the filter ...........................................................................61
Figure 32
Configuration: Example: Create a precision filter .....................................................................62
Figure 33
Configuration: Example: Activate the filter ................................................................................63
Figure 34
Configuration: Example: Create two receivers .........................................................................64
Figure 35
Configuration: Example: Create two receiver filters 1 ..............................................................65
Figure 36
Configuration: Example: Create two receiver filters 2 ..............................................................66
Figure 37
Configuration: Example: Design your output style....................................................................68
Figure 38
Configuration: Example: Assign ouput style to a physical receiver ..........................................69
Figure 39
myAMC.Messenger: Config: Menu bar ....................................................................................74
Figure 40
myAMC.Messenger: Config: Controls ......................................................................................75
Figure 41
myAMC.Messenger: Main panel...............................................................................................77
Figure 42
myAMC.Messenger: Config: Tool Bar ......................................................................................78
Figure 43
myAMC.Messenger: Config: Connectors .................................................................................79
Figure 44
myAMC.Messenger: Config: Message Settings .......................................................................82
Figure 45
myAMC.Messenger: Config: Mail Settings ...............................................................................84
Figure 46
myAMC.Messenger: Config: Basic message forwarding .........................................................85
Figure 47
myAMC.Messenger: Config: Pager Settings ............................................................................86
Figure 48
myAMC.Messenger: Config: Messages ...................................................................................88
Figure 49
myAMC.Messenger: Config: Aletrnative Message History 1-3 ................................................90
Figure 50
myAMC.Messenger: Config: Message Rceiver ........................................................................91
Figure 51
myAMC.Messenger: Config: Physical Receiver .......................................................................92
Figure 52
myAMC.Messenger: Config: Receiver Groups .........................................................................94
Figure 53
myAMC.Messenger: Config: Timed receiver ............................................................................95
Figure 54
myAMC.Messenger: Config: Receiver Schedules (date) .........................................................96
Figure 55
myAMC.Messenger: Config: Receiver Schedules (weekday) ..................................................96
Figure 56
myAMC.Messenger: Config: Standard Filter ............................................................................98
Figure 57
myAMC.Messenger: Config: Precision Filter: Message source .............................................101
Figure 58
myAMC.Messenger: Config: precision Filter: Message contents ...........................................103
Figure 59
myAMC.Messenger: Config: precision Filter: Message activation .........................................104
myAMC.FA-Messenger V9.0
General section
Page 147 of 148
Stand: 05.04.2012
Figures
Figure 60
Figure 61
Figure 62
Figure 63
Figure 64
Figure 65
Figure 66
Figure 67
Figure 68
Figure 69
Figure 70
Figure 71
Figure 72
Figure 73
Figure 74
Figure 75
Figure 76
Figure 77
myAMC.FA-Messenger V9.0
Stand: 05.04.2012
General section