---
title: "How to monitor a process with a specific argument?"
description: "Monitoring a process with a specific argument in OP5 involves using the checkprocs plugin with the -a option. This method filters processes to monitor only those matching the specified argument."
url: "https://docs.itrsgroup.com/docs/faq/op5/360020250253-op5-monitor-how-to-monitor-a-process-with-a-specific-argument/index.html"
---
## Question

---

How to monitor a process with a specific argument?

## Answer

---

 For example if you have a '.php' process with the argument:

```
"-q /opt/op5sys/bin/config-daemon.php -p /var/run/config-daemon.php.pid -d"
```

And only want to monitor '.php' processes with that argument, you can use the plugin "`check_procs`" with the option **-a**, like this:

```
./check_procs -w 10 -c 20 -C php -a "-q /opt/op5sys/bin/config-daemon.php -p /var/run/config-daemon.php.pid -d"
```

The status output would then be like this:

```
PROCS OK: 1 process with command name 'php', args '-q /opt/op5sys/bin/config-daemon.php -p /var/run/config-daemon.php.pid -d'
```


