Nagios core pluggin not detected 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.
Locked
BlakelyLondon
Posts: 1
Joined: Thu Jan 28, 2021 5:38 am

Nagios core pluggin not detected Mysql_query?

Post 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.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Nagios core pluggin not detected Mysql_query?

Post 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...
mjkatona
Posts: 3
Joined: Fri Jan 08, 2021 9:14 pm

Re: Nagios core pluggin not detected Mysql_query?

Post 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
Locked