[smokeping-users] New User and Trying to setup a Master/Slave topology

Nicolas MICHEL trash at nmichel.fr
Tue Apr 16 08:58:41 CEST 2013


File is definitely not in the /var/lib/folder ....

Here are the logs :

****CREATING FILE****

root at ubuntu:/home/nml# touch 
/var/lib/smokeping/Local/Google_FR.ubuntu.slave_cache

root at ubuntu:/home/nml# ll /var/lib/smokeping/Local/
total 4976
drwxrwxr-x 2 smokeping smokeping    4096 Apr 16 08:51 ./
drwxrwxr-x 5 smokeping smokeping    4096 Apr 10 22:38 ../
-rw-rw-r-- 1 smokeping www-data  1688648 Apr 16 08:49 Google_FR.rrd
-rw-rw-r-- 1 smokeping www-data  1688648 Apr 15 22:18 
Google_FR~ubuntu.rrd
-rw-r--r-- 1 root      root            0 Apr 16 08:51 
Google_FR.ubuntu.slave_cache
-rw-rw-r-- 1 smokeping www-data  1688648 Apr 16 08:49 LocalMachine.rrd



****CHANGING OWNER****

y
root at ubuntu:/home/nml# chown www-data:www-data 
/var/lib/smokeping/Local/Google_FR.ubuntu.slave_cache
root at ubuntu:/home/nml# ll /var/lib/smokeping/Local/
total 4976
drwxrwxr-x 2 smokeping smokeping    4096 Apr 16 08:51 ./
drwxrwxr-x 5 smokeping smokeping    4096 Apr 10 22:38 ../
-rw-rw-r-- 1 smokeping www-data  1688648 Apr 16 08:49 Google_FR.rrd
-rw-rw-r-- 1 smokeping www-data  1688648 Apr 15 22:18 
Google_FR~ubuntu.rrd
-rw-r--r-- 1 www-data  www-data        0 Apr 16 08:51 
Google_FR.ubuntu.slave_cache
-rw-rw-r-- 1 smokeping www-data  1688648 Apr 16 08:49 LocalMachine.rrd
root at ubuntu:/home/nml#


***** STARTING PROCESS ******


root at ubuntu:/home/nml# /etc/init.d/smokeping start
 * Starting latency logger daemon smokeping
   ...done.
root at ubuntu:/home/nml# ll /var/lib/smokeping/Local/
total 4976
drwxrwxr-x 2 smokeping smokeping    4096 Apr 16 08:51 ./
drwxrwxr-x 5 smokeping smokeping    4096 Apr 10 22:38 ../
-rw-rw-r-- 1 smokeping www-data  1688648 Apr 16 08:49 Google_FR.rrd
-rw-rw-r-- 1 smokeping www-data  1688648 Apr 15 22:18 
Google_FR~ubuntu.rrd
-rw-r--r-- 1 www-data  www-data        0 Apr 16 08:51 
Google_FR.ubuntu.slave_cache
-rw-rw-r-- 1 smokeping www-data  1688648 Apr 16 08:49 LocalMachine.rrd
root at ubuntu:/home/nml# ll /var/lib/smokeping/Local/
total 4976





Then file disappears .... :


root at ubuntu:/home/nml# ll /var/lib/smokeping/Local/
total 4976
drwxrwxr-x 2 smokeping smokeping    4096 Apr 16 08:52 ./
drwxrwxr-x 5 smokeping smokeping    4096 Apr 10 22:38 ../
-rw-rw-r-- 1 smokeping www-data  1688648 Apr 16 08:52 Google_FR.rrd
-rw-rw-r-- 1 smokeping www-data  1688648 Apr 15 22:18 
Google_FR~ubuntu.rrd
-rw-rw-r-- 1 smokeping www-data  1688648 Apr 16 08:52 LocalMachine.rrd




And here are the logs from Apache ... *Errors logs show nothing 
interesting*

root at ubuntu:/home/nml# tail /var/log/apache2/access.log
172.16.119.12 - - [16/Apr/2013:08:52:13 +0200] "GET 
/smokeping/images/Local/Google_FR_last_108000.png HTTP/1.1" 200 18530 
"http://172.16.119.14/cgi-bin/smokeping.cgi?target=Local.Google_FR" 
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 
Firefox/20.0"
172.16.119.12 - - [16/Apr/2013:08:52:13 +0200] "GET 
/smokeping/images/Local/Google_FR~ubuntu_last_108000.png HTTP/1.1" 200 
18801 
"http://172.16.119.14/cgi-bin/smokeping.cgi?target=Local.Google_FR" 
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 
Firefox/20.0"
172.16.119.12 - - [16/Apr/2013:08:52:13 +0200] "GET 
/smokeping/images/Local/Google_FR_last_10800.png HTTP/1.1" 200 19759 
"http://172.16.119.14/cgi-bin/smokeping.cgi?target=Local.Google_FR" 
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 
Firefox/20.0"
172.16.119.12 - - [16/Apr/2013:08:52:13 +0200] "GET 
/smokeping/images/Local/Google_FR~ubuntu_last_31104000.png HTTP/1.1" 
200 21131 
"http://172.16.119.14/cgi-bin/smokeping.cgi?target=Local.Google_FR" 
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 
Firefox/20.0"
172.16.119.12 - - [16/Apr/2013:08:52:13 +0200] "GET 
/smokeping/images/smokeping.png HTTP/1.1" 304 186 
"http://172.16.119.14/cgi-bin/smokeping.cgi?target=Local.Google_FR" 
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 
Firefox/20.0"
172.16.119.12 - - [16/Apr/2013:08:52:13 +0200] "GET 
/smokeping/images/rrdtool.png HTTP/1.1" 304 184 
"http://172.16.119.14/cgi-bin/smokeping.cgi?target=Local.Google_FR" 
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 
Firefox/20.0"
172.16.119.12 - - [16/Apr/2013:08:52:13 +0200] "GET 
/smokeping/images/Local/Google_FR_last_31104000.png HTTP/1.1" 200 19755 
"http://172.16.119.14/cgi-bin/smokeping.cgi?target=Local.Google_FR" 
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 
Firefox/20.0"
172.16.119.12 - - [16/Apr/2013:08:52:13 +0200] "GET 
/smokeping/images/Local/Google_FR~ubuntu_last_10800.png HTTP/1.1" 200 
19832 
"http://172.16.119.14/cgi-bin/smokeping.cgi?target=Local.Google_FR" 
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 
Firefox/20.0"
172.16.119.15 - - [16/Apr/2013:08:52:25 +0200] "POST 
/cgi-bin/smokeping.cgi HTTP/1.1" 200 6030 "-" "smokeping-slave/1.0"
172.16.119.15 - - [16/Apr/2013:08:53:12 +0200] "POST 
/cgi-bin/smokeping.cgi HTTP/1.1" 200 197 "-" "smokeping-slave/1.0"






Thanks for your help anyone !


Tobi do you have an idea ? :)


Nicolas




Le Tuesday, April 16, 2013 7:12:02 AM, Trash a écrit :
> I cannot see the cache file :(
>
> Nothing in ls -lua /var/lib/smokeping/Local ... :(
>
> Tried to create it using touch but now the file disappeared I guess
>
> :(
>
> Le Tue Apr 16 01:52:01 2013, Gregory Sloop a écrit :
>> But you didn't list the file it's erroring on:
>> [Google_FR.ubuntu.slave_cache]
>>
>> You just listed the RRD files.
>>
>> What are the perms/owners on
>> /var/lib/smokeping//Local/Google_FR.ubuntu.slave_cache
>>
>> -Greg
>>
>> NM> I think you were right Greg !
>> NM> [Tue Apr 16 00:29:43 2013] smokeping.cgi [client 192.168.1.31]:
>> Could
>> NM> not lock /var/lib/smokeping//Local/Google_FR.ubuntu.slave_cache
>> NM> (Permission denied). Trying again 2 more times.
>> NM> [Tue Apr 16 00:29:43 2013] smokeping.cgi [client 192.168.1.31]:
>> Could
>> NM> not lock /var/lib/smokeping//Local/Google_FR.ubuntu.slave_cache
>> NM> (Permission denied). Trying again 1 more times.
>> NM> [Tue Apr 16 00:29:43 2013] smokeping.cgi [client 192.168.1.31]:
>> Could
>> NM> not update /var/lib/smokeping//Local/Google_FR.ubuntu.slave_cache,
>> NM> giving up for now. at /usr/share/perl5/Smokeping/Master.pm line 156.
>> NM> [Tue Apr 16 00:34:47 2013] smokeping.cgi [client 192.168.1.31]:
>> Could
>> NM> not lock /var/lib/smokeping//Local/Google_FR.ubuntu.slave_cache
>> NM> (Permission denied). Trying again 2 more times.
>> NM> [Tue Apr 16 00:34:47 2013] smokeping.cgi [client 192.168.1.31]:
>> Could
>> NM> not lock /var/lib/smokeping//Local/Google_FR.ubuntu.slave_cache
>> NM> (Permission denied). Trying again 1 more times.
>> NM> [Tue Apr 16 00:34:48 2013] smokeping.cgi [client 192.168.1.31]:
>> Could
>> NM> not update /var/lib/smokeping//Local/Google_FR.ubuntu.slave_cache,
>> NM> giving up for now. at /usr/share/perl5/Smokeping/Master.pm line 156.
>>
>> NM> But the problem is that the permission are setup this way:
>>
>>
>> NM> root at ubuntu:/home/nml# ll /var/lib/smokeping//Local/
>> NM> total 4976
>> NM> drwxrwxr-x 2 smokeping smokeping    4096 Apr 15 23:37 ./
>> NM> drwxrwxr-x 5 smokeping smokeping    4096 Apr 10 22:38 ../
>> NM> -rw-rw-r-- 1 smokeping www-data  1688648 Apr 16 00:36 Google_FR.rrd
>> NM> -rw-rw-r-- 1 smokeping www-data  1688648 Apr 15 22:18
>> NM> Google_FR~ubuntu.rrd
>> NM> -rw-rw-r-- 1 smokeping www-data  1688648 Apr 16 00:36
>> LocalMachine.rrd
>>
>>
>> NM> How can I resolve the issue ? :()
>>
>
>



More information about the smokeping-users mailing list