DBAmon |
Home |
Index/DBAmon Doc. |
|
If a particular User Exit exsits, then it is invoked. For example, when DBAmon deems it necessary to create a Help Desk ticket, it looks for an executable called /opt/dbamon/bin/userexit/ticket. If it exists, then DBAmon will invoke it with the proper environment (see below). If /opt/dbamon/bin/userexit/ticket does not exist, then DBAmon takes no action.
In the install package all exits will be provide in EXAMPLE form, not activated. When you install DBAmon, if you look in the /opt/dbamon/bin/userexit directory, you will see:
-rwxr-xr-x 1 dbamon vhost 137 Jul 1 1998 pager.EXAMPLE -rwxr-xr-x 1 dbamon vhost 316 May 14 13:42 ticket.EXAMPLE -rwxr-xr-x 1 dbamon vhost 143 Jul 1 1998 warn_msg.EXAMPLEFor example, to active the "ticket" User Exit:
Any time that a WARNING event is triggered, immediately before the OpC message (if so configured) is issued, a user exit called /opt/dbamon/bin/userexit/warn_msg is invoked.
It is passed the parameters (in order):
i3107ppp:PP-OLTP
*** DBSpace(s) exceed warning threshold of 90 ***
/opt/dbamon/tmp/filename
If a CRITICAL event is triggered and the Pager_Subject: parameter for an instance is specified, /opt/dbamon/bin/userexit/warn_msg is invoked.
It is passed the parameters (in order):
i3107ppp:PP-OLTP
*** DBSpace(s) exceed warning threshold of 90 ***
/opt/dbamon/tmp/filename
If a CRITICAL event is triggered and the Make_Tickets: dbamonrc parameter is Y, /opt/dbamon/bin/userexit/ticket is invoked if it exists. You must customize /opt/dbamon/bin/userexit/ticket to create a ticket.
The following env vars are set before invocation:
This exit is called for every MSSQL Instance that you monitor - BEFORE the probe is executed.
This exit is called for every MSSQL Instance that you monitor - AFTER the probe is executed and after all sqlUp events are processed.
This exit is called any time that a DBAmon Event occurs. If this userexit ends with a return of 0, then the event will still be created. If the return is non-zero, then the event will not be created.