Problem importing templates

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
daveyw
Posts: 5
Joined: Sat Apr 19, 2008 8:12 am
Location: Netherlands

Problem importing templates

Post by daveyw »

Hello,

I've used a long time the extra templates like graphs for MailScanner. But since I've reinstalled my system from CentOS 4.x x86_64 to CentOS 5.x x86_64
I can't import templates anymore without any problems.
* I've also reinstalled my whole cacti, but still I'm receiving the errors. I'm using version 0.8.7d.

If I import a template like (in this case) MailScanner, everything seems to be okay. But when the poller is running I'm getting alot of errors.
sh: lt: command not found
sh: path_php_binarygt: command not found
sh: -q: command not found
sh: path_cactigt: command not found
sh: /scripts/MailScanner_Virus.php: No such file or directory
sh: hostnamegt: command not found
sh: lt: command not found
sh: usernamegt: command not found
sh: lt: command not found
sh: passwordgt: command not found
sh: lt: command not found
sh: dbnamegt: command not found
05/22/2009 01:24:02 AM - SPINE: Poller[0] Host[2] ERROR: Empty result [XXX.XXX.XX.XX]: 'lt;path_php_binarygt; -q lt;path_cactigt;/scripts/MailScanner_Virus.php lt;hostnamegt; lt;usernamegt; lt;passwordgt; lt;dbnamegt;'
05/22/2009 01:24:02 AM - SPINE: Poller[0] Host[2] DS[10] WARNING: Result from SCRIPT not valid. Partial Result: ...
sh: lt: command not found
sh: path_php_binarygt: command not found
sh: -q: command not found
sh: path_cactigt: command not found
sh: /scripts/MailScanner_Mail.php: No such file or directory
sh: hostnamegt: command not found
sh: lt: command not found
sh: usernamegt: command not found
sh: lt: command not found
sh: passwordgt: command not found
sh: lt: command not found
sh: dbnamegt: command not found
05/22/2009 01:24:02 AM - SPINE: Poller[0] Host[2] ERROR: Empty result [XXX.XXX.XX.XX]: 'lt;path_php_binarygt; -q lt;path_cactigt;/scripts/MailScanner_Mail.php lt;hostnamegt; lt;usernamegt; lt;passwordgt; lt;dbnamegt;'
05/22/2009 01:24:02 AM - SPINE: Poller[0] Host[2] DS[9] WARNING: Result from SCRIPT not valid. Partial Result: ...
sh: lt: command not found
sh: path_php_binarygt: command not found
sh: -q: command not found
sh: path_cactigt: command not found
sh: /scripts/MailScanner_Bytes_Transfer.php: No such file or directory
sh: hostnamegt: command not found
sh: lt: command not found
sh: usernamegt: command not found
sh: lt: command not found
sh: passwordgt: command not found
sh: lt: command not found
sh: dbnamegt: command not found
05/22/2009 01:24:02 AM - SPINE: Poller[0] Host[2] ERROR: Empty result [XXX.XXX.XX.XX]: 'lt;path_php_binarygt; -q lt;path_cactigt;/scripts/MailScanner_Bytes_Transfer.php lt;hostnamegt; lt;usernamegt; lt;passwordgt; lt;dbnamegt;'
05/22/2009 01:24:02 AM - SPINE: Poller[0] Host[2] DS[8] WARNING: Result from SCRIPT not valid. Partial Result: ...
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
05/22/2009 01:24:03 AM - SYSTEM STATS: Time:1.2209 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:33 RRDsProcessed:26
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
OK u:0.00 s:0.00 r:1.01
ERROR: Not enough arguments
ERROR: Not enough arguments
OK u:0.00 s:0.00 r:1.01
* And yes the .php files in 'scripts' directory exists.

Also if I try to use something else like the MySQL graphs template I got the same errors.

Does anybody know the problem and can help me to fix this?
daveyw
Posts: 5
Joined: Sat Apr 19, 2008 8:12 am
Location: Netherlands

Post by daveyw »

It seems there is a 'little' bug with importing templates. I saw that he didn't imported the < and > but the HTML codes of '<' and '>'.

I've replaced manual the HTML code "lt;" to < and HTML code "gt;" to >
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I recall another user reporting this issue too.

Please submit it: http://www.cacti.net/bugs.php
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest