[hobbit] logfetch.status on Darwin clients

Dominique Frise Dominique.Frise at unil.ch
Fri Apr 28 13:50:05 CEST 2006


Henrik Stoerner wrote:
> On Fri, Apr 28, 2006 at 12:41:19PM +0200, Dominique Frise wrote:
> 
>>On Darwin clients logfetch.status never get updated (shows 0 bytes) and 
>>thus alert messages never get expired:
>>
>>[logfile:/var/log/system.log]
>>type:100000 (file)
>>mode:640 (-rw-r-----)
>>linkcount:1
>>owner:0 (root)
>>group:80 (admin)
>>size:3
>>clock:1146219697 (2006/04/28-12:21:37)
>>atime:1146219697 (2006/04/28-12:21:37)
>>ctime:1146207446 (2006/04/28-08:57:26)
>>mtime:1146207446 (2006/04/28-08:57:26)
>>------------------
> 
> 
> What does an "ls -l /var/log/system.log" say ?
> 
> The info here claims that file is 3 bytes long.
> 
> 
>>zelda:/soft/pub/BB/hobbit/client/logs bb$ wc /var/log/system.log
>>     349    2847   47437 /var/log/system.log
> 
> 
> But the "wc" output here says it's 47.437 bytes long.
> 
> 
> Henrik
> 
> 
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
> 
> 
Updated data:

[msgs:/var/log/system.log]
Apr 28 03:15:01 zelda2 cp: error processing extended attributes: Operation not 
permitted
Apr 28 03:15:01 zelda2 cp: error processing extended attributes: Operation not 
permitted
Apr 28 03:15:01 zelda2 cp: error processing extended attributes: Operation not 
permitted
Apr 28 06:17:13 zelda2 sudo:       bb : TTY=unknown ; PWD=/Users/bb ; USER=root 
; COMMAND=/sbin/shutdown -H
Apr 28 08:13:21 zelda2 su: bb to root on /dev/ttyp1
Apr 28 08:14:02 zelda2 sudo:       bb : TTY=ttyp1 ; PWD=/Users/bb ; USER=root ; 
COMMAND=/sbin/SystemStarter stop BB
Apr 28 08:15:36 zelda2 su: bb to root on /dev/ttyp1
Apr 28 08:16:08 zelda2 sudo:       bb : TTY=ttyp1 ; 
PWD=/soft/pub/BB/hobbit/client/ext ; USER=root ; COMMAND=/sbin/SystemStarter 
stop BB
Apr 28 08:16:08 zelda2 SystemStarter[3131]: "/Library/StartupItems/BB/BB" 
failed security check: not owned by UID 0
Apr 28 08:16:08 zelda2 SystemStarter[3131]: "/Library/StartupItems/BB/BB" 
failed security check: not owned by GID 0
Apr 28 08:16:08 zelda2 SystemStarter[3131]: Unknown service: BB
Apr 28 08:16:12 zelda2 sudo:       bb : TTY=ttyp1 ; 
PWD=/soft/pub/BB/hobbit/client/ext ; USER=root ; COMMAND=/sbin/SystemStarter 
stop BB
Apr 28 08:16:12 zelda2 SystemStarter[3132]: "/Library/StartupItems/BB/BB" 
failed security check: not owned by UID 0
Apr 28 08:16:12 zelda2 SystemStarter[3132]: "/Library/StartupItems/BB/BB" 
failed security check: not owned by GID 0
Apr 28 08:16:12 zelda2 SystemStarter[3132]: Unknown service: BB
Apr 28 08:16:18 zelda2 sudo:       bb : TTY=ttyp1 ; 
PWD=/soft/pub/BB/hobbit/client/ext ; USER=root ; COMMAND=/sbin/SystemStarter 
start BB
Apr 28 08:16:18 zelda2 SystemStarter[3133]: "/Library/StartupItems/BB/BB" 
failed security check: not owned by UID 0
Apr 28 08:16:18 zelda2 SystemStarter[3133]: "/Library/StartupItems/BB/BB" 
failed security check: not owned by GID 0
Apr 28 08:16:18 zelda2 SystemStarter[3133]: Unknown service: BB
Apr 28 08:16:37 zelda2 sudo:       bb : TTY=ttyp1 ; 
PWD=/soft/pub/BB/hobbit/client/ext ; USER=root ; COMMAND=/sbin/SystemStarter -d 
start BB
Apr 28 08:16:37 zelda2 SystemStarter[3137]: "/Library/StartupItems/BB/BB" 
failed security check: not owned by UID 0
Apr 28 08:16:37 zelda2 SystemStarter[3137]: "/Library/StartupItems/BB/BB" 
failed security check: not owned by GID 0
Apr 28 08:16:37 zelda2 SystemStarter[3137]: Unknown service: BB
Apr 28 08:20:49 zelda2 su: pam_authenticate: Authentication failure
Apr 28 08:20:55 zelda2 su: bb to root on /dev/ttyp1
Apr 28 08:21:27 zelda2 SystemStarter[3154]: "/Library/StartupItems/BB/BB" 
failed security check: not owned by UID 0
Apr 28 08:21:27 zelda2 SystemStarter[3154]: "/Library/StartupItems/BB/BB" 
failed security check: not owned by GID 0
Apr 28 08:21:27 zelda2 SystemStarter[3154]: Unknown service: BB
Apr 28 08:22:56 zelda2 sudo:       bb : TTY=ttyp1 ; 
PWD=/soft/pub/BB/hobbit/client/ext ; USER=root ; COMMAND=/sbin/SystemStarter 
start BB
Apr 28 08:24:12 zelda2 sudo:       bb : TTY=ttyp1 ; 
PWD=/soft/pub/BB/hobbit/client/tmp ; USER=root ; COMMAND=/sbin/SystemStarter 
restart BB
Apr 28 08:57:20 zelda2 su: bb to root on /dev/ttyp1

[logfile:/var/log/system.log]
type:100000 (file)
mode:640 (-rw-r-----)
linkcount:1
owner:0 (root)
group:80 (admin)
size:3
clock:1146224838 (2006/04/28-13:47:18)
atime:1146224838 (2006/04/28-13:47:18)
ctime:1146207446 (2006/04/28-08:57:26)
mtime:1146207446 (2006/04/28-08:57:26)



zelda2:~ bb$ ls -l /var/log/system.log
-rw-r-----   1 root  admin  3078 Apr 28 08:57 /var/log/system.log



zelda2:~ bb$ wc /var/log/system.log
       31     392    3078 /var/log/system.log



zelda2:/soft/pub/BB/hobbit/client/tmp bb$ ll
total 64
-rw-r--r--   1 bb  ci     63 Apr 28 13:47 logfetch.cfg
-rw-r--r--   1 bb  ci     34 Apr 28 13:47 logfetch.status
-rw-r--r--   1 bb  ci  21312 Apr 28 13:47 msg.txt
zelda2:/soft/pub/BB/hobbit/client/tmp bb$ cat logfetch.status
/var/log/system.log:0:0:0:0:0:0:0


The bb user which is running hobbit is also in the admin group:

zelda2:/soft/pub/BB/hobbit/client/tmp bb$ id
uid=2021(bb) gid=10010(ci) groups=10010(ci), 80(admin)


Thanks,

Dominique
UNIL - University of Lausanne



More information about the Xymon mailing list