How to implement custom built plugins?!

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

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

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

Thx again
//Swede

  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$
}