Hi Greg
I managed to fix the the issue by as you say giving www-data access to
the RRD files.
The problem is I don't want to have to do this for every RRD file that
is created.
Do you happen to have the link to the messages for mod'ing the startup
script?
Thanks for your help
NIck
On 10/07/2013 00:52, Gregory Sloop wrote:
Re: [smokeping-users] Slave Graphs not updating on master www-data
needs rights to write to the RRD files.
A search for "slave permissions" will probably give a few more
pointers from the list since this is a common issue.
changing ownership and rights should set you right.
[Even better, mod'ing the startup script to change all the RRD files
so they are www-data writeable - this way new slave setups won't get
borked if you forget to mod them...a post in the last day or two
showed a good example of this.]
-Greg
All,
I am pulling my hair out trying to get the slave graphs to update on
the master server.
I have ran the debug on the slave and can it executing the probe and
sending the data to the master. apparently the server acknowledges it,
but nothing appears on the webpage.
This is how the apache and smokeping process run:
# ps -ef | grep apache
root 987 1 0 22:45 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 989 987 0 22:45 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 991 987 0 22:45 ? 00:00:00 /usr/sbin/apache2 -k start
www-data 992 987 0 22:45 ? 00:00:00 /usr/sbin/apache2 -k start
# ps -ef | grep smokeping
106 1706 1 0 23:05 ? 00:00:00 /usr/sbin/smokeping
[FPing]
There is nothing in /var/log/syslog to suggest why this is not working.
There is however these in /var/log/apache2/error.log. The problem is
that those files don't exist
[Tue Jul 9 23:17:00 2013] smokeping.cgi [client XXXXX]: Could not
lock
/var/lib/smokeping//External/BBC-CO-UK.smokeping-oregon.slave_cache
(Permission denied). Trying again 2 more times.
[Tue Jul 9 23:17:01 2013] smokeping.cgi [client XXXXX]: Could not
lock
/var/lib/smokeping//External/BBC-CO-UK.smokeping-oregon.slave_cache
(Permission denied). Trying again 1 more times.
[Tue Jul 9 23:17:02 2013] smokeping.cgi [client XXXXX]: Could not
update
/var/lib/smokeping//External/BBC-CO-UK.smokeping-oregon.slave_cache,
giving up for now. at /usr/share/perl5/Smokeping/Master.pm line 156.
[Tue Jul 9 23:22:00 2013] smokeping.cgi [client XXXXX]: Could not
lock
/var/lib/smokeping//External/BBC-CO-UK.smokeping-oregon.slave_cache
(Permission denied). Trying again 2 more times.
[Tue Jul 9 23:22:01 2013] smokeping.cgi [client XXXXX]: Could not
lock
/var/lib/smokeping//External/BBC-CO-UK.smokeping-oregon.slave_cache
(Permission denied). Trying again 1 more times.
[Tue Jul 9 23:22:02 2013] smokeping.cgi [client XXXXX]: Could not
update
/var/lib/smokeping//External/BBC-CO-UK.smokeping-oregon.slave_cache,
giving up for now. at /usr/share/perl5/Smokeping/Master.pm line 156.
ls -la /var/lib/smokeping//External/
total 5848
drwxr-xr-x 2 smokeping smokeping 4096 Jul 9 22:51 .
drwxr-xr-x 6 smokeping smokeping 4096 Jul 9 22:51 ..
-rw-r--r-- 1 smokeping smokeping 2986808 Jul 9 23:33 BBC-CO-UK.rrd
-rw-r--r-- 1 smokeping smokeping 2986808 Jul 9 22:51
BBC-CO-UK~smokeping-oregon.rrd
Could you help me get to the bottom of this?
Thanks
Nick
/--
Gregory Sloop, Principal: Sloop Network & Computer Consulting
Voice: 503.251.0452 x82
EMail: /[email protected] <mailto:[email protected]>
http://www.sloop.net
/---
_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
/
_______________________________________________
smokeping-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users