Page 1 of 1

Custom plugins

Posted: Mon Dec 29, 2014 9:33 am
by RIDS_I2MP
Hi team,

Our technical teams have over a period created some custom scripts for infrastructure monitoring (OS+DB+App) and some scripts for Reporting as well in multiple languages and are currently looking at the feasibility of adapting them/build on to create custom plugins for nagios instead on running them as a standalone script.

The scripts are developed in below language:

Shell
Perl
Java
Batch
Power Shell
HTML

Please help us with any artifacts/case studies you have in creating plugins to be executed using nagios from standalone scripts.

Re: Custom plugins

Posted: Mon Dec 29, 2014 9:49 am
by tmcdonald
Have them read the following doc to make sure the plugins are Nagios-compliant:

https://nagios-plugins.org/doc/guidelines.html

And then this one to show how to add new plugins to Nagios and make them proper commands:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf

Re: Custom plugins

Posted: Mon Dec 29, 2014 9:54 am
by RIDS_I2MP
Thanks for the reply.

Are the languages stated in the above post compatible with Nagios?

Re: Custom plugins

Posted: Mon Dec 29, 2014 10:09 am
by scottwilkerson
The short answer is yes, however the items that run on Windows would need to be called through an agent such as NSClient++

Re: Custom plugins

Posted: Mon Dec 29, 2014 10:10 am
by tmcdonald
Pretty much any language can be used to write plugins for Nagios, as long as it can provide output to stdout.

HTML, however, is not a programming language and cannot be used to write plugins.