<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
G.W. Haywood wrote:
<blockquote
cite="mid:Pine.LNX.4.58.0806201547070.6674@mail3.jubileegroup.co.uk"
type="cite"><br>
<blockquote type="cite">
<pre wrap="">You're talking about the .rrd file thats created/stored on the master
machine correct?
</pre>
</blockquote>
<pre wrap=""><!---->
Yes. I'm assuning all your .rrd files are stored on the master.
</pre>
</blockquote>
Yeah ... I'm just making sure that we're definitely on the same page.<br>
<blockquote
cite="mid:Pine.LNX.4.58.0806201547070.6674@mail3.jubileegroup.co.uk"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap=""><!---->
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?
</pre>
</blockquote>
<br>
Correct ... I'm talking about my own slave .rrd files. RRD files for
the master are updating fine though.<br>
<br>
test.rrd [master]<br>
<br>
<lastupdate> 1213980387 </lastupdate> <!--
2008-06-21 02:46:27 EST --> <br>
<br>
That's within 5 minutes of the current time here ... so obviously
updating properly.<br>
<br>
test~david-slavebox.rrd <lastupdate> time is several hours ago.<br>
<br>
<br>
<br>
<br>
<blockquote
cite="mid:Pine.LNX.4.58.0806201547070.6674@mail3.jubileegroup.co.uk"
type="cite">
<blockquote type="cite">
<pre wrap="">Where does that put us then?
</pre>
</blockquote>
<pre wrap=""><!---->
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?
</pre>
</blockquote>
<br>
Yes ... They're all owned by the smokeping user/group.<br>
<blockquote
cite="mid:Pine.LNX.4.58.0806201547070.6674@mail3.jubileegroup.co.uk"
type="cite">
<pre wrap="">
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
</pre>
</blockquote>
<br>
david@david-desktop:~$ ps axfuww | grep apache<br>
root 14409 0.0 0.1 209144 2812 ? Ss Jun19 0:01
/usr/sbin/apache2 -k start<br>
www-data 26556 0.0 0.0 209280 1900 ? S Jun20 0:00 \_
/usr/sbin/apache2 -k start<br>
www-data 22119 0.0 0.1 213768 2320 ? S Jun20 0:00 \_
/usr/sbin/apache2 -k start<br>
www-data 19246 0.0 0.0 209284 1836 ? S Jun20 0:00 \_
/usr/sbin/apache2 -k start<br>
www-data 4685 0.0 0.0 209284 1828 ? S Jun20 0:00 \_
/usr/sbin/apache2 -k start<br>
www-data 23219 0.0 0.0 209280 1876 ? S Jun20 0:00 \_
/usr/sbin/apache2 -k start<br>
www-data 23220 0.0 0.1 209284 3380 ? S Jun20 0:00 \_
/usr/sbin/apache2 -k start<br>
www-data 15032 0.0 0.1 209284 2092 ? S 01:08 0:00 \_
/usr/sbin/apache2 -k start<br>
www-data 27897 0.0 0.0 209284 2032 ? S 02:08 0:00 \_
/usr/sbin/apache2 -k start<br>
www-data 28805 0.0 0.0 209280 2040 ? S 02:13 0:00 \_
/usr/sbin/apache2 -k start<br>
www-data 569 0.0 0.0 209284 2024 ? S 02:36 0:00 \_
/usr/sbin/apache2 -k start<br>
<br>
<blockquote
cite="mid:Pine.LNX.4.58.0806201547070.6674@mail3.jubileegroup.co.uk"
type="cite">
<pre wrap="">
Here are the processes owned by user 'smokeping'
tornado:~# >>> ps -o pid,fuser=User_Name,pid,pcpu,stat,comm --user smokeping
<snip>
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:)
</pre>
</blockquote>
<br>
Well mine has probably been running for even less time, because I just
put it through a restart. ;)<br>
<br>
david@david-desktop:~$ ps -o pid,fuser=User_Name,pid,pcpu,stat,comm
--user smokeping<br>
PID User_Name PID %CPU STAT COMMAND<br>
7766 smokeping 7766 0.0 Ss smokeping<br>
7767 smokeping 7767 0.0 S smokeping<br>
7768 smokeping 7768 0.0 S smokeping<br>
7769 smokeping 7769 0.0 S smokeping<br>
<br>
<blockquote
cite="mid:Pine.LNX.4.58.0806201547070.6674@mail3.jubileegroup.co.uk"
type="cite">
<pre wrap="">
Here are the .rrd files for one part of the local network:
<snip>
</pre>
</blockquote>
<blockquote
cite="mid:Pine.LNX.4.58.0806201547070.6674@mail3.jubileegroup.co.uk"
type="cite">
<pre wrap="">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.
Yep ... mine is setup the same.</pre>
</blockquote>
<br>
<br>
david@david-desktop:~$ ls -l /var/lib/smokeping/slave-test<br>
total 5848<br>
-rw-r--r-- 1 smokeping smokeping 2986808 2008-06-21 03:14
slave-test-google-au~david-slavebox.rrd<br>
-rw-r--r-- 1 smokeping smokeping 2986808 2008-06-21 03:14
slave-test-google-au.rrd<br>
<br>
</body>
</html>