免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 21949 | 回复: 8
打印 上一主题 下一主题

[其他] Smokeping显示不了图 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-11-06 10:05 |只看该作者 |倒序浏览
大家好,Smokeping配置好后,服务可以启动,通过网页也可以打开,但是显示不了图片,总是显示一个小红叉。按照图片的属性路径,可以找到此图片。请问是哪儿配置的有问题?谢谢。

论坛徽章:
0
5 [报告]
发表于 2013-07-12 13:25 |只看该作者
你的smokeping所使用的 config 文件里面有一个cache 的配置,这个配置要写相对路径,默认是cache ,千万别改成绝对路径,改成绝对路径就会出现你说的问题,网页能显示,但是图片不显示。

论坛徽章:
0
2 [报告]
发表于 2012-11-06 10:44 |只看该作者
已经好了,配置文件中图片的路径写多了。
谢谢。

论坛徽章:
0
3 [报告]
发表于 2013-07-04 10:35 |只看该作者
我的现在也是您一样的问题

论坛徽章:
0
4 [报告]
发表于 2013-07-08 09:33 |只看该作者
flyibm 发表于 2012-11-06 10:44
已经好了,配置文件中图片的路径写多了。
谢谢。


感谢分享答案

论坛徽章:
1
技术图书徽章
日期:2013-08-30 10:47:12
6 [报告]
发表于 2013-09-23 10:04 |只看该作者
你的config 能贴出来么   我是有图  没有数据回复 5# tingshow163


   

论坛徽章:
0
7 [报告]
发表于 2013-09-24 14:18 |只看该作者
回复 6# 王晓兜


owner    = Peter Random
contact  = some@address.nowhere
mailhost = my.mail.host
sendmail = /usr/sbin/sendmail
# NOTE: do not put the Image Cache below cgi-bin
# since all files under cgi-bin will be executed ... this is not
# good for images.
imgcache = /opt/nginx/html/smokeping/cache
imgurl   = cache
datadir  = /opt/nginx/html/smokeping/data
piddir  = /opt/nginx/html/smokeping/var
cgiurl   = http://some.url/smokeping.cgi
smokemail = /opt/smokeping/etc/smokemail.dist
tmail = /opt/smokeping/etc/tmail.dist
# specify this to get syslog logging
#syslogfacility = local0
# each probe is now run in its own process
# disable this to revert to the old behaviour
# concurrentprobes = no

   

论坛徽章:
0
8 [报告]
发表于 2016-09-19 09:47 |只看该作者
我这个也不出图啊! 我的smokeping 配置文件如下:
owner    = Peter Random
contact  = some@address.nowhere
mailhost = my.mail.host
sendmail = /usr/sbin/sendmail
# NOTE: do not put the Image Cache below cgi-bin
# since all files under cgi-bin will be executed ... this is not
# good for images.
imgcache = ../cache
imgurl   = cache
datadir  = ../data
piddir  = ../var
cgiurl   = http:// 172.16.1.100/ smokeping / smokeping.cgi
smokemail = /usr/local/smokeping/etc/smokemail.dist
tmail = /usr/local/smokeping/etc/tmail.dist
# specify this to get syslog logging
syslogfacility = local0
# each probe is now run in its own process
# disable this to revert to the old behaviour
# concurrentprobes = no
httpd.conf配置文件如下:
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

Alias /cache "/usr/local/smokeping/cache"
Alias /cropper "/usr/local/smokeping/htdocs/cropper"
Alias /smokeping "/usr/local/smokeping/htdocs/smokeping.fcgi"

<Directory "/usr/local/smokeping">
        AllowOverride None
        Options All
        AddHandler cgi-script .fcgi .cgi
        Order allow,deny
        Allow from all
        AuthName "Smokeping"
        AuthType Basic
        AuthUserFile /usr/local/smokeping/htdocs/htpasswd
        Require valid-user
#       <IfModule dir_module>
        DirectoryIndex smokeping.fcgi
#       </IfModule>
</Directory>

#
,那个大牛帮帮忙  不出图

论坛徽章:
0
9 [报告]
发表于 2016-09-19 09:54 |只看该作者
可以了搞定了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP