Forking a java process is a taxing approach. It could cause problems if you have a spike in volume of calls to this subsystem as each JRE (one per call) will eat up memory, cpu cycles, file handles, etc. If your Remedy server is running on Unix or Linux, you can use logger(1). If you wrapped that code in a java plugin it would be much more efficient.
If the program takes much time at all to return and you are calling through a set fields run process, it could eat up all your fast or list threads, depending on which forks the process. A Run Process action would alleviate this condition. Axton Grams On Wed, Feb 22, 2012 at 12:30 PM, Bennett, Craig <[email protected]> wrote: > Our server group wanted some tickets to trigger Syslog notifications as they > have their syslog server set up to notify them by pager > > I have a filter running the process: > "C:\Program Files\Java\jdk1.5.0_14\bin\java" -cp "C:\Program > Files\Java\jdk1.5.0_14\bin;." JavalogClient solarwinds "<185>$mhdSubject$" > > The <185> is the message category > > /* > JavalogClient.java > A very basic implementation of a syslog message dispatcher in Java using > UDP datagram sockets > By Christopher Evans - Copyright © 1996 Natural Intelligence, Inc. > Implements a basic syslog client, sending data to port 514 on the machine > whose name is passed in as a command line argument > */ > > import java.net.*; > import java.io.*; > > public class JavalogClient { > public static void main(String args[]) throws Exception > { > InetAddress address = InetAddress.getByName(args[0]); > // Find out how long the message is, then copy it from a java.lang.String > into an array of bytes to be sent. > int msg_len = args[1].length(); > byte[] message = new byte[msg_len]; > message = args[1].getBytes(); > > DatagramPacket packet = new DatagramPacket(message, msg_len, address, 514); > DatagramSocket socket = new DatagramSocket(); > > socket.send(packet); > socket.close(); > } > } > > > > > > -----Original Message----- > From: Action Request System discussion list(ARSList) > [mailto:[email protected]] On Behalf Of Misi Mladoniczky > Sent: February 22, 2012 3:09 AM > To: [email protected] > Subject: Re: Syslog > > Hi, > > Syslog is just a bunch of text log files on your local Unix/Linux server, > where you can define different log levels for various services. In this > case the AR Server. Customarily, the syslog would contain messages > generated on that specific server only... > > It is very easy to write code that sends messages to syslog. Just do "man > syslog" on a linux/unix machine to get information on how to generate > syslog messages in C. > > Best Regards - Misi, RRR AB, http://www.rrr.se (ARSList MVP 2011) > > Products from RRR Scandinavia (Best R.O.I. Award at WWRUG10/11): > * RRR|License - Not enough Remedy licenses? Save money by optimizing. > * RRR|Log - Performance issues or elusive bugs? Analyze your Remedy logs. > Find these products, and many free tools and utilities, at http://rrr.se. > >> I'm completely new to syslog. I searched a bit about log4j, and seems that >> it sends logs from the mid-tier to a syslog server. My idea is that Remedy >> can receive syslog messages and interact with them. We developed an event >> correlator in Remedy that can be accessed through web services. Event >> information is: an event code (each code is related to one situation like: >> printer is out of toner or server is down), a CI and a text description. >> The event correlator, depending on the event code, creates incidents, add >> info to incidents, updates an unavailability request, add info to a CI, >> etc. >> >> Now, one monitoring tool from a parter tells us that it is unable to >> communicate through web services. Only e-mail or syslog. E-mail seems a >> not >> so good solution, since a lot of SLA can be involved and e-mail is not >> assured and delays or mail losses can appear. So, I'm trying to figure >> how >> to insert syslog messages in my events form. >> >> Regards, >> >> Jose M. Huerta >> Project Manager** >> >> Movil: 661 665 088 >> >> Telf.: 971 75 03 24**** >> >> Fax: 971 75 07 94**** >> >> <http://www.sm2baleares.es/>**** >> >> SM2 Baleares S.A. >> C/Rita Levi **** >> >> Edificio SM2 Parc Bit**** >> >> 07121 Palma de Mallorca**** >> >> <http://es-es.facebook.com/pages/SM2-Baleares/158608627954> >> <http://twitter.com/#!/SM2Baleares> >> <http://www.linkedin.com/company/sm2-baleares> >> >> La información contenida en este mensaje de correo electrónico es >> confidencial. La misma, es enviada con la intención de que únicamente sea >> leída por la persona(s) a la(s) que va dirigida. El acceso a este mensaje >> por otras personas no está autorizado, por lo que en tal caso, le rogamos >> que nos lo comunique por la misma vía, se abstenga de realizar copias del >> mensaje o remitirlo o entregarlo a otra persona y proceda a borrarlo de >> inmediato.**** >> >> P Por favor, no imprima este mensaje ni sus documentos adjuntos si no es >> necesario. >> >> >> >> On Tue, Feb 21, 2012 at 13:17, John Baker >> <[email protected]>wrote: >> >>> Hello, >>> >>> You could use the Syslog Log4j plugin on Mid Tier. >>> >>> >>> John >>> >>> >>> _______________________________________________________________________________ >>> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org >>> attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are" >>> >> >> _______________________________________________________________________________ >> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org >> attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are" >> > > _______________________________________________________________________________ > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org > attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are" > > _______________________________________________________________________________ > UNSUBSCRIBE or access ARSlist Archives at www.arslist.org > attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are" _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are"

