GitHub

Can I reuse Monitoring Plugins code?

Firstly, there is a distinction between a Nagios plugin and plugins from the Monitoring Plugins project.

Although Nagios (the system) is licensed under the GPL, plugins are executed in their own environment, so they do not fall under the "viral" aspect of the GPL. Therefore, any plugin written for use by Nagios can be under any license the copyright holder selects.

However, the plugins contained within the Monitoring Plugins project are distributed under the GPL. If you distribute an application that includes the Monitoring Plugins (modified or not), you are required to distribute a copy of the source code for the plugins under the terms of the GPL, regardless of the licensing for the rest of the application.

If you write a plugin which is a derivative work from code of the Nagios Plugins project, then your plugin must also be licensed under the GPL, although you own the copyright for your modified portions.

Derivative work usually includes:

and does not usually include: