---
title: "How to install third-party plugins"
description: "Installing third-party plugins in op5 Monitor extends monitoring capabilities and integrates new devices or systems. This guide explains how to upload, configure, and troubleshoot plugins using SSH/SFTP and the op5 Monitor command interface."
url: "https://docs.itrsgroup.com/docs/faq/op5/360020257793-op5-monitor-how-to-install-third-party-plugins/index.html"
---
## Version

This article was written for version 7.0 of op5 Monitor; it could work on both lower and higher versions if nothing else is stated.

## Introduction

*OP5 Monitor* uses a plugin system to handle things like notifications, restarting crashed services and the actual host and service monitoring.
This means that the system can be easily extended to monitor new kinds of devices or be integrated with third-party ticketing systems.

Developing your own plugins is [really straightforward](https://support.itrsgroup.com/hc/en-us/articles/360020058514-Adding-your-first-plugin-to-op5-Monitor), but there are already heaps available to download from sites like [Nagios Exchange](http://exchange.nagios.org/).

In this how-to we will look at installing a check plugin, cover solutions to common problems, and give some general recommendations for using third-party plugins.

## Support information

Installing and using third-party plugins **is not** supported by op5 AB.
If you need help installing, configuring or developing custom plugins, please contact the professional services department.

## Prerequisites

- Basic UNIX/Linux knowledge
- Shell access to the host running *op5 Monitor*
- An SSH and SFTP client like *[WinSCP](http://winscp.net/eng/download.php)*
- Basic understanding of service configuration in *op5 Monitor*

## Installation

In this tutorial we will install the check plugin "[check\_example.py](/faq/downloads/op5/360020257793-inline-attachment-1-check_example.py)" - download it to your local system. We will use the *WinSCP* client for SSH and SFTP access to the host running *op5 Monitor* in these examples, but any SSH/SFTP client should work.

## Security implications

Only install plugins from trusted sources - malicious plugins can execute commands to steal information, crash the system, or similar.

Start off by opening *WinSCP* and connect to your monitoring server:

![OP5 Monitor - How to install third-party plugins](https://docscdn.itrsgroup.com/faq/images/op5/360020257793-12189713-login.png)

Upload the "check\_example.py" file to the "/opt/plugins/custom" directory on the server.
Storing your custom plugins in this directory protects them from changes during upgrades and includes them in backups:

![OP5 Monitor - How to install third-party plugins](https://docscdn.itrsgroup.com/faq/images/op5/360020257793-12189713-upload.png)

Click the "Open terminal" button in the top left corner:

![OP5 Monitor - How to install third-party plugins](https://docscdn.itrsgroup.com/faq/images/op5/360020257793-12189713-open_term.png)

We now need to run a command that makes the plugin executable - do this by executing `chmod 755 /opt/plugins/custom/check_example.py`:

![OP5 Monitor - How to install third-party plugins](https://docscdn.itrsgroup.com/faq/images/op5/360020257793-12189713-chmod.png)

## Configuration

The plugin needs to be configured as a "command" to be used with *op5 Monitor*.
Enter the "Commands" section of the "Configure" page:

![OP5 Monitor - How to install third-party plugins](https://docscdn.itrsgroup.com/faq/images/op5/360020257793-12189713-commands_conf.png)

You will now have to enter a name for the command and usually a few parameters for the plugin.
The plugins are applications or scripts executed on the system shell, so the parameters are set by command line arguments.

In this example we use the [internal macros/variables](http://www.naemon.org/documentation/usersguide/macrolist.html) `"$USER1$"`, `"$HOSTADDRESS$"`, and `"$ARG1$"` to configure path, host, and service-specific arguments.
These will be resolved differently depending on which host in *op5 Monitor* they are executed for.

![OP5 Monitor - How to install third-party plugins](https://docscdn.itrsgroup.com/faq/images/op5/360020257793-12189713-command_conf.png) *Your plugin might require other arguments - please consult the plugin documentation.*

The check plugin is now ready to be used by services:

![OP5 Monitor - How to install third-party plugins](https://docscdn.itrsgroup.com/faq/images/op5/360020257793-12189713-service_conf.png)

*Service configuration*

![OP5 Monitor - How to install third-party plugins](https://docscdn.itrsgroup.com/faq/images/op5/360020257793-12189713-ex_service.png)

*Service status in list view*

## Common issues

The following are some common problems and their solutions:

### "The plugin is complaining about a missing module called utils.pm"

The "utils.pm" Perl module is used by many plugins and is sometimes hard-coded to a specific path in the file system.
This problem can usually be solved by running the following *sed* command:

```
# sed -i 's/utils.sh/..\/utils.sh/g' /opt/plugins/custom/name_of_plugin
```

![OP5 Monitor - How to install third-party plugins](https://docscdn.itrsgroup.com/faq/images/op5/360020257793-12189713-fix_utils.png) *Executing the same command with WinSCP*

## Related downloads

- [check_example.py](/faq/downloads/op5/360020257793-360029563494-check_example.py)


