Page 1 of 1

Nagios core pluggin not detected Mysql_query?

Posted: Thu Jan 28, 2021 5:46 am
by BlakelyLondon
Hi guys,

I'm asking for support because I have wasted a lot of my time trying to find solution on google without succes.

I'm trying to configure a probe to check some criteras into my mariadb sql base. The pluggin i'm installation is check_mysql_query.

But this plugging is not detected by my nagios server.

this is the shema of my infrastructure :

UBUTUN VM Wordpress server with an NRPE + MARIA DB UBUTUN WN with nagios server

the goal is to monitor the worpress sql base and check when more than 4 comments are posted.

Re: Nagios core pluggin not detected Mysql_query?

Posted: Thu Jan 28, 2021 3:21 pm
by gormank
I'd guess that you haven't defined the command (on the DB server) to tell the agent (nrpe, or ncpa) how to run the plugin. Of course if you're using SSH to run plugins, this desn't apply...

Re: Nagios core pluggin not detected Mysql_query?

Posted: Sat Jan 30, 2021 11:34 am
by mjkatona
It sounds to me like you are trying to use the npre client. Did you install it on the mysql server first?

sudo apt install -y nagios-nrpe-server nagios-plugins

# update the nrpe Commands are here and allow src of commands send
vi /etc/nagios/nrpe.cfg
# example command[check_host]=/usr/lib/nagios/plugins/check_host -m 5 google.com