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) |