Page 3 of 3

Re: Having trouble installing plugin

Posted: Thu Jul 26, 2012 11:07 am
by lmiltchev
Hmm. What's the output of:

Code: Select all

ll /usr/local/nagios/libexec | grep sgichk_cuda_queues.pl

Re: Having trouble installing plugin

Posted: Thu Jul 26, 2012 11:15 am
by benningtonr
[root@nagios /]# ll /usr/local/nagios/libexec | grep sgichk_cuda_queues.pl
-rwxr-xr-x 1 root root 12022 Jul 25 09:50 sgichk_cuda_queues.pl
[root@nagios /]#

Re: Having trouble installing plugin

Posted: Thu Jul 26, 2012 11:55 am
by lmiltchev
Actually, going back to your command, if you don't supply all of the info in $ARG1$, you need to change the command by adding the host address, for example:

Code: Select all

define command {
command_name sgichk_cuda_queues.pl
command_line $USR$/sgichk_cuda_queues.pl -H $HOSTADDRESS$ $ARG1$
} 
or you can hardcode it...

Code: Select all

define command {
command_name sgichk_cuda_queues.pl
command_line $USR$/sgichk_cuda_queues.pl -H 64.5.129.4 $ARG1$
} 
Also, you need to add the "-C public -2" to $ARG1$ in the service definition.

Hope this helps.

Re: Having trouble installing plugin

Posted: Thu Jul 26, 2012 12:14 pm
by benningtonr
Still getting:
Also here are the new cfg's

(Return code of 127 is out of bounds - plugin may be missing)




define command {
command_name sgichk_cuda_queues.pl
command_line $USR1$/sgichk_cuda_queues.pl -H $HOSTADDRESS$ $ARG1$
}


###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2012-07-26 13:13:51
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################

define service {
host_name Barracuda
service_description Barracuda Queue
check_command sgichk_cuda_queues.pl!-C public -2!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
}

###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################

Re: Having trouble installing plugin

Posted: Thu Jul 26, 2012 12:16 pm
by scottwilkerson
We are darn close now.

Change you command from

Code: Select all

$USR1$/sgichk_cuda_queues.pl -H $HOSTADDRESS$ $ARG1$
to

Code: Select all

$USER1$/sgichk_cuda_queues.pl -H $HOSTADDRESS$ $ARG1$

Re: Having trouble installing plugin

Posted: Thu Jul 26, 2012 12:37 pm
by benningtonr
that did it, i have a warning.

Thanks a bunch

BTW, I sent Mike an email today with the check number and that the business office is mailing it out today.