Information required for plugin pmp-check-mysql-pidfile

When i configure the plugin for mysql pid check using below command

define command{
command_name check_mysql_pidfile
command_line $USER2$/pmp-check-mysql-pidfile -H hostname -l user -p password -w
I am getting warning as WARN missing /var/run/mysqld/ even when that file is present over there

Any solution for this???

Thanks in advance

Just to add the information that when I put the file on the nagios server on that location it says ok…

How do I mention that I need to check pid file on the mysql server and not on the localhost.

Also in the command I have mentioned hostname of mysql server for connecting to mysql.