check_snmp_printer No valid check type -t parameter
Posted: Fri Mar 24, 2017 8:41 am
I am using this plugin https://exchange.nagios.org/directory/P ... ck/details to get service details for a HPLJ4560. When I run the plugin from the command line, it works fine, but once I add it in the cfg files, I receive the message "No valid check type specified to -t parameter". I must be passing the parameters incorrectly, but nothing I have tried so far has worked. I've tried using " ", no quotes and tried defining a different separator with on luck.
./check_snmp_printer -H 10.x.x.xx -C public -t "CONSUM Image Fuser Kit"
Image Fuser Kit HP 110V-Q3676A, 220V-Q3677A is at 27% - OK!,| 'Image Fuser Kit HP 110V-Q3676A, 220V-Q3677A'=27;20;5
./check_snmp_printer -H 10.x.x.xxx -C public -t "MODEL"
hp color LaserJet 4650, Serial # JPDAC02294
#'check_snmp_printer' command definition
define command{
command_name check_snmp_printer
command_line $USER1$/check_snmp_printer -H $HOSTADDRESS$ -C $ARG1$ -t $ARG2$
}
define service{
use generic-service ; Inherit values from a template
host_name HP29 ; The name of the host the service is associated with
service_description Image Transfer Kit ; The service description
check_command check_snmp_printer!10.xx.x.xxx!public!'CONSUM,Image Fuser Kit' ; The command used to monitor t$
normal_check_interval 60 ; Check the service every 60 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
}
define service{
use generic-service ; Inherit values from a template
host_name HP29 ; The name of the host the service is associated with
service_description Model ; The service description
check_command check_snmp_printer!10.xx.x.xxx!public!'MODEL' ; The command used to monitor t$
normal_check_interval 60 ; Check the service every 60 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
}
I'm running Ubuntu 16.04 nagios 4.2.2
Thanks in advance!
./check_snmp_printer -H 10.x.x.xx -C public -t "CONSUM Image Fuser Kit"
Image Fuser Kit HP 110V-Q3676A, 220V-Q3677A is at 27% - OK!,| 'Image Fuser Kit HP 110V-Q3676A, 220V-Q3677A'=27;20;5
./check_snmp_printer -H 10.x.x.xxx -C public -t "MODEL"
hp color LaserJet 4650, Serial # JPDAC02294
#'check_snmp_printer' command definition
define command{
command_name check_snmp_printer
command_line $USER1$/check_snmp_printer -H $HOSTADDRESS$ -C $ARG1$ -t $ARG2$
}
define service{
use generic-service ; Inherit values from a template
host_name HP29 ; The name of the host the service is associated with
service_description Image Transfer Kit ; The service description
check_command check_snmp_printer!10.xx.x.xxx!public!'CONSUM,Image Fuser Kit' ; The command used to monitor t$
normal_check_interval 60 ; Check the service every 60 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
}
define service{
use generic-service ; Inherit values from a template
host_name HP29 ; The name of the host the service is associated with
service_description Model ; The service description
check_command check_snmp_printer!10.xx.x.xxx!public!'MODEL' ; The command used to monitor t$
normal_check_interval 60 ; Check the service every 60 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
}
I'm running Ubuntu 16.04 nagios 4.2.2
Thanks in advance!