G.W. Haywood wrote:
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.
Yeah ... I'm just making sure that we're definitely on the same page.
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?
Correct ... I'm talking about my own slave .rrd files. RRD files for
the master are updating fine though.
test.rrd [master]
<lastupdate> 1213980387 </lastupdate> <!-- 2008-06-21 02:46:27 EST -->
That's within 5 minutes of the current time here ... so obviously
updating properly.
test~david-slavebox.rrd <lastupdate> time is several hours ago.
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?
Yes ... They're all owned by the smokeping user/group.
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
[EMAIL PROTECTED]:~$ ps axfuww | grep apache
root 14409 0.0 0.1 209144 2812 ? Ss Jun19 0:01
/usr/sbin/apache2 -k start
www-data 26556 0.0 0.0 209280 1900 ? S Jun20 0:00 \_
/usr/sbin/apache2 -k start
www-data 22119 0.0 0.1 213768 2320 ? S Jun20 0:00 \_
/usr/sbin/apache2 -k start
www-data 19246 0.0 0.0 209284 1836 ? S Jun20 0:00 \_
/usr/sbin/apache2 -k start
www-data 4685 0.0 0.0 209284 1828 ? S Jun20 0:00 \_
/usr/sbin/apache2 -k start
www-data 23219 0.0 0.0 209280 1876 ? S Jun20 0:00 \_
/usr/sbin/apache2 -k start
www-data 23220 0.0 0.1 209284 3380 ? S Jun20 0:00 \_
/usr/sbin/apache2 -k start
www-data 15032 0.0 0.1 209284 2092 ? S 01:08 0:00 \_
/usr/sbin/apache2 -k start
www-data 27897 0.0 0.0 209284 2032 ? S 02:08 0:00 \_
/usr/sbin/apache2 -k start
www-data 28805 0.0 0.0 209280 2040 ? S 02:13 0:00 \_
/usr/sbin/apache2 -k start
www-data 569 0.0 0.0 209284 2024 ? S 02:36 0:00 \_
/usr/sbin/apache2 -k start
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:)
Well mine has probably been running for even less time, because I just
put it through a restart. ;)
[EMAIL PROTECTED]:~$ ps -o pid,fuser=User_Name,pid,pcpu,stat,comm
--user smokeping
PID User_Name PID %CPU STAT COMMAND
7766 smokeping 7766 0.0 Ss smokeping
7767 smokeping 7767 0.0 S smokeping
7768 smokeping 7768 0.0 S smokeping
7769 smokeping 7769 0.0 S smokeping
Here are the .rrd files for one part of the local network:
<snip>
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.
[EMAIL PROTECTED]:~$ ls -l /var/lib/smokeping/slave-test
total 5848
-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 03:14
slave-test-google-au.rrd
_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users