Having trouble installing plugin
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Having trouble installing plugin
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
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
Here is a document to get you going with plugins
http://library.nagios.com/library/produ ... -nagios-xi
http://library.nagios.com/library/produ ... -nagios-xi
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Having trouble installing plugin
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.
[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
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?
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
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
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
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
I deleted the service already. But I will recreatelmiltchev 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".
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Having trouble installing plugin
I tried creating the host, name desc, ip address and I got the following error, and failure when I tried to apply the configscottwilkerson wrote:Ok, first you will need to add the host for 64.5.129.4
'/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
ok, host created successfully
-
benningtonr
- Posts: 524
- Joined: Tue May 22, 2012 2:16 pm
Re: Having trouble installing plugin
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)
Host check is pending...
and
(Return code of 127 is out of bounds - plugin may be missing)