Chinaunix首页 | 论坛 | 博客
  • 博客访问: 58070
  • 博文数量: 25
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 30
  • 用 户 组: 普通用户
  • 注册时间: 2013-09-13 21:20
文章分类
文章存档

2014年(14)

2013年(11)

我的朋友

分类: BSD

2013-12-02 00:04:32

www#mrtg online.cfg
Can't exec "/usr/local/etc/mrtg/mrtg-online": Permission denied at /usr/local/bin/mrtg line 2170.
2013-12-01 23:50:33: WARNING: Running '/usr/local/etc/mrtg/mrtg-online': Permission denied
2013-12-01 23:50:33: WARNING: Could not get any data from external command '/usr/local/etc/mrtg/mrtg-online'
Maybe the external command did not even start. (Permission denied)


2013-12-01 23:50:33: WARNING: Problem with External get '/usr/local/etc/mrtg/mrtg-online':
   Expected a Number for 'in' but nothing'


2013-12-01 23:50:33: WARNING: Problem with External get '/usr/local/etc/mrtg/mrtg-online':
   Expected a Number for 'out' but nothing'


2013-12-01 23:50:33: ERROR: Target[online][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
2013-12-01 23:50:33: ERROR: Target[online][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data
Use of uninitialized value $inlast in pattern match (m//) at /usr/local/bin/mrtg line 1044.
Use of uninitialized value $outlast in pattern match (m//) at /usr/local/bin/mrtg line 1047.



--------------其中mrtg-online文件为-----


#! /usr/local/bin/php -q
mssql_connect(" 192.168.1.10","user","pwd");
mssql_select_db('testdb  ');
$sql="select count(*) from online_record ";
$result=mssql_query($sql);
$num=mssql_fetch_row($result);
        print "$num[0]\n";
        print "0\n";
        print "0\n";
        print "0\n";
?>

请大侠出招相救啊!                     
             

阅读(981) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

zz_lsl20052013-12-02 22:11:11

chmod 0755 mrtg-online 

搞定!!!