How to implement custom built plugins?!


#1

Hi,

I want to use some custom built plugins for ex check_rsa_temp on gschlad.at/~gerhard/nagios/

How do you implement this into nagios?

Thx in advance!
//Swede


#2

you have to define your own command in the checkcommands.cfg and then use it in the services.cfg. this should be easy because you have see how the commands are defined


#3

Well im quite new to this and would really appreciate an example on this plugin.

Thx again
//Swede


#4
  1. you need the mibs from the rsa firmware package

  2. test the plugin in a shell “./check_rsa_fan rsa-ip-address”

  3. edit your checkcommand.cfg:

define command {
command_name check_rsa_fan
command_line /usr/lib/netsaint/plugins/check_rsa_fan $HOSTADDRESS$
}