---
title: 'antimalware:monitoring:paths'
url: 'https://docs.danami.com/sentinel/command-line-interface/antimalware/antimalware-monitoring-paths'
markdown: 'https://docs.danami.com/sentinel/command-line-interface/antimalware/antimalware-monitoring-paths.md'
date: '2026-10-07'
description: 'Configure the anti-malware real-time file monitoring paths used when default_monitor_mode is set to /usr/local/maldetect/monitor_paths sentinel --task=antimalware:monitoring:paths --oper=<path_add|path_del> --value=<string> Option Value Description --oper <string> The operatio…'
taxonomy:
  category:
    - docs
  tag:
    - monitor
---

[](#)  [ Basics ](https://docs.danami.com/sentinel/)     [ Command Line Interface ](https://docs.danami.com/sentinel/command-line-interface)      Antimalware       antimalware:monitoring:paths    

# antimalware:monitoring:paths

Configure the anti-malware real-time file monitoring paths used when default\_monitor\_mode is set to `/usr/local/maldetect/monitor_paths`

```
sentinel --task=antimalware:monitoring:paths --oper=<path_add|path_del> --value=<string>
```

| Option | Value | Description |
|---|---|---|
| `--oper` | <string> | The operation you want to perform. Operations: path\_add, path\_del |
| `--value` | <string> | The value you want to add or delete. |
| `--restart` | <yes> | Restart the service after saving settings. |

## Examples

```
// add a path
sentinel --task=antimalware:monitoring:paths --oper=path_add --value=/var/spool/cron --restart=yes

// remove a path
sentinel --task=antimalware:monitoring:paths --oper=path_del --value=/var/spool/cron --restart=yes

// monitor the shared uploads directory in real time
sentinel --task=antimalware:monitoring:paths --oper=path_add --value=/var/www/vhosts/shared/uploads --restart=yes
```

## Related Pages

- [Monitoring Settings](https://docs.danami.com/sentinel/settings/antimalware/monitoring-settings "Monitoring Settings")

 [ ](https://docs.danami.com/sentinel/command-line-interface/antimalware/antimalware-monitoring) [](https://docs.danami.com/sentinel/settings/antimalware/monitoring-settings)

---

## Navigation

- Previous: [antimalware:monitoring](https://docs.danami.com/sentinel/command-line-interface/antimalware/antimalware-monitoring.md)
- Next: [antimalware:quarantine](https://docs.danami.com/sentinel/command-line-interface/antimalware/antimalware-quarantine.md)
