check_mysql_all

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rquaresma
Posts: 6
Joined: Thu Sep 11, 2014 8:36 am

check_mysql_all

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: check_mysql_all

Post by Box293 »

It looks like you are missing query=
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rquaresma
Posts: 6
Joined: Thu Sep 11, 2014 8:36 am

Re: check_mysql_all

Post by rquaresma »

Box293 wrote:It looks like you are missing query=

Hi Box293,

Do you know anyway to correct it?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_mysql_all

Post 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''
Former Nagios employee
Locked