I’m pulling my hair out. I’ve got the new Percona MySQL templates (thanks Baron!) installed on my Cacti 0.8.7i server.
I enabled the InnoDB I/O template. In the cacti log I see this every five minutes:
02/19/2012 07:45:05 PM - CMDPHP: Poller[0] Host[3] DS[79] WARNING: Result from CMD not valid. Partial Result: U
02/19/2012 07:45:05 PM - CMDPHP: Poller[0] Host[3] DS[79] CMD: /usr/bin/php -q /var/www/cacti/scripts/ss_get_mysql_stats.php --host h1766939.stratoserver.net --items gh,gi,gj,gk --user cactiquery --pass 'password' --port 3306, output: U
02/19/2012 07:45:05 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/webnovias_file_fsyncs_79.rrd --template 1329677104:U
But when I run the data collection command manually, it works perfectly:
$ php -q /var/www/cacti/scripts/ss_get_mysql_stats.php --host h1766939.stratoserver.net --items gh,gi,gj,gk --user cactiquery --pass 'password' --port 3306 --nocache
gh:6344889 gi:25529983 gj:18322886 gk:5124662
I’m not sure where to look, other than in cacti.log (which is where the above output came from), to see why the poller is unhappy with this apparently good output from the ss_get_mysql_stats.php script… suggestions?
Thanks,
Jay
--
You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
To post to this group, send email to percona-d...@googlegroups.com.
To unsubscribe from this group, send email to percona-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/percona-discussion?hl=en.
On Feb 24, 2012, at 3:13 AM, Jay Libove wrote:
> Hi Baron,
> Sorry, yes, I've followed the Cacti troubleshooting FAQ. I found
> nothing wrong.
> In particular, the cache files' permissions are correct.
>
> I've run the ss_get_mysql_stats.php script with a matching
> ss_get_mysql_stats.php.cnf configuration file enabling debug logging
> to a /tmp/ file.
> Here's (I think) the relevant output:
I'd suggest letting the debug setting run in production. It's not harmful; just don't leave it forever or you'll fill your hard drive. You never know what's different between the way you're running the script manually and how Cacti is doing it.
Jay,
--
You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msg/percona-discussion/-/VKwLa3I7Y6cJ.
To post to this group, send email to percona-d...@googlegroups.com.
To unsubscribe from this group, send email to percona-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/percona-discussion?hl=en.
I'm not sure whether you're doing the right thing here in the code, but let me verify something first. There is a debug setting for the script that's shipped with the Percona monitoring plugins -- and you are using this. There is also a logging verbosity setting for Cacti itself which should do what you're trying to do in code changes to cmd.php.
$ php /var/www/cacti/scripts/ss_get_mysql_stats.php --host webnoviasTEMP.opus5.net --items gh,gi,gj,gk --user cactiquery --pass 'AGq$Df!8' --port 3306gh:953 gi:757 gj:1593 gk:428
--
You received this message because you are subscribed to the Google Groups "Percona Discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msg/percona-discussion/-/pKN9NEjeCLgJ.
To post to this group, send email to percona-d...@googlegroups.com.
To unsubscribe from this group, send email to percona-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/percona-discussion?hl=en.
Dave wrote:
>Jay - sounds silly but if your grabbing for straws then try clearing your browser cache.
Thanks for the thought, Dave. No, sadly, it’s not that. I think this really is some complex bad interaction between the Percona MySQL scripts (which do seem to execute and produce good data) and Cacti/RRD which apparently doesn’t like that data!
Anyone able to assist?
Thanks,
Jay