Search found 7 matches

by garazh317
Tue Oct 13, 2015 7:14 am
Forum: Open Source Nagios Projects
Topic: check_mysql_query
Replies: 13
Views: 5325

Re: check_mysql_query

Retyped all manually, the same problem.
by garazh317
Mon Oct 12, 2015 11:57 am
Forum: Open Source Nagios Projects
Topic: check_mysql_query
Replies: 13
Views: 5325

Re: check_mysql_query

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 contac...
by garazh317
Mon Oct 12, 2015 11:40 am
Forum: Open Source Nagios Projects
Topic: check_mysql_query
Replies: 13
Views: 5325

Re: check_mysql_query

hsmith wrote:What is the output of a grep '$USER1' /usr/local/nagios/etc/resource.cfg command?
$USER1$=/usr/lib64/nagios/plugins
by garazh317
Mon Oct 12, 2015 9:44 am
Forum: Open Source Nagios Projects
Topic: check_mysql_query
Replies: 13
Views: 5325

Re: check_mysql_query

hsmith wrote:By chance do you have any special characters in your password?
I had, but now changed the password, and nothing happens. In cli `ok`, nagios has 'null'
by garazh317
Thu Oct 01, 2015 7:23 am
Forum: Open Source Nagios Projects
Topic: check_mysql_query
Replies: 13
Views: 5325

Re: check_mysql_query

-bash-4.1$ /usr/lib64/nagios/plugins/check_mysql_query -H a.b.c.d -P 3306 -d database -u user -p password -q 'SELECT COUNT(`post_name`) FROM wp_posts;' -w 10 -c 20 QUERY CRITICAL: 'SELECT COUNT(`post_name`) FROM wp_posts;' returned 36,000000 When it run from the cli while logged as the nagios user e...
by garazh317
Wed Sep 30, 2015 12:02 pm
Forum: Open Source Nagios Projects
Topic: check_mysql_query
Replies: 13
Views: 5325

Re: check_mysql_query

I need to ask the obvious question here, but are you actually putting <-----> in your configs?
Not. I use mc, and <--> appear when I insert code there.
by garazh317
Tue Sep 29, 2015 11:46 am
Forum: Open Source Nagios Projects
Topic: check_mysql_query
Replies: 13
Views: 5325

check_mysql_query

Hi all! Does anybody use subj? I get NULL everytime from that plugin. Here are my configs define command{. command_name<-->check_mysql_query command_line<-->$USER1$/check_mysql_query -H a.b.c.d -P 3306 -d database -u user -p password -q 'SELECT COUNT(`post_name`) FROM wp_posts;' -w $ARG1$ -c $ARG2$ ...