solarg wrote:




anybody can test this above simple perl command in a os2008.11 zone and report if it works?

very strange behaviour!

if i launch syslogd in debug mode, it works:
# /usr/sbin/syslogd -d
main(1): Started at time Mon May 11 23:14:22 2009
hnc_init(1): hostname cache configured 2037 entry ttl:1200
getnets(1): found 1 addresses, they are: 0.0.0.0.2.2
amiloghost(1): testing 127.0.0.1.2.2
conf_init(1): I am loghost
cfline(1): (*.err;kern.notice;auth.notice                       /dev/sysmsg)
cfline(1): (*.err;kern.debug;daemon.notice;mail.crit    /var/adm/messages)
cfline(1): (*.alert;kern.err;daemon.err                 operator)
cfline(1): (*.alert                                             root)
cfline(1): (*.emerg                                             *)
cfline(1): (mail.debug                  /var/log/syslog)
cfline(1): (local6.debug /var/log/sipserver.log)

  syslogd: version %I%
  Started: Mon May 11 23:14:22 2009
Input message count: system 0, network 0
# Outputs: 7

------------------------ priority = [file, facility] ------------------------

0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4
--------------------------------------------------
5 3 3 3 5 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 X CONSOLE: /dev/sysmsg
7 3 2 5 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 X FILE: /var/adm/messages
3 1 1 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 X USERS: operator
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 X USERS: root
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 X WALL:
X X 7 X X X X X X X X X X X X X X X X X X X X X X FILE: /var/log/syslog
X X X X X X X X X X X X X X X X X X X X X X 7 X X FILE: /var/log/sipserver.log

Facilities:
  [00] kern:   0
  [01] user:   8
  [02] mail:  16
  [03] daemon:  24
  [04] auth:  32
  [05] security:  32
  [06] mark: 192
  [07] syslog:  40
  [08] lpr:  48
  [09] news:  56
  [10] uucp:  64
  [11] audit: 104
  [12] cron: 120
  [13] local0: 128
  [14] local1: 136
  [15] local2: 144
  [16] local3: 152
  [17] local4: 160
  [18] local5: 168
  [19] local6: 176
  [20] local7: 184

Priorities:
  [00] panic:   0
  [01] emerg:   0
  [02] alert:   1
  [03] crit:   2
  [04] err:   3
  [05] error:   3
  [06] warn:   4
  [07] warning:   4
  [08] notice:   5
  [09] info:   6
  [10] debug:   7
  [11] none:  16



                Per File Statistics
File                            Tot     Dups    Nofwd   Errs
----                            ---     ----    -----   ----
/dev/sysmsg                     0       0       0       0
/var/adm/messages               0       0       0       0
operator                        0       0       0       0
root                            0       0       0       0
WALL                            0       0       0       0
/var/log/syslog                 0       0       0       0
/var/log/sipserver.log          0       0       0       0


logmsg(9): msg dispatcher started
sys_poll(10): sys_thread started
init(1): accepting messages from local system
hostname_lookup(12): hostname_lookup started
set_udp_buffer(1): allocate 262144 for fd 4
init(1): accepting messages from remote
net_poll(13): net_thread started
init(1): syslogd: started
main(1): off & running....

net_poll(13): received empty packet from 127.0.0.1.209.156
net_poll(13): received message from 127.0.0.1.209.156
writemsg(8): Logging msg 'May 11 23:14:26 this is a better test: 1242076466
' to FILE /var/log/sipserver.log


as you see, it products the correct output (with perl -MSys::Syslog -e 'Sys::Syslog::syslog("local6|debug", "this is a better test: %d", time);')

but if syslogd is started by svcs, it products nothing!

One difference i note is that in mode debug, pfiles <pid-syslogd> shows /dev/udp and this doesn't exist when started by svcadm


gerard

_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to