SUMMARY: Problems with logger

From: Gustavo Tobares <gtobares_at_redmegatone.com>
Date: Mon Dec 17 2001 - 16:21:04 EST
Thanks to

	Mattew Stier
	Doug Granzow
	Joel.Lee

All the sugestions are resumed here:

	Stop and Start the syslog and take care about the white spaces in
the file syslog.conf

Thank's to 

	Nicolas Dorfsman:

	He say:

	You can't use level.* in /etc/syslog.conf, you must use asterisk
only in the level place.

	*.err is valid, but user.* not.

I do:  

	/etc/init.d/syslog stop;/etc/init.d/syslog start

The final version of the file /etc/syslog.conf is:

*.err;kern.notice;auth.notice                   /dev/sysmsg      
*.err;kern.debug;daemon.notice;mail.crit        /var/adm/messages
*.err                                           @132.147.161.16  
*.info                                          @132.147.161.16  
*.alert;kern.err;daemon.err                     operator         
*.alert                                         root             
*.emerg                                         *                

And I Use the user.info to generate my custom alerts.  The *.err are logged
in my NT too.

Thanks a lot.


The problem:

> Hi all and thanks for you time.
>
> I running a program on W2k named Winsyslog to centralized management of
> messages sended by the logger utility on various unix server running SCO
> Open Server 5 and Solaris 8.
>
> The /etc/syslog.conf on the SCO servers look like this
>
> *.debug                                         /usr/adm/syslog
> local0.*                                        @gtobaresnt
>
> where gtobaresnt is the server running the WinSyslog aplication.
>
> When I try this command
>
> logger -p local0.info "mensaje de prueba"
>
> the message "mensaje de prueba" is sended and registered in the WinSyslog.
>
> Now, in a Solaris 8 (server e3500), the syslog.conf is
>
> *.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                                         *
> user.*                                  @gtobaresnt
> user.*                                  /var/adm/messages.user
> mail.debug                      ifdef(`LOGHOST', /var/log/syslog,
@loghost)
>
>
> I use a kill -1 `/etc/syslog.pid` to re-read de syslog.conf then try:
>
> logger -p user.info "mensaje de prueba" but they not is sended to my
server
> log (gtobaresnt)
>
> The node "gtobaresnt" is with the correct ip in /etc/hosts and is present
in
> the hosts.equiv
>
> I try other commands like
>
> logger -p user.err "problemas..." and they is registered in the
> /var/adm/messages but not in /var/adm/messages.user
>
> I try to put the lines "user..." first but they did not work.
>
> Any help would be apreciated.
>
> Thank's a lot, and sorry for my english.
>
> Gustavo Tobares
> Administrador de Sistemas y  DBA
> Centro de Computos - Red Megatone
> TE: 0342-4500972 - Fax: 0342-4500940
> _______________________________________________
> sunmanagers mailing list
> sunmanagers@sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers

--
Matthew Lee Stier                 *  Fujitsu Network Communications
Unix Systems Administrator        |  Two Blue Hill Plaza
Ph: 845-731-2097 Fx: 845-731-2011 |  Sixth Floor
Matthew.Stier@fnc.fujitsu.com     *  Pearl River, NY 10965
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Dec 17 15:18:21 2001

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:30 EST