pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/44530: xymonclient log files



>Number:         44530
>Category:       pkg
>Synopsis:       client scripts can't write log files
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 07 20:35:00 +0000 2011
>Originator:     Tracy J. Di Marco White
>Release:        NetBSD 5.0.1
>Organization:
>Environment:
System: NetBSD blackhole.ait.iastate.edu 5.0.1 NetBSD 5.0.1 (BLACKHOLE) #14: 
Tue Mar 30 11:59:31 CDT 2010 
root%blackhole.ait.iastate.edu@localhost:/usr/obj/usr/src/sys/arch/i386/compile/BLACKHOLE
 i386
Architecture: i386
Machine: i386
current pkgsrc
>Description:
many client launched things try to log to $HOBBITCLIENTHOME/logs/
(/usr/pkg/share/xymon/bbhome/client/logs/), but they don't have permission
to write there. /usr/pkg/share/xymon/bbhome/client/logs/xymon is a link
to /var/log/xymon and only clientlaunch.log is logged there.

bash-3.00# pwd
/usr/pkg/share/xymon/bbhome/client
bash-3.00# ls -l
total 1
lrwxr-xr-x  1 root  wheel   29 Feb  7 11:16 bin -> /usr/pkg/libexec/xymon/client
lrwxr-xr-x  1 root  wheel   18 Feb  7 11:16 etc -> /usr/pkg/etc/xymon
lrwxr-xr-x  1 root  wheel   33 Feb  7 11:16 ext -> 
/usr/pkg/libexec/xymon/ext/client
drwxr-xr-x  2 root  wheel  512 Feb  7 11:16 logs
lrwxr-xr-x  1 root  wheel   21 Feb  7 11:16 tmp -> /var/xymon/tmp/client

Which also causes:
bash-3.00# /etc/rc.d/xymonclient restart
Stopping xymonclient.
ln: /usr/pkg/share/xymon/bbhome/client/logs/xymon: File exists
Starting xymonclient.

In my installation, I just did: 
rm /usr/pkg/share/xymon/bbhome/client/logs/xymon
(which I think is created by patch-ac)
rmdir /usr/pkg/share/xymon/bbhome/client/logs
then '/etc/rc.d/xymonclient start' restarted things correctly, and the
symlink (/usr/pkg/share/xymon/bbhome/client/logs -> /var/log/xymon)
was created correctly, and now my client launched scripts have logs.

bash-3.00# cd /var/log/xymon/
bash-3.00# ls -l
total 2
-rw-r--r--  1 xymon  xymon  148 Feb  7 13:10 backup_report.log
-rw-r--r--  1 xymon  xymon  804 Feb  7 13:10 clientlaunch.log
-rw-r--r--  1 xymon  xymon    0 Feb  7 13:10 hobbitclient.log
-rw-r--r--  1 xymon  xymon    0 Feb  7 13:10 queue_checker.log

-Tracy
>How-To-Repeat:
Install. Add ext scripts.
>Fix:
workaround:
rm /usr/pkg/share/xymon/bbhome/client/logs/xymon
rmdir /usr/pkg/share/xymon/bbhome/client/logs
/etc/rc.d/xymonclient start



Home | Main Index | Thread Index | Old Index