# pmp-check-unix-memory check specifics

**URL:** <https://forums.percona.com/t/pmp-check-unix-memory-check-specifics/4963>\
**Category:** Percona Monitoring Plugins\
**Created:** [July 12, 2016, 2:29pm UTC](https://forums.percona.com/t/pmp-check-unix-memory-check-specifics/4963 "2016-07-12T14:29:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![znamor](https://avatars.discourse-cdn.com/v4/letter/z/9fc348/32.png) [@znamor](https://forums.percona.com/u/znamor)\
**Post date:** [July 12, 2016, 2:29pm UTC](https://forums.percona.com/t/pmp-check-unix-memory-check-specifics/4963/1 "2016-07-12T14:29:13Z")

</div>

Hello there,

It looks like ‘pmp-check-unix-memory’ is only checking the memory allocation on the system its running on (in my case these checks run on one nagios server for now against 3 percona mysql VMs and all 3 checks just report free memory of the nagios host). There is no host parameter that can be passed with the ‘-H’ option/switch in the check according to documentation I read here:

[url][https://www.percona.com/doc/percona-monitoring-plugins/1.1/nagios/pmp-check-unix-memory.html[/url]](https://www.percona.com/doc/percona-monitoring-plugins/1.1/nagios/pmp-check-unix-memory.html%5B/url%5D)  
[url][https://www.percona.com/doc/percona-monitoring-plugins/1.0/nagios/pmp-check-unix-memory.html[/url]](https://www.percona.com/doc/percona-monitoring-plugins/1.0/nagios/pmp-check-unix-memory.html%5B/url%5D)

Here is what my nagios setup looks like for one of the hosts I need to check memory on (previously i defined service/command separately but then since i realized its pulling info just from local nagios host i tried to define same check separately for each host within the ‘myperconadbservername.cfg’ file hoping that the check’s logic takes the host name defined in define host {} block but it doesn’t):

define host {  
use prod-server  
host\_name myperconadbservername  
address 10.10.1.5  
hostgroups linux-servers,mysql-servers,mysql-percona  
}

define service{  
use mysql-percona-template  
service\_description rdba\_unix\_memory  
check\_command rdba-check-unix-memory3!96!98  
}

define command{  
command\_name rdba-check-unix-memory3  
command\_line $USER1$/pmp-check-unix-memory -w $ARG1$ -c $ARG2$  
}

How can this ‘pmp-check-unix-memory’ check the memory of the actual ‘myperconadbservername’ host and not report memory of the local nagios host?

Thanks in advance!  
—Roman
