Page 2 of 3

Re: Having trouble installing plugin

Posted: Wed Jul 25, 2012 3:13 pm
by lmiltchev
Can you post your command, host, and service definitions?

command definition
CCM->Commands->Download
Copy/Paste only the command in question

host
CCM->Hosts->find your host and click on the "Download" action button next to it (diskette icon)

service
CCM->Services->find your service and click on the "Download" action button next to it (diskette icon)
Copy/Paste only the service in question

Re: Having trouble installing plugin

Posted: Thu Jul 26, 2012 7:16 am
by benningtonr
define command {
command_name sgichk_cuda_queues.pl
command_line $USR$/sgichk_cuda_queues.pl $ARG1$
}

###############################################################################
#
# Host configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2012-07-26 08:14:49
# 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 host {
host_name Barracuda
alias Spam Filter
address 64.5.129.4
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
contacts nagiosadmin
contact_groups admins
notification_interval 60
notification_period 24x7
first_notification_delay 0
notification_options n
notifications_enabled 0
register 1
}

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################


###############################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2012-07-26 08:15:37
# 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!!!!!!!!
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 9:18 am
by scottwilkerson
Go in to Modify the Host Barracuda
set the following
Set Check command=check_dummy
$ARG1$=0

then, Save
Apply Configuration

Re: Having trouble installing plugin

Posted: Thu Jul 26, 2012 9:23 am
by benningtonr
Still getting

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



###############################################################################
#
# Host configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2012-07-26 10:23:22
# 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 host {
host_name Barracuda
alias Spam Filter
address 64.5.129.4
check_command check_dummy!0!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
contacts nagiosadmin
contact_groups admins
notification_interval 60
notification_period 24x7
first_notification_delay 0
notifications_enabled 0
register 1
}

###############################################################################
#
# Host configuration file
#
# END OF FILE
#
###############################################################################

Re: Having trouble installing plugin

Posted: Thu Jul 26, 2012 9:27 am
by benningtonr
Barracuda Barracuda Queue Critical 19h 30m 18s 5/5 2012-07-26 10:22:30 (Return code of 127 is out of bounds - plugin may be missing)

Re: Having trouble installing plugin

Posted: Thu Jul 26, 2012 9:39 am
by scottwilkerson
Are you getting this on the host or the service?

Can you post the command you created for sgichk_cuda_queues.pl in CCM -> commands

Re: Having trouble installing plugin

Posted: Thu Jul 26, 2012 9:56 am
by benningtonr
}

define command {
command_name sgichk_cuda_queues.pl
command_line $USR$/sgichk_cuda_queues.pl $ARG1$
}

Re: Having trouble installing plugin

Posted: Thu Jul 26, 2012 10:39 am
by lmiltchev
You need to have $USR1$ not $USR$ in the command definition:

Code: Select all

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

Re: Having trouble installing plugin

Posted: Thu Jul 26, 2012 10:44 am
by benningtonr
define command {
command_name sgichk_cuda_queues.pl
command_line $USR1$/sgichk_cuda_queues.pl $ARG1$
}

Re: Having trouble installing plugin

Posted: Thu Jul 26, 2012 10:45 am
by benningtonr
Still getting

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