Open source softwares - Nagios

Back to Course

Lesson Description

Lession - #1548 Nagios Plugins

Plugins helps to monitor databases, operating systems, applications, network equipment, protocols with Nagios. Plugins are compiled executables or script( Perl ornon-Perl>
that extends Nagios functionality to monitor servers and hosts. Nagios will execute a Plugin to check the status of a service or host. Nagios can be compiled with support for an embedded Perl interpreter to execute Perl plugins. Without it, Nagios executes Perl andnon-Perl plugins by separating and executing the plugins as an external command.   #### Types of Nagios Plugins Nagios has the following plugins available in it −   Official Nagios Plugins − There are 50 official Nagios Plugins. Official Nagios plugins are developed and maintained by the official Nagios Plugins Team.   Community Plugins − There are over,000 third party Nagios plugins that have been developed by hundreds of Nagios community members.   Custom Plugins − You can also write your own Custom Plugins. There are certain guidelines that must be followed to write Custom Plugins.   #### Guidelines for Writing Custom Nagios Plugins While writing custom plugin in Nagios, you need to follow the guidelines given below − Plugins should give a"- V" command- line option( verify the configuration changes>
Print only one line of text Print the diagnostic and only part of the help message Network plugins useDEFAULT\_SOCKET\_TIMEOUT to timeout * " v", or"-- verbose “ is related to verbosity level    * "- t" or"-- timeout"( plugin timeout>
;    * "- w" or"-- warning"( warning threshold>
;    * " c" or"-- critical"( critical threshold>
;    * " H" or"-- hostname"( name of the host to check>