[smokeping-users] No data being displayed for slave machine
G.W. Haywood
ged at jubileegroup.co.uk
Fri Jun 20 18:33:52 CEST 2008
Hi David,
On Sat, 21 Jun 2008, David Tomic wrote:
> > rrdtool dump /var/lib/smokeping/World/Europe/UK/WWW3-HTTP.rrd >WWW3-HTTP.xml
> >
>
> You're talking about the .rrd file thats created/stored on the master
> machine correct?
Yes. I'm assuning all your .rrd files are stored on the master.
> > <lastupdate> 1213965501 </lastupdate> <!-- 2008-06-20 13:38:21 BST -->
>
> No ... I don't think that it is actually. The <lastupdate> time looks
> like the initial creation date of the .rrds by the master machine.
You mean that in _your_ file it looks like the file isn't being updated?
Can you verify that this is not the case for files which are being updated?
> Where does that put us then?
You have to find out why the master says to the slave that it has the
data but then the data doesn't manage to get written to the file. Are
the permissions on your .rrd files all the same?
Here are the Apache processes on my master server:
tornado:~# >>> ps axfuww | grep apache
root 3310 0.0 0.0 32196 2568 ? Ss 12:35 0:00 /usr/sbin/apache
www-data 3314 0.0 0.0 32332 1528 ? S 12:35 0:00 \_ /usr/sbin/apache
www-data 3315 0.0 0.0 32332 1528 ? S 12:35 0:00 \_ /usr/sbin/apache
www-data 3317 0.0 0.0 32332 1528 ? S 12:35 0:00 \_ /usr/sbin/apache
www-data 3318 0.0 0.0 32332 1528 ? S 12:35 0:00 \_ /usr/sbin/apache
www-data 3319 0.0 0.0 32332 1528 ? S 12:35 0:00 \_ /usr/sbin/apache
www-data 3541 0.0 0.0 32332 1524 ? S 12:36 0:00 \_ /usr/sbin/apache
Here are the processes owned by user 'smokeping'
tornado:~# >>> ps -o pid,fuser=User_Name,pid,pcpu,stat,comm --user smokeping
PID User_Name PID %CPU STAT COMMAND
3433 smokeping 3433 0.0 Ss smokeping
3435 smokeping 3435 0.0 S smokeping
3442 smokeping 3442 0.0 S smokeping
3444 smokeping 3444 0.0 S smokeping
3445 smokeping 3445 0.0 S smokeping
3446 smokeping 3446 0.0 S smokeping
3447 smokeping 3447 0.0 S smokeping
3449 smokeping 3449 0.0 S smokeping
3451 smokeping 3451 0.0 S smokeping
3452 smokeping 3452 0.0 S smokeping
3453 smokeping 3453 0.0 S smokeping
3458 smokeping 3458 0.0 S smokeping
3460 smokeping 3460 0.0 S smokeping
3463 smokeping 3463 0.0 S smokeping
3466 smokeping 3466 0.0 S smokeping
3470 smokeping 3470 0.0 S smokeping
3484 smokeping 3484 0.0 S smokeping
3485 smokeping 3485 0.0 S smokeping
3490 smokeping 3490 0.0 S smokeping
3497 smokeping 3497 0.0 S smokeping
3498 smokeping 3498 0.0 S smokeping
3499 smokeping 3499 0.0 S smokeping
3500 smokeping 3500 0.0 S smokeping
3501 smokeping 3501 0.0 S smokeping
3502 smokeping 3502 0.0 S smokeping
3503 smokeping 3503 0.0 S smokeping
21037 smokeping 21037 0.0 S fping
Note that these processes haven't been running for very long, so they
haven't done very much yet. (I'll leave you to figure out why I had
to use that format specifier in the ps command line:)
Here are the .rrd files for one part of the local network:
tornado:~# >>> ll /var/lib/smokeping/Local/BluebellClose
-rw-r--r-- 1 smokeping smokeping 2986808 2008-06-20 16:01 BACKUP.rrd
-rw-r--r-- 1 smokeping smokeping 2986808 2008-06-20 16:00 DRAUGHT.rrd
-rw-r--r-- 1 smokeping smokeping 2986808 2008-06-20 16:00 FIREWALL.rrd
-rw-r--r-- 1 smokeping smokeping 1039568 2008-06-20 16:03 HTTP_GET.rrd
-rw-r--r-- 1 smokeping smokeping 2986808 2008-06-20 16:00 LocalMachine.rrd
-rw-r--r-- 1 smokeping smokeping 2986808 2008-06-20 16:00 Portakabin2.rrd
-rw-r--r-- 1 smokeping smokeping 2986808 2008-06-20 16:00 RH90.rrd
-rw-r--r-- 1 smokeping smokeping 779936 2008-06-20 16:02 SSH_TCP_ping.rrd
-rw-r--r-- 1 smokeping smokeping 2986808 2008-06-20 16:00 TWISTER.rrd
-rw-r--r-- 1 smokeping smokeping 2986808 2008-06-20 16:00 VORTEX.rrd
-rw-r--r-- 1 smokeping smokeping 2986808 2008-06-20 16:00 WWW2.rrd
As you can see, the .rrd files are all writeable only by the smokeping
user (and root, of course). The Apache user is 'www-data'. The Apache
Webserver (apart from the parent process, which does not serve requests)
can only read them.
--
73,
Ged.
More information about the smokeping-users
mailing list