[smokeping-users] PNG Saving errors

staticsafe me at staticsafe.ca
Sun Oct 21 20:49:43 CEST 2012


On 10/21/2012 13:32, Nicolas KARP wrote:
> Hi Staticsafe,
> 
> Can you please send me your current config for the variables :
> 
> imgcache = /opt/smokeping-2.6.7/cache
> imgurl  = /smokeping/cache
> datadir  = /opt/smokeping-2.6.7/data
> 
> and the result of :
> 
> ps aux  | grep smokeping
> ls -alh /usr/local/smokeping/htdocs/img
> 
> Can you also check the httpd log file (Error logfile) ?  And can you check
> if you are using SELinux on your box (command : sestatus and logs should be
> in : /var/log/audit/audit.log) ?
> 
> Best Regards,
> 
> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - - - - - - - -
> # - -   Nicolas KARP
> # - -   Network and Security Engineer
> # - -    Email : liste at karp.fr <nicolas at karp.fr>
> # - -    Linkedin :  http://www.linkedin.com/pub/nicolas-karp/39/60b/21a
> <http://www.linkedin.com/pub/nicolas-karp/39/60b/21a%20>
> # - -    Viadeo : http://www.viadeo.com/fr/profile/nicolas.karp
> <http://www.viadeo.com/fr/profile/nicolas.karp%20>
> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - - - - - - - - - - -
> 
> 
> 
> 
> 
> 2012/10/20 staticsafe <me at staticsafe.ca>
> 
>> On 10/19/2012 21:51, Nicolas KARP wrote:
>>> Hi staticsafe,
>>>
>>> Check what user is used to run the webserver. This user need write access
>>> to the cache directory which i guess is for you :
>>> /usr/local/smokeping/htdocs/img
>>>
>>> What you can do if you want is to add this user in the  group called
>>> "smokeping" so as the directory and files are owed by smokeping, this
>> user
>>> would have automatically write access to all the files in this directory.
>>>
>>> Do me on Centos :  /etc/group (Apache is my webserver)
>>> smokeping:x:498:apache
>>>
>>> Best Regards,
>>>
>>>
>>> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> - -
>>> - - - - - - - - - - - - - - - - - - -
>>> # - -   Nicolas KARP
>>> # - -   Network and Security Engineer
>>> # - -    Email : liste at karp.fr <nicolas at karp.fr>
>>> # - -    Linkedin :  http://www.linkedin.com/pub/nicolas-karp/39/60b/21a
>>> <http://www.linkedin.com/pub/nicolas-karp/39/60b/21a%20>
>>> # - -    Viadeo : http://www.viadeo.com/fr/profile/nicolas.karp
>>> <http://www.viadeo.com/fr/profile/nicolas.karp%20>
>>> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>> - -
>>> - - - - - - - - - - - - - - - - - - -
>>>
>>>
>>>
>>>
>>>
>>> 2012/10/19 staticsafe <me at staticsafe.ca>
>>>
>>>> Hi,
>>>>
>>>> I have a Smokeping 2.6.7 install running over at
>>>> smokeping.asininetech.com/smokeping.cgi.
>>>>
>>>> I am getting errors such as this:
>>>> ERROR: Could not save png to
>>>> '/usr/local/smokeping/htdocs/img/IRC/amy_mini.png'
>>>>
>>>> The permissions on that directory:
>>>>
>>>> [root at ferrovax /usr/local/smokeping/htdocs/img/IRC]# ls -alh
>>>> total 20
>>>> drwxr-xr-x  2 smokeping  smokeping   512B Oct 19 14:37 .
>>>> drwxr-xr-x  7 smokeping  smokeping   512B Oct 19 14:43 ..
>>>> -rw-r--r--  1 smokeping  smokeping    44B Oct 19 14:42 amy.maxheight
>>>> -rw-r--r--  1 smokeping  smokeping     0B Oct 19 14:42
>> amy_last_10800.png
>>>> -rwxr-xr-x  1 smokeping  smokeping     0B Oct 19 14:46 amy_mini.png
>>>> -rw-r--r--  1 smokeping  smokeping    51B Oct 19 14:43 bender.maxheight
>>>> -rw-r--r--  1 smokeping  smokeping     0B Oct 19 14:43
>>>> bender_last_10800.png
>>>> -rwxr-xr-x  1 smokeping  smokeping     0B Oct 19 14:46 bender_mini.png
>>>> -rwxr-xr-x  1 smokeping  smokeping     0B Oct 19 14:46 kif_mini.png
>>>> -rwxr-xr-x  1 smokeping  smokeping     0B Oct 19 14:46 leela_mini.png
>>>> -rwxr-xr-x  1 smokeping  smokeping    55B Oct 19 14:24 scruffy.maxheight
>>>> -rwxr-xr-x  1 smokeping  smokeping     0B Oct 19 14:24
>>>> scruffy_last_10800.png
>>>> -rwxr-xr-x  1 smokeping  smokeping     0B Oct 19 14:46 scruffy_mini.png
>>>>
>>>> I am using nginx + fcgiwrap to serve this.
>>>>
>>>> Am I missing something?
>>>>
>>>> Thanks for any help,
>>>>
>>>> --
>>>> staticsafe
>>>> http://staticsafe.ca
>>>>
>>>> _______________________________________________
>>>> smokeping-users mailing list
>>>> smokeping-users at lists.oetiker.ch
>>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>>>>
>>>
>>
>> No luck. (www is the user nginx is run as.)
>>
>> [root at ferrovax /usr/local/smokeping/htdocs]# pw usermod www -G smokeping
>> [root at ferrovax /usr/local/smokeping/htdocs]# chown -R www:smokeping ./img
>>
>> Still getting the same errors.
>>
>> --
>> staticsafe
>> http://staticsafe.ca
>>
>> _______________________________________________
>> smokeping-users mailing list
>> smokeping-users at lists.oetiker.ch
>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>>
> 

Here it is:

imgcache = /usr/local/smokeping/htdocs/img
imgurl   = img
datadir  = /usr/local/var/smokeping

$ ps aux  | grep smokeping
smokeping 35589   0.0  3.1 144660  24060  ??  Ss   Fri02PM     0:09.15
/usr/local/bin/smokeping [FPing] (perl)
smokeping 35618   0.0  3.1 144660  24056  ??  Is   Fri02PM     0:08.81
/usr/local/bin/smokeping [FPing] (perl)
smokeping 57148   0.0  0.2  10068   1264  ??  S    10:50AM     0:00.03
[fping]

$ ls -alh /usr/local/smokeping/htdocs/img
total 36
drwxr-xr-x  6 www   www   512B Oct 21 11:38 ./
drwxr-xr-x  4 www   www   512B Oct 21 11:36 ../
drwxr-xr-x  2 root  www   512B Oct 21 11:38 IRC/
drwxr-xr-x  2 root  www   512B Oct 21 11:38 Miscellaneous/
drwxr-xr-x  2 root  www   512B Oct 21 11:40 Personal/
drwxr-xr-x  2 root  www   512B Oct 21 11:39 __chartscache/
-rw-r--r--  1 root  www   3.8k Oct 21 11:38 rrdtool.png
-rw-r--r--  1 root  www   4.3k Oct 21 11:38 smokeping.png

>From my nginx error.log:
2012/10/21 11:40:47 [error] 67774#0: *1 open()
"/usr/local/smokeping/htdocs/smokeping/prototype/prototype.js" failed
(2: No such file or directory), client: 173.32.218.69, server:
smokeping.asininetech.com, request: "GET
/smokeping/prototype/prototype.js HTTP/1.1", host:
"smokeping.asininetech.com", referrer:
"http://smokeping.asininetech.com/smokeping.cgi?target=Personal"
2012/10/21 11:40:47 [error] 67774#0: *1 open()
"/usr/local/smokeping/htdocs/smokeping/cropper/cropper.js" failed (2: No
such file or directory), client: 173.32.218.69, server:
smokeping.asininetech.com, request: "GET /smokeping/cropper/cropper.js
HTTP/1.1", host: "smokeping.asininetech.com", referrer:
"http://smokeping.asininetech.com/smokeping.cgi?target=Personal"
2012/10/21 11:40:47 [error] 67774#0: *3 open()
"/usr/local/smokeping/htdocs/smokeping/scriptaculous/scriptaculous.js"
failed (2: No such file or directory), client: 173.32.218.69, server:
smokeping.asininetech.com, request: "GET
/smokeping/scriptaculous/scriptaculous.js?load=builder,effects,dragdrop
HTTP/1.1", host: "smokeping.asininetech.com", referrer:
"http://smokeping.asininetech.com/smokeping.cgi?target=Personal"
2012/10/21 11:40:47 [error] 67774#0: *4 open()
"/usr/local/smokeping/htdocs/smokeping/smokeping-zoom.js" failed (2: No
such file or directory), client: 173.32.218.69, server:
smokeping.asininetech.com, request: "GET /smokeping/smokeping-zoom.js
HTTP/1.1", host: "smokeping.asininetech.com", referrer:
"http://smokeping.asininetech.com/smokeping.cgi?target=Personal"
2012/10/21 11:40:48 [error] 67774#0: *1 open()
"/usr/local/smokeping/htdocs/smokeping/cropper/cropper.js" failed (2: No
such file or directory), client: 173.32.218.69, server:
smokeping.asininetech.com, request: "GET /smokeping/cropper/cropper.js
HTTP/1.1", host: "smokeping.asininetech.com", referrer:
"http://smokeping.asininetech.com/smokeping.cgi?target=Personal"
2012/10/21 11:40:48 [error] 67774#0: *1 open()
"/usr/local/smokeping/htdocs/smokeping/smokeping-zoom.js" failed (2: No
such file or directory), client: 173.32.218.69, server:
smokeping.asininetech.com, request: "GET /smokeping/smokeping-zoom.js
HTTP/1.1", host: "smokeping.asininetech.com", referrer:
"http://smokeping.asininetech.com/smokeping.cgi?target=Personal"


-- 
staticsafe
http://staticsafe.ca



More information about the smokeping-users mailing list