check_mysql_query

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
garazh317
Posts: 7
Joined: Tue Sep 29, 2015 11:35 am

Re: check_mysql_query

Post by garazh317 »

hsmith wrote:Can you run a 'pre flight check?' /usr/lib64/nagios/bin/nagios -v /usr/lib64/nagios/etc/nagios.cfg

If that doesn't work, my paths may be slightly off. I am not used to that directory structure. How did you install Nagios? What OS is it running on?
Preflight has only 10 warnings about default contacts.
I have different directory structure. nagios -v /etc/nagios/nagios.cfg This path is right. And that grep '$USER1' /etc/nagios/private/resource.cfg.
Nagios installed on centos from yum.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: check_mysql_query

Post by ssax »

Generally the only thing that would cause problems with this is special characters in the password, does your database have any special characters in it?

Did you copy and paste the check command from a document? You may want to check to make sure the dashes are really dashes and not converted to Microsoft's weird long dash. Every time I copy and paste I replace the dashes with a hand typed dash (or quote) just in case.

Thanks
garazh317
Posts: 7
Joined: Tue Sep 29, 2015 11:35 am

Re: check_mysql_query

Post by garazh317 »

Retyped all manually, the same problem.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_mysql_query

Post by hsmith »

Let's enable debugging and then have you try to run the check again.

In your nagios.cfg file, change

debug_level=0 to debug_level=-1
debug_verbosity=1 to debug_verbosity=2
max_debug_file_size=1000000 to max_debug_file_size=10000000

Let us know if there are any clues in that output.

Thanks!
Former Nagios Employee.
me.
Locked