Nagios check_lexprn not working


#1

I am install on my nagios this:

tar xvf check_lexprn-0.1.tar
cd check_lexprn
cp check_lexprn /usr/lib/nagios/plugins
chgrp nagios /usr/lib/nagios/plugins/check_lexprn

Add the following lines to the /etc/nagios/objects/commands file -

‘nagios_lexprn’ command definition

define command{
command_name check_lexprn
command_line $USER1$/check_lexprn -H $HOSTADDRESS$ -C $ARG1$
}

Setup whatever printers are required using a clause similar to the following -

define service {
use generic-service
host_name myprinter.mydomain.local
service_description STATUS
check_command check_lexprn!public
normal_check_interval 5
retry_check_interval 1
}

and in check_lexprn use lib i set value but lexmark printers has still critical error some one know why ?


#2

does the check work from command line?