Having trouble installing plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Having trouble installing plugin

Post by lmiltchev »

Hmm. What's the output of:

Code: Select all

ll /usr/local/nagios/libexec | grep sgichk_cuda_queues.pl
Be sure to check out our Knowledgebase for helpful articles and solutions!
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Having trouble installing plugin

Post 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 /]#
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Having trouble installing plugin

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Having trouble installing plugin

Post 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
#
###############################################################################
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Having trouble installing plugin

Post 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$
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Having trouble installing plugin

Post 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.
Locked