Custom plugins

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Custom plugins

Post 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.
Thanks & Regards,
I2MP Team.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Custom plugins

Post 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
Former Nagios employee
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Custom plugins

Post by RIDS_I2MP »

Thanks for the reply.

Are the languages stated in the above post compatible with Nagios?
Thanks & Regards,
I2MP Team.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Custom plugins

Post 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++
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Custom plugins

Post 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.
Former Nagios employee
Locked