[syslog-ng]using perl module with syslog-ng

Ravi Malghan rmalghan@yahoo.com
Wed, 18 Jul 2001 15:11:13 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_005D_01C10F9B.E2531DD0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello: I have configured syslog-ng on solaris 2.7 and can see syslog =
messages logged into
the /var/adm directory when I use the logger command. The perl module =
which I use in syslogd
does not seem to working with syslog-ng
the source line in syslog-ng server machine is
source local { sun-streams("/dev/log" door("/etc/.syslog_door")); =
internal(); };

my perl lines are as follows
openlog ($ident, 'ndelay', 'user');=20
syslog ("user.alert", "PingStatus change: Host %s is down\n", $host);

Is there anything else I need to do to make this happen?

Thanks
Ravi


------=_NextPart_000_005D_01C10F9B.E2531DD0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello: I have configured syslog-ng on =
solaris 2.7=20
and can see syslog messages logged into</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the /var/adm directory when I use the =
logger=20
command. The perl module which I use in syslogd</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>does not seem to working with=20
syslog-ng</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the source line in syslog-ng server =
machine=20
is</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>source local { sun-streams("/dev/log"=20
door("/etc/.syslog_door")); internal(); };</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>my perl lines are as =
follows</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>openlog ($ident, 'ndelay', 'user'); =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>syslog ("user.alert", "PingStatus =
change: Host %s=20
is down\n", $host);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Is there anything else I need to do to =
make this=20
happen?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Ravi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_005D_01C10F9B.E2531DD0--