Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006



Strange, Solaris will not be written using Syslog news?

I would like to find a similar UNIX control panel under Windows 2000>> management tool for a mechanism to detect incidents, I can see through the operation of the operating system to applications, particularly applications have their own series of news sources including (ID information and have time and the names, sources, a detailed description). This manageable.

So I find in the Syslog UNIX () function, and to use a series of small procedures, as follows :
-------------------------------------------------------------------------
/*test.c*/
#include "Syslog.h>;

Void main (void)
{
Syslog (LOG_USER|LOG_ERR "Syslog program testing");
}
-------------------------------------------------------------------------

Solaris operating in the translation process, the final document in var/adm/messages find a record :
Month Date : hh:mm:ss hosts were test[PID]
Obviously news has been included in the messages documents, but the information was not complete, the information is complete
Month Date hh:mm:ss testing program hosts who test[PID]:syslog

Therefore, I would like to ask you a master, why not "Syslog program testing" part of the contents of this document included messages, how to solve the problem? ME

/etc/syslog.conf Document has been created :
*.err /var/adm/messages
The box used tab键 link.

Xianxie!

Strange, Solaris will not be written using Syslog news?

You procedures in my solaris no problem running the country.
The document is printed in /var/adm/messages
Mar 28 12:52:53 bj157 syslog.test[1731] [ID 575,889 user.error] Syslog program testing :

I wrote this syslog.conf

*.err;kern.notice;auth.notice /dev/sysmsg
*.err;kern.debug;daemon.notice;mail.crit /var/adm/messages

*.alert;kern.err;daemon.err Operator
*.alert Root

*.emerg *

Ifdef (`LOGHOST '.
User.err /dev/sysmsg
User.err /var/adm/messages
User.alert `root, operator '
User.emerg *
)

Strange, Solaris will not be written using Syslog news?

Log guardian has not been opened Thread
There should also check the distribution of log files

Strange, Solaris will not be written using Syslog news?

Wang first thank demons and withheld liupch unique area.

According to the two said, I checked the syslog.conf configuration, and liupch machine is the same, except
Ifdef (`LOGHOST '.
User.err /dev/sysmsg
User.err /var/adm/messages
User.alert `root, operator '
User.emerg *
This sentence before
Mail.debug ifdef (`LOGHOST '/var/log/syslog,loghost)
I think we should not eat food?
Also, I would like to know the /var/adm/messages document printing liupch
Mar 28 12:52:53 bj157 syslog.test[1731] : [ID 575,889 user.error] Syslog program testing.
Syslog to how this conference, and in my test machine only, and not syslog.test
Also, I have been trying to see liupch UNIX monitoring, which I am also interested in whether the email was further explored?

Syslogd peerless withheld recommendations on whether to open up the check, I was ps -ef orders can be found in syslogd is running, and you said that the distribution of the inspection log files, which means that the syslog.conf?

God also asked the two charges concern that other heroes educated us, thank you.

Strange, Solaris will not be written using Syslog news?

I root权限 small procedures to operate under?

Strange, Solaris will not be written using Syslog news?

First, I use the procedure is implemented by ordinary users.
Secondly, I Syslog indicate that the procedure is because I syslog.test named syslog.test
Third, if you can not get the Syslog or write, then you try to restart the process Syslog service. Root in the state
Kill -HUP

Strange, Solaris will not be written using Syslog news?

Based on your examination of the proposals are not feasible.

Strange, Solaris will not be written using Syslog news?

Finally adding "\n"
No other method.
Blind to see!

Strange, Solaris will not be written using Syslog news?

I still

Strange, Solaris will not be written using Syslog news?

- P user.err logger "program testing Syslog"
You look at the order useful?

Strange, Solaris will not be written using Syslog news?

Logger can be ordered with the course, it has been unable to record the names and the process ID applications, users were often replaced. Application procedures and the name of the news I was still very important.

For example : using the logger records
Mar 29 19:07:53 pacsserver.lmi pacsman:syslog program test




 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com