Error running php cmd.php

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
tonyw
Posts: 2
Joined: Fri Jul 11, 2003 2:09 am

Error running php cmd.php

Post by tonyw »

When I try to run php cmd.php

I got a bunch of errors:

sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `perl <DEFAULT><DEFAULT>/scripts/linux_memory.pl Buffers:'
X-Powered-By: PHP/4.1.2
Content-type: text/html

command: perl <DEFAULT><DEFAULT>/scripts/linux_memory.pl Buffers:, output:
<br>
<b>Warning</b>: fopen("<DEFAULT><DEFAULT>/log/rrd.log", "a") - No such file or directory in <b>/home/www/html/cacti/include/functions.php</b> on line <b>238</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>239</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>240</b><br>
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `<DEFAULT> create <DEFAULT><DEFAULT>/rra/localhost_mem_buffers_1.rrd --step 300 DS:mem_buffers:GAUGE:600:0:10000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797 '
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `perl <DEFAULT><DEFAULT>/scripts/linux_memory.pl ^Cached:'
command: perl <DEFAULT><DEFAULT>/scripts/linux_memory.pl ^Cached:, output:
<br>
<b>Warning</b>: fopen("<DEFAULT><DEFAULT>/log/rrd.log", "a") - No such file or directory in <b>/home/www/html/cacti/include/functions.php</b> on line <b>238</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>239</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>240</b><br>
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `<DEFAULT> create <DEFAULT><DEFAULT>/rra/localhost_mem_cache_2.rrd --step 300 DS:mem_cache:GAUGE:600:0:1000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775
RRA:MAX:0.5:288:797 '
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `perl <DEFAULT><DEFAULT>/scripts/linux_memory.pl MemFree:'
command: perl <DEFAULT><DEFAULT>/scripts/linux_memory.pl MemFree:, output:
<br>
<b>Warning</b>: fopen("<DEFAULT><DEFAULT>/log/rrd.log", "a") - No such file or directory in <b>/home/www/html/cacti/include/functions.php</b> on line <b>238</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>239</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>240</b><br>
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `<DEFAULT> create <DEFAULT><DEFAULT>/rra/localhost_mem_buffers_3.rrd --step 300 DS:mem_buffers:GAUGE:600:0:10000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797 '
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `perl <DEFAULT><DEFAULT>/scripts/linux_memory.pl SwapFree:'
command: perl <DEFAULT><DEFAULT>/scripts/linux_memory.pl SwapFree:, output:
<br>
<b>Warning</b>: fopen("<DEFAULT><DEFAULT>/log/rrd.log", "a") - No such file or directory in <b>/home/www/html/cacti/include/functions.php</b> on line <b>238</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>239</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>240</b><br>
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `<DEFAULT> create <DEFAULT><DEFAULT>/rra/localhost_mem_swap_4.rrd --step 300 DS:mem_swap:GAUGE:600:0:1000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797 '
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `perl <DEFAULT><DEFAULT>/scripts/loadavg_multi.pl'
MUTLI command: perl <DEFAULT><DEFAULT>/scripts/loadavg_multi.pl, output:
<br>
<b>Warning</b>: fopen("<DEFAULT><DEFAULT>/log/rrd.log", "a") - No such file or directory in <b>/home/www/html/cacti/include/functions.php</b> on line <b>238</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>239</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>240</b><br>
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `<DEFAULT> create <DEFAULT><DEFAULT>/rra/localhost_load_1min_5.rrd --step 300 DS:load_1min:GAUGE:600:0:500 DS:load_5min:GAUGE:600:0:500 DS:load_15min:GAUGE:600:0:500 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797
RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797 '
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `perl <DEFAULT><DEFAULT>/scripts/unix_users.pl'
command: perl <DEFAULT><DEFAULT>/scripts/unix_users.pl, output:
<br>
<b>Warning</b>: fopen("<DEFAULT><DEFAULT>/log/rrd.log", "a") - No such file or directory in <b>/home/www/html/cacti/include/functions.php</b> on line <b>238</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>239</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>240</b><br>
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `<DEFAULT> create <DEFAULT><DEFAULT>/rra/localhost_users_6.rrd --step 300 DS:users:GAUGE:600:0:500 RRA:AVERAGE:0.5:1:600
RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797 '
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `perl <DEFAULT><DEFAULT>/scripts/unix_processes.pl'
command: perl <DEFAULT><DEFAULT>/scripts/unix_processes.pl, output:
<br>
<b>Warning</b>: fopen("<DEFAULT><DEFAULT>/log/rrd.log", "a") - No such file or directory in <b>/home/www/html/cacti/include/functions.php</b> on line <b>238</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>239</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>240</b><br>
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `<DEFAULT> create <DEFAULT><DEFAULT>/rra/localhost_proc_7.rrd --step 300 DS:proc:GAUGE:600:0:1000 RRA:AVERAGE:0.5:1:600
RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797 '
update <DEFAULT><DEFAULT>/rra/localhost_mem_buffers_1.rrd --template mem_buffers N:U
<br>
<b>Warning</b>: fopen("<DEFAULT><DEFAULT>/log/rrd.log", "a") - No such file or directory in <b>/home/www/html/cacti/include/functions.php</b> on line <b>238</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>239</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>240</b><br>
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `<DEFAULT> update <DEFAULT><DEFAULT>/rra/localhost_mem_buffers_1.rrd --template mem_buffers N:U'
update <DEFAULT><DEFAULT>/rra/localhost_mem_cache_2.rrd --template mem_cache N:U
<br>
<b>Warning</b>: fopen("<DEFAULT><DEFAULT>/log/rrd.log", "a") - No such file or directory in <b>/home/www/html/cacti/include/functions.php</b> on line <b>238</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>239</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>240</b><br>
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `<DEFAULT> update <DEFAULT><DEFAULT>/rra/localhost_mem_cache_2.rrd --template mem_cache N:U'
update <DEFAULT><DEFAULT>/rra/localhost_mem_buffers_3.rrd --template mem_buffers N:U
<br>
<b>Warning</b>: fopen("<DEFAULT><DEFAULT>/log/rrd.log", "a") - No such file or directory in <b>/home/www/html/cacti/include/functions.php</b> on line <b>238</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>239</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>240</b><br>
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `<DEFAULT> update <DEFAULT><DEFAULT>/rra/localhost_mem_buffers_3.rrd --template mem_buffers N:U'
update <DEFAULT><DEFAULT>/rra/localhost_mem_swap_4.rrd --template mem_swap N:U
<br>
<b>Warning</b>: fopen("<DEFAULT><DEFAULT>/log/rrd.log", "a") - No such file or directory in <b>/home/www/html/cacti/include/functions.php</b> on line <b>238</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>239</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>240</b><br>
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `<DEFAULT> update <DEFAULT><DEFAULT>/rra/localhost_mem_swap_4.rrd --template mem_swap N:U'
update <DEFAULT><DEFAULT>/rra/localhost_users_6.rrd --template users N:U
<br>
<b>Warning</b>: fopen("<DEFAULT><DEFAULT>/log/rrd.log", "a") - No such file or directory in <b>/home/www/html/cacti/include/functions.php</b> on line <b>238</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>239</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>240</b><br>
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `<DEFAULT> update <DEFAULT><DEFAULT>/rra/localhost_users_6.rrd --template users N:U'
update <DEFAULT><DEFAULT>/rra/localhost_proc_7.rrd --template proc N:U
<br>
<b>Warning</b>: fopen("<DEFAULT><DEFAULT>/log/rrd.log", "a") - No such file or directory in <b>/home/www/html/cacti/include/functions.php</b> on line <b>238</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>239</b><br>
<br>
<b>Warning</b>: Supplied argument is not a valid File-Handle resource in <b>/home/www/html/cacti/include/functions.php</b> on line <b>240</b><br>
sh: -c: line 1: syntax error near unexpected token `<DEFAULT><D'
sh: -c: line 1: `<DEFAULT> update <DEFAULT><DEFAULT>/rra/localhost_proc_7.rrd --template proc N:U'
time: 0
[root@blackboard cacti]# sh: -c: line 1: syntax error near unexpected token
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Most of these errors are complaing that your log file does not exist. Try the following command:

Code: Select all

touch /home/www/html/cacti/log/rrd.log
-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest