Peruttu

Syslog-NG Installation

I have a linux server running syslog-ng. I need to be able to write to it remotely from two spots: PHP Scripts on remote apache servers (for error logging) and from Win32-based python scripts (same reason).

Looking for the following:

1. A php script that can write to my *remote* syslog service directly. I don't know whether there's 3rd party PHP modules needed to speak to syslog, will need the script and any modules identified.

2. A custom windows DLL that does the same thing. The reason I need a DLL is because I use Python and other code that I need to have an external DLL available to "import" into the code, declare its functions and then use it's functions. I do the same thing with libmysql.dll.

For example:

-----

#import "libmysql.dll"

int mysql_init(int db);

int mysql_errno(int TMYSQL);

int mysql_real_connect(int TMYSQL, string host, string user, string password,string DB,int port,int socket,int clientflag);

int mysql_real_query(int TMSQL, string query, int length);

void mysql_close(int TMSQL);

-----

I need this DLL to do the minimum:

A) Be able to be configured for different syslog servers & ports

B) Write syslog messages to the remote server

3. A win32-compatible python script that imports the DLL built in #2 and sends a syslog message to a remote host.

I need to be able to drop the php script onto an apache host and run it, have it send a message to the remote host. I need to be able to drop the python script onto a windows box; sit the DLL next to it and run it, have it send a message to the remote host.

That's it.. thanks!

Taidot: Linux, PHP, Python, Windows Desktop

Näytä lisää: python syslog, python syslog server, syslog install, python linux syslog, write to ng, string b, need a python code that does, installation logging, syslog dll sur windows, send remote syslog python, python syslog apache, script write syslog entries, syslog logging apache python, external dll functions python, linux syslog instalation, syslog remote server service, syslog php socket, syslog server python, php syslog socket, script logger write syslog, syslog remote apache log, syslog python, python script syslog server, linux syslog, write a python script

Tietoa työnantajasta:
( 12 arvostelua ) Fredericton, Canada

Projektin tunnus: #389271