TL4000 Tape Library (Service check did not exit properly)


#1

Dear All,

I am quite new to Nagios and have a plugin called “check_ibm_ts_tape.pl” I downloaded from Nagios Exchange.
Now, I am using a TL4000 Tape library and had to change the plugin a bit to read the correct iods…

The plugin works great from within the console - but from within Nagios I get “(Service check did not exit properly)” error.
Might one of you Plugin gurus please take a look at this plugin and see if this can not be fixed somehow…?

These are my codes from within nagios:

for the host:

define service{
	use 			        generic-service
	host_name 		TAPELIB
	service_description 	Info
	check_command 	check_ibm_ts_tape!public!TL4000!info
}

in commands.cfg

define command {
command_name                      check_ibm_ts_tape
command_line                         $USER1$/check_ibm_ts_tape.pl -H $HOSTADDRESS$ -C $ARG1$ -m $ARG2$ -t $ARG3$
}

Attached please also find the plugin… had to rename it from .pl to .txt

Thanking you in advance,

Bongazi


#2

Hi All,

seems like the problem is solved by adding perl to the command line.
Like this:
file: commands.cfg

define command {
command_name                      check_ibm_ts_tape
command_line perl                 $USER1$/check_ibm_ts_tape.pl -H $HOSTADDRESS$ -C $ARG1$ -m $ARG2$ -t $ARG3$
}

Thank you,
Bongazi


#3

Hi,

I trying to setup this check for our TL4000 too.

How exactly did you have to change the OIDs? Would you maybe supply the changed pl-script?

Thanks