> -----Original Message-----
> From: IBM Mainframe Discussion List
> [mailto:[email protected]] On Behalf Of ??? ?? ???
> Sent: Tuesday, August 11, 2009 2:51 AM
> To: [email protected]
> Subject: Sending z/OS Messages to external syslog server
>
> Hi,
>
> Does anyone know of a way to send messages from the z/OS log
> to an external syslog server.
>
> I have CA-OPS/MVS.
>
> Gadi
Perhaps. I use CA-OPS/MVS to send an SNMP trap to CA-Unicenter for some z/OS
messages. It is basically a two step process. The first is to right a message
rule to trap the z/OS message. This is the easy part <grin>. The second part is
to write a REXX program which uses REXX sockets to send the syslog message to
your syslog server. This REXX program is invoked from the message rule via the
OX command, something like:
"OX PROGRAM('rexx.program.library(logpgm)') ARG('"MSG.TEXT"')"
The above invokes "logpgm" in 'rexx.program.library" and passes it the message
text. The "logpgm" uses REXX sockets to send the message to the appropriate
UNIX syslog server. Doing this is the difficult part. Especially since I've
never done it. Now, if you have the C compiler (we don't), you could write a C
program which does this using the openlog(), syslog(), and closelog()
functions. However, this sends the message to the local z/OS system's syslog
daemon. So it needs to be running and configured to relay the message on to the
desired syslog server.
Wish I had some code to share, but I don't.
--
John McKown
Systems Engineer IV
IT
Administrative Services Group
HealthMarkets(r)
9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-961-6183 cell
[email protected] * www.HealthMarkets.com
Confidentiality Notice: This e-mail message may contain confidential or
proprietary information. If you are not the intended recipient, please contact
the sender by reply e-mail and destroy all copies of the original message.
HealthMarkets(r) is the brand name for products underwritten and issued by the
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The
MEGA Life and Health Insurance Company.SM
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html