Having trouble installing plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Having trouble installing plugin

Post 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
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 »

Here is a document to get you going with plugins
http://library.nagios.com/library/produ ... -nagios-xi
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 »

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.
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 »

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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Having trouble installing plugin

Post 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".
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 »

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
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Having trouble installing plugin

Post 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
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Having trouble installing plugin

Post 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.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Having trouble installing plugin

Post by benningtonr »

ok, host created successfully
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Having trouble installing plugin

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