Plugins Config


#1

Hi
I need the procedure for adding a new plugin to nagios. For example consider i have written a plugin named check_http2 in java. I need the steps to include this plugin in nagios and start using it


#2

Put the plugin in a folder where all other nagios plugins reside. Go to the folder where configuration files for all plugins are, and in there you define the command in alredy created file or touch a new file to put command definition in it. You can view default config files as an example of how to define a command. And then in host/service definition (for whichever you wrote your plugin) under check_command put the name of command (with additional arguments if you’ve defined them) which you’ve defined in .cfg file.