Originally Posted by sarah allali
Spell out your words. And if you referenced ANY of the NRPE documentation you've been given several times now, you'd see you're calling the command incorrectly.
i don't think this is the problem because i did the same thing with other services like tomcat and ping and i did what you told me i would get this message "check_mysql is not defined", and i already defined check_nrpe in my file:
command_line $USER1$/check_nrpe -H $HOTSADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$ $ARG4$
Great...check_nrpe is defined. However, your problem is with check_mysql
. THAT is what you need to define correctly, which you haven't.
and check_mysql on web interface of nagios as you can see is working it gives me okey : (all other services as well )
but when i launch the command line => /usr/local/nagios/libexec/check_nrpe -H 192.168.1.10 -c check_mysql -u root -p nagios
i get this : Incorrect command line arguments supplied
Right, because you need to define the host and other parameters for check_mysql in the service definition, and since you're passing them TWICE
, that would give you the INCORRECT COMMAND LINE ARGUMENTS
Again, you need to read/understand the check_nrpe documentation, and perhaps try researching this plugin, because there are MANY examples on how to configure it, such as this one, pulled from the Nagios forums:
nrpe.conf file info
command[check_mysql]=/usr/lib64/nagios/plugins/check_mysql -H xxxx -u xxxx -p *****
Service template for Nagios box
service_description MySQL Check
Again, all of this is covered in the Nagios documentation, and the plugin documentation. If you read it and pay attention to the errors that you're getting (which are VERY clear), it will tell you how to fix it.
And when posting follow-ups about check_mysql, it is rather pointless to post the check_nrpe configuration, isn't it??