[smokeping-users] No data being displayed for slave machine
G.W. Haywood
ged at jubileegroup.co.uk
Sat Jun 21 15:42:52 CEST 2008
Hi David,
On Sat, 21 Jun 2008, David Tomic wrote:
> G.W. Haywood wrote:
>
> > What is the user by which the smokeping processes on the master are run?
> >
> It's run by a smokeping user on both the master and slave machines.
>
> david at david-desktop:~$ ls -l /var/lib/smokeping/slave-test
> -rw-r--r-- 1 smokeping smokeping 2986808 2008-06-21 03:14 slave-test-google-au~david-slavebox.rrd
> -rw-r--r-- 1 smokeping smokeping 2986808 2008-06-21 14:38 slave-test-google-au.rrd
The output from 'ps' would be a better indication of which user is running
the processes, but accepting for now that it is in fact the smokeping user
which is running them, then if you use the '--debug-daemon' switch when
you you start smokeping on the _master_, do you see anything like this in
the log file (/var/log/messages or wherever the hell it is:)
tornado:~# >>> grep Server /var/log/messages | tail -n 3
Jun 21 14:22:36 tornado smokeping[3458]: Calling RRDs::update(/var/lib/smokeping/Local/Server_SSH.rrd --template uptime:loss: [snip]
Jun 21 14:26:02 tornado smokeping[3451]: Calling RRDs::update(/var/lib/smokeping/Local/Server.rrd --template uptime:loss:medi [snip]
Jun 21 14:26:02 tornado smokeping[3451]: Calling RRDs::update(/var/lib/smokeping/Local/Server~mail4.rrd --template uptime:los [snip]
Note that the processes calling RRDs::update on my .rrd files are
running as user 'smokeping':
tornado:~# >>> ps axufww | grep smoke | grep 345[18]
116 3451 0.0 0.3 56880 21528 ? S Jun20 0:01 \_ /usr/sbin/smokeping [FPing_14]
116 3458 0.0 0.3 56880 21464 ? S Jun20 0:02 \_ /usr/sbin/smokeping [TCPPing]
and that (in my system at least) the files that they are writing are
writeable only by that user (and root of course):
tornado:~# >>> ls -l /var/lib/smokeping/Local | grep Server
-rw-r--r-- 1 smokeping smokeping 2986808 2008-06-21 14:36 Server~mail4.rrd
-rw-r--r-- 1 smokeping smokeping 2986808 2008-06-21 14:36 Server.rrd
-rw-r--r-- 1 smokeping smokeping 779936 2008-06-18 08:49 Server_SSH~mail4.rrd
-rw-r--r-- 1 smokeping smokeping 779936 2008-06-21 14:32 Server_SSH.rrd
--
73,
Ged.
More information about the smokeping-users
mailing list