Page 1 of 3
Having trouble installing plugin
Posted: Wed Jul 25, 2012 9:24 am
by benningtonr
I am trying to use a Barracuda plugin, we had an incident yesterday that I want to monitor.
I have the pluging downloaded, i see it in the correct dir. but how do you start to monitor something without a wizard.
Thanks
Re: Having trouble installing plugin
Posted: Wed Jul 25, 2012 11:38 am
by scottwilkerson
Re: Having trouble installing plugin
Posted: Wed Jul 25, 2012 12:20 pm
by benningtonr
I tried it, and got the command to work at the cli,
[root@nagios libexec]# ./sgichk_cuda_queues.pl -H 64.5.129.4 -C public -2
OK: Queues and Average Latency are ok | inQueue=0 outQueue=85 deferQueue=84 notifyQueue=0 avgLatency=2
inQueue=0
outQueue=85
deferQueue=84
notifyQueue=0
avgLatency=2
[root@nagios libexec]#
I created the command, but was usure about the usr and the arg's how many to include.
The above info is alli need to monitor and be notified if one or more is exceeded.
I created the service, and was unsure what host to select, because the barracuda is not one of the hosts available yet, also what to put in for the arg's
i tried a few different things and after I hit apply it failed,
'/usr/local/nagios/etc/services/localhost.cfg'...
Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'Barracuda Queue' on host 'localhost'
Error: Could not register service (config file '/usr/local/nagios/etc/services/Barracuda.cfg', starting on line 14)
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
Re: Having trouble installing plugin
Posted: Wed Jul 25, 2012 12:29 pm
by scottwilkerson
Ok, first you will need to add the host for 64.5.129.4
Next, you will need to edit the Barracuda Queue service and be sure you include values for
max_attempts,
check_interval,
retry_interval,
notification_interval
you can look at one of your other services for defaults
As for what to put in the $ARGn$ it will depend on how you setup your command. What did you use for the command line?
Re: Having trouble installing plugin
Posted: Wed Jul 25, 2012 12:38 pm
by lmiltchev
Go to Core Config Manager->Services->find the "Barracuda" service->Modify and add valid max_attempts, check_interval, retry_interval, and notification_interval values under the "Check Settings" and "Alert Settings" tabs. Click on "Save" and "Apply Configuration".
Re: Having trouble installing plugin
Posted: Wed Jul 25, 2012 1:41 pm
by benningtonr
I put:
sgichk_cuda_queues.pl $ARG1$
I was unsure if I needed the $USR$ or if I needed more $ARG2$ etc....
Do i need a ARG for each thing it looks at?
[root@nagios libexec]# ./sgichk_cuda_queues.pl -H 64.5.129.4 -C public -2
OK: Queues and Average Latency are ok | inQueue=0 outQueue=72 deferQueue=71 notifyQueue=0 avgLatency=4
inQueue=0
outQueue=72
deferQueue=71
notifyQueue=0
avgLatency=4
Re: Having trouble installing plugin
Posted: Wed Jul 25, 2012 1:44 pm
by benningtonr
lmiltchev wrote:Go to Core Config Manager->Services->find the "Barracuda" service->Modify and add valid max_attempts, check_interval, retry_interval, and notification_interval values under the "Check Settings" and "Alert Settings" tabs. Click on "Save" and "Apply Configuration".
I deleted the service already. But I will recreate
Re: Having trouble installing plugin
Posted: Wed Jul 25, 2012 1:46 pm
by benningtonr
scottwilkerson wrote:Ok, first you will need to add the host for 64.5.129.4
I tried creating the host, name desc, ip address and I got the following error, and failure when I tried to apply the config
'/usr/local/nagios/etc/services/localhost.cfg'...
Error: Invalid max_check_attempts value for host 'Barracuda'
Error: Could not register host (config file '/usr/local/nagios/etc/hosts/Barracuda.cfg', starting on line 14)
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
Re: Having trouble installing plugin
Posted: Wed Jul 25, 2012 1:51 pm
by benningtonr
ok, host created successfully
Re: Having trouble installing plugin
Posted: Wed Jul 25, 2012 2:04 pm
by benningtonr
OK, service is created, I am getting the following
Host check is pending...
and
(Return code of 127 is out of bounds - plugin may be missing)