Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am using Icinga last release on an Ubuntu 12.10 server 64 bits. For my perfdata, I am using pnp4nagios which works great with my others plugins and NRPE.

I am trying to use this plugin to monitor my mysql servers: http://exchange.nagios.org/directory/Plugins/Databases/MySQL/check_mysqld/details

On the Icinga server, my host has:

define service{ use generic-service host_name sql3 service_description Mysql check_command check_nrpe_1arg!check_mysqld.pl }

On the client side (sql3) I have:

command[check_mysqld.pl]=sudo /usr/lib/nagios/plugins/check_mysqld.pl -H localhost -u root -f -p password -A Com_insert,Com_select

I have some datas perfs in the server, but they work as "count".

There is a pnp4nagios template check_mysqld.cfg but I do not know how to use it and where to place it on my pnp4nagios dir.

Is someone has already use this plugin? Thanks in advance.

share|improve this question

1 Answer 1

To use the pnp4nagios template, you have to put the check_mysqld.cfg file into your templates directory in your pnp4nagios. Depending on your installation, this is likely to be /usr/local/pnp4nagios/share/templates

You might also need to create a configuration file in /usr/local/pnp4nagios/etc/check_commands/ to ensure it properly analyses your command and uses check_mysqld for the template (see the check_nrpe.cfg that there's already in the directory).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.