Well I found my problems with cacti, the issue is the cmd.php
> it doesnt work with solaris at all. I assume there is no way to fix this ?
> I can fix the "ps" line easily, but the not so sure...
> Here's a small excerpt (the real log is 65K !)
> here ya go-
>
> ping: bad traffic class: 209.183.1.18
> awk: syntax error near line 1
> awk: bailing out near line 1
> sh: syntax error at line 1: `end of file' unexpected
> sh: mysqladmin: not found
> sh: syntax error at line 1: `end of file' unexpected
> sh: /usr/bin/smbstatus: not found
> sh: syntax error at line 1: `end of file' unexpected
> cat: cannot open /proc/meminfo
> sh: Cached:: not found
> sh: syntax error at line 1: `end of file' unexpected
> cat: cannot open /proc/meminfo
> sh: syntax error at line 1: `end of file' unexpected
> cat: cannot open /proc/meminfo
> sh: syntax error at line 1: `end of file' unexpected
> usage: ps [ -aAdeflcjLPy ] [ -o format ] [ -t termlist ]
> [ -u userlist ] [ -U userlist ] [ -G grouplist ]
> [ -p proclist ] [ -g pgrplist ] [ -s sidlist ]
> 'format' is one or more of:
> user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid
> pri opri pcpu pmem vsz rss osz nice class time etime stime
> f s c lwp nlwp psr tty addr wchan fname comm args projid project pset
> sh: syntax error at line 1: `end of file' unexpected
> cat: cannot open /proc/meminfo
> sh: syntax error at line 1: `end of file' unexpected
> wc: cannot open /var/log/httpd/access_log
> sh: syntax error at line 1: `end of file' unexpected
> cat: cannot open /proc/meminfo
> sh: syntax error at line 1: `end of file' unexpected
> sh: syntax error at line 1: `end of file' unexpected
> sh: syntax error at line 1: `end of file' unexpected
> sh: syntax error at line 1: `end of file' unexpected
> sh: syntax error at line 1: `end of file' unexpected
> sh: syntax error at line 1: `end of file' unexpected
I can fix the "ps" error myself, and maybe some others, but I'm really
at a lost for the /proc stuff and so forth.
Dan.
Problem with cmd.php on Solaris
Moderators: Developers, Moderators
cacti on solaris 9
well i've fixed some of the errors, but not all, but borring info from other posts. by changing ping.pl using topic 640 or topic 573 (ping -s etc)
I can also fix the problems with running mysqladmin, but these other
errors (mostly meminfo) remain:
::php cmd.php
ping: bad data size: 209.183.1.18
awk: syntax error near line 1
awk: bailing out near line 1
/usr/local/mysql/bin/mysqladmin: connect to server at '-u' failed
error: 'Unknown MySQL Server Host '-u' (1)'
Check that mysqld is running on -u and that the port is 3306.
You can check this by doing 'telnet -u 3306'
sh: syntax error at line 2: `(' unexpected
sh: /usr/bin/smbstatus: not found
cat: cannot open /proc/meminfo
sh: Cached:: not found
cat: cannot open /proc/meminfo
cat: cannot open /proc/meminfo
cat: cannot open /proc/meminfo
cat: cannot open /proc/meminfo
ERROR: expected 1 data source readings (got 0) from 0:...
ERROR: illegal attempt to update using time 0 when last update time is 1037646827 (minimum one second step)
ERROR: illegal attempt to update using time 0 when last update time is 1037646827 (minimum one second step)
I can also fix the problems with running mysqladmin, but these other
errors (mostly meminfo) remain:
::php cmd.php
ping: bad data size: 209.183.1.18
awk: syntax error near line 1
awk: bailing out near line 1
/usr/local/mysql/bin/mysqladmin: connect to server at '-u' failed
error: 'Unknown MySQL Server Host '-u' (1)'
Check that mysqld is running on -u and that the port is 3306.
You can check this by doing 'telnet -u 3306'
sh: syntax error at line 2: `(' unexpected
sh: /usr/bin/smbstatus: not found
cat: cannot open /proc/meminfo
sh: Cached:: not found
cat: cannot open /proc/meminfo
cat: cannot open /proc/meminfo
cat: cannot open /proc/meminfo
cat: cannot open /proc/meminfo
ERROR: expected 1 data source readings (got 0) from 0:...
ERROR: illegal attempt to update using time 0 when last update time is 1037646827 (minimum one second step)
ERROR: illegal attempt to update using time 0 when last update time is 1037646827 (minimum one second step)
Who is online
Users browsing this forum: No registered users and 8 guests