| User | Post |
|
10:10 am November 14, 2009
| xstar
Junior-DBA
| | | |
|
| posts 16 |
|
|
Perf Report:”Undefined variable: data” error:
When click “Download Report as PDF”,return this error:
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: data
Filename: models/model_main.php
Line Number: 1962 An Error Was Encountered
Failed to load report for hostname
|
|
|
10:16 am November 14, 2009
| themattreid
Admin
| | Nevada | |
|
| posts 48 |
|
|
have you set up the reporter to run out of cron? You can also manually run bin/kontroll-reporter… script to generate the report. No data means that there isn't a report to pass to the pdf generator.
|
 |
http://kontrollsoft.com http://themattreid.com |
|
|
|
11:06 am November 14, 2009
| xstar
Junior-DBA
| | | |
|
| posts 16 |
|
|
Post edited 7:10 pm – November 14, 2009 by xstar Post edited 7:12 pm – November 14, 2009 by xstar
I had set the crontab to run reporter.
maybe my data have error or data less than 5 hours( and mysql uptime only 15 hours):
I modfity thekontroll-stats-gather-5.0.x_linux-x86-2.0.1.pl script, disable the error data to “-1″ like below,because it's unable to continue.
….
debug_report(”## process start”); parse_data($xml_file,$server_id,$active_status);
$varlist{'max_binlog_cache_size'} = “-1″; $varlist{'max_join_size'} = “-1″; $varlist{'max_seeks_for_key'} = “-1″; $varlist{'max_write_lock_count'} = “-1″; $varlist{'sql_max_join_size'} = “-1″; $varlist{'sql_select_limit'} = “-1″;
insert_data() or error_report(”$h [fail]“);
….
|
|
|
11:07 am November 14, 2009
| xstar
Junior-DBA
| | | |
|
| posts 16 |
|
|
Post edited 8:17 pm – November 14, 2009 by xstar Post edited 8:18 pm – November 14, 2009 by xstar
the reporter run have err:
Useless use of private variable in void context at /data/www/kontrollbase/bin/kontroll-reporter-5.0.x_linux-x86-2.0.1.pl line 138. Useless use of private variable in void context at /data/www/kontrollbase/bin/kontroll-reporter-5.0.x_linux-x86-2.0.1.pl line 138. 2009-11-15 04:02:02 | DEBUG | reporter-5.0.x_linux-x86: #### reporter process start 2009-11-15 04:02:02 | DEBUG | reporter-5.0.x_linux-x86: working on user,13, 192.168.0.12
2009-11-15 04:02:02 | DEBUG | reporter-5.0.x_linux-x86: truncating tmp/kontrollbase-reporter-2009-11-15040201.log ######################ENTERED report 2009-11-15 04:02:02 | DEBUG | reporter-5.0.x_linux-x86: #### reporter process end
|
|
|
11:22 am November 14, 2009
| themattreid
Admin
| | Nevada | |
|
| posts 48 |
|
|
Can you list the verions of the following:
- kontrollbase revision
- OS type
- OS bit – 32 or 64
- MySQL version of client server(s) you are polling
- MySQL version of server running kontrollbase
- PHP version
- Perl version
|
 |
http://kontrollsoft.com http://themattreid.com |
|
|
|
11:22 am November 14, 2009
| themattreid
Admin
| | Nevada | |
|
| posts 48 |
|
|
Can you list the versions of the following:
- kontrollbase revision
- OS type
- OS bit – 32 or 64
- MySQL version of client server(s) you are polling
- MySQL version of server running kontrollbase
- PHP version
- Perl version
|
 |
http://kontrollsoft.com http://themattreid.com |
|
|
|
11:40 am November 14, 2009
| xstar
Junior-DBA
| | | |
|
| posts 16 |
|
|
1. kontrollbase revision: 2.0.1 revison 225 2. OS type: Ubuntu 9.04 3. OS bit – 32 or 64 64bit 4. MySQL version of client server(s) you are polling mysql-server-5.1 5.1.31-1ubuntu2 mysql-client-5.1 5.1.31-1ubuntu2
5. MySQL version of server running kontrollbase same, for test, kontrollbase webapp/server script and clent host is on one server.
6. PHP version PHP 5.2.6-3ubuntu4.2 with Suhosin-Patch 0.9.6.2 (cli) (built: Aug 21 2009 21:43:13) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
7. Perl version This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi
|
|
|
7:23 pm January 11, 2010
| themattreid
Admin
| | Nevada | |
|
| posts 48 |
|
|
Sorry for the delay… The part below is not an error. It's a warning about a private variable not needing to be private. In the script, at the top, if you put a # before “use warnings;” it will go away.
Useless use of private variable in void context at /data/www/kontrollbase/bin/kontroll-reporter-5.0.x_linux-x86-2.0.1.pl line 138. Useless use of private variable in void context at /data/www/kontrollbase/bin/kontroll-reporter-5.0.x_linux-x86-2.0.1.pl line 138.
|
 |
http://kontrollsoft.com http://themattreid.com |
|
|