[smokeping-users] PNG Saving errors

Ryan Becker rb14060 at gmail.com
Sun Oct 21 22:08:57 CEST 2012


Oops, I made a mistake.  imgurl should actually be relative to a path on
the web, so it should actually be set to /img.

On Sun, Oct 21, 2012 at 3:12 PM, staticsafe <me at staticsafe.ca> wrote:

> On 10/21/2012 14:51, Ryan Becker wrote:
> > The issue here is that your imgurl needs to be a full path.  Just putting
> > "img" doesn't give it anywhere to look.
> >
> > On Sun, Oct 21, 2012 at 2:49 PM, staticsafe <me at staticsafe.ca> wrote:
> >
> >> 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) ?
> >>> 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,
> >>>>> 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.
> >>>
> >>
> >> 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
> >>
> >> *snip*
> >>
>
> Fixed. Still receiving 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20121021/40a20ce4/attachment.htm 


More information about the smokeping-users mailing list