I installed hobbit 4.1.1, saw that it was working, and ignored it for a few hours... Then I saw purples for the client tests..
checking /var/log/hobbit/hobbitclient.log showed:
/usr/lib/hobbit/client/bin/hobbitclient.sh: line 17: /usr/lib/hobbit/client/tmp/msg.txt: Permission denied /usr/lib/hobbit/client/bin/hobbitclient.sh: line 18: /usr/lib/hobbit/client/tmp/msg.txt: Permission denied /usr/lib/hobbit/client/bin/hobbitclient.sh: line 19: /usr/lib/hobbit/client/tmp/msg.txt: No such file or directory
Sure enough, /usr/lib/hobbit/client/tmp was not writable by the hobbit user. But, shouldn't things like that be written to /var instead of /usr?
Of course, now that it can write things, it's complaining about something else (can't read the /proc directory, since I run Mandriva in paranoid mode....)
-- Daniel J McDonald, CCIE # 2495, CNX, CISSP # 78281 Austin Energy
dan.mcdonald at austinenergy.com
On Mon, Jul 25, 2005 at 05:42:20PM -0500, Daniel J McDonald wrote:
Sure enough, /usr/lib/hobbit/client/tmp was not writable by the hobbit user. But, shouldn't things like that be written to /var instead of /usr?
Ideally, yes. But to simplify the installation the client I decided to just keep everything below the client/ directory by default - including the tmp/ and logs/ directories.
Of course, now that it can write things, it's complaining about something else (can't read the /proc directory, since I run Mandriva in paranoid mode....)
For getting stats from a Linux box, you really need access to the /proc directory. Most of the standard tools collect their information there.
Henrik
On Tue, 2005-07-26 at 07:31 +0200, Henrik Stoerner wrote:
On Mon, Jul 25, 2005 at 05:42:20PM -0500, Daniel J McDonald wrote:
Of course, now that it can write things, it's complaining about something else (can't read the /proc directory, since I run Mandriva in paranoid mode....)
For getting stats from a Linux box, you really need access to the /proc directory. Most of the standard tools collect their information there.
Naturally - it's just one more step... Add the hobbit user to the adm group, change the permissions on the /usr/lib/hobbit/client/tmp directory, and it all works.
Now I just have to figure out how to build a "client only" package, and I'll be in business...
-- Daniel J McDonald, CCIE # 2495, CNX, CISSP # 78281 Austin Energy
dan.mcdonald at austinenergy.com
participants (2)
-
dan.mcdonald@austinenergy.com
-
henrik@hswn.dk