Xymon Mailing List Archive search

Sending statusupdates to xymon using databasetriggers

2 messages in this thread

list Klaas Eenkhoorn · Thu, 12 Jan 2012 11:40:10 +0100 ·
Dear All,

Is it possible to use databasetriggers and storedprocedures for sending
statusupdates to xymon ?

Example:

Our DBA uses a database with status messages of his databases.
Is it possible as soon as a record gets added to this message table a
storedprocedure starts and forwards this message to xymon ?


Met vriendelijke groet,

Klaas D. Eenkhoorn
Senior Beheerder UNIX


-------------------------Disclaimer-------------------------------
De informatie verzonden met dit e-mailbericht (en bijlagen) is uitsluitend bestemd voor de geadresseerde(n) en zij die van de geadresseerde(n) toestemming kregen dit bericht te lezen. Gebruik door anderen dan geadresseerde(n) is verboden. De informatie in dit e-mailbericht (en bijlagen) kan vertrouwelijk van aard zijn en kan binnen het bereik vallen van een geheimhoudingsplicht en een verschoningsrecht.
list Ulric Eriksson · Fri, 13 Jan 2012 19:50:40 +0100 ·
Eenkhoorn, (Klaas) skrev 2012-01-12 11:40:
quoted from Klaas Eenkhoorn
Dear All,

Is it possible to use databasetriggers and storedprocedures for sending statusupdates to xymon ?

Example:

Our DBA uses a database with status messages of his databases.
Is it possible as soon as a record gets added to this message table a storedprocedure starts and forwards this message to xymon ?
Sure, but that is probably not necessary or even a good idea. Triggers rarely are. Just write an ext script that reads the table and sends any new messages to Xymon.

The only case I can think of that would justify use of a trigger is if you want to avoid the delay between the time that the record is added and the script picks it up. Then you can simply let the trigger call the ext script.

Ulric