Page 1 of 1

check_mysql_all

Posted: Fri Oct 10, 2014 9:44 am
by rquaresma
Hello!

i had downloaded this pluguin and i am using this by this way :

./check_mysql_all -K mysql_query -H 187.1.133.25 -u webmr -p webMR123Branc0 -d webmr -a'query=SELECT * FROM pf_carga WHERE status IN ("falha")'
CRITICAL: 0 records returned


anyone knows how can i use by the way bellow:

./check_mysql_all -K mysql_query -H 187.1.133.25 -u webmr -p webMR123Branc0 -d webmr -a 'SELECT * ,IF(TIMESTAMPDIFF(SECOND, dt_alteracao, NOW()) <'25200', '0', '1') FROM ve_carga_status WHERE ds_tabela = 'SZO010''
CRITICAL: No Query Provided

thanks

Re: check_mysql_all

Posted: Fri Oct 10, 2014 4:25 pm
by Box293
It looks like you are missing query=

Re: check_mysql_all

Posted: Tue Oct 14, 2014 8:24 am
by rquaresma
Box293 wrote:It looks like you are missing query=

Hi Box293,

Do you know anyway to correct it?

Re: check_mysql_all

Posted: Tue Oct 14, 2014 2:55 pm
by tmcdonald
You just forgot to type it when typing out the command:

Code: Select all

./check_mysql_all -K mysql_query -H 187.1.133.25 -u webmr -p webMR123Branc0 -d webmr -a 'query=SELECT * ,IF(TIMESTAMPDIFF(SECOND, dt_alteracao, NOW()) <'25200', '0', '1') FROM ve_carga_status WHERE ds_tabela = 'SZO010''