Page 1 of 2
Configuring Nagios Plugins
Posted: Mon Jun 30, 2014 10:00 am
by u004762
Hi guys,
I've looked for documentation on this but having some trouble.
I wanted to configure a plugin that I recently downloaded for my Bluecoat proxy:
http://exchange.nagios.org/directory/Pl ... ge/details
Total newb here, so if someone can just give me the basics on how to configure or add this to my host/service details, it'd be much appreciated.
Thank you in advance.
Re: Configuring Nagios Plugins
Posted: Mon Jun 30, 2014 10:06 am
by tmcdonald
I think this documentation should explain it quite well:
http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
Re: Configuring Nagios Plugins
Posted: Mon Jun 30, 2014 10:13 am
by u004762
Thank you for the quick response
When I run the test from the command line, i get: ./check_snmp_BlueCoatSG_usage: line 14: /usr/lib/nagios/plugins/utils.sh: No such file or directory
Does this mean the plugin was not installed correctly?
Re: Configuring Nagios Plugins
Posted: Mon Jun 30, 2014 10:30 am
by tmcdonald
Looks like that plugin was aimed at running on a different OS than you are running. Change that line 14 to point to "/usr/local/nagios/libexec/utils.sh" instead of "/usr/lib/nagios/plugins/utils.sh".
Re: Configuring Nagios Plugins
Posted: Mon Jun 30, 2014 11:51 am
by u004762
Thank you, that fixed it
I'm now getting that the host is not giving a response, so I'll troubleshoot that then proceed to follow the document to add the services.
Thank you.
Re: Configuring Nagios Plugins
Posted: Mon Jun 30, 2014 11:57 am
by tmcdonald
If you need any help with that be sure to include the exact string and error message here. We don't have the specific device you are checking in-house, but it's SNMP so there are some common issue you might run into that we could assist with.
Re: Configuring Nagios Plugins
Posted: Mon Jun 30, 2014 12:01 pm
by u004762
Appreciate that

Here's what I get:
[root@localhost libexec]# ./check_snmp_BlueCoatSG_usage NagiosXI 10.97.191.11 disk warning critical
Timeout: No Response from 10.97.191.11.
%|'Disk'=
./check_snmp_BlueCoatSG_usage: line 181: [: -ge: unary operator expected
./check_snmp_BlueCoatSG_usage: line 184: [: -lt: unary operator expected
Re: Configuring Nagios Plugins
Posted: Mon Jun 30, 2014 12:19 pm
by tmcdonald
You should be replacing "warning" and "critical" with their actual values. In this case I believe you would want percentage of disk used.
Re: Configuring Nagios Plugins
Posted: Mon Jun 30, 2014 12:37 pm
by u004762
Woops
Here's what I put:
./check_snmp_BlueCoatSG_usage NagiosXI 10.97.191.11 disk 1 90
Timeout: No Response from 10.97.191.11.
%|'Disk'=
./check_snmp_BlueCoatSG_usage: line 181: [: -ge: unary operator expected
./check_snmp_BlueCoatSG_usage: line 184: [: -lt: unary operator expected
Re: Configuring Nagios Plugins
Posted: Mon Jun 30, 2014 12:43 pm
by tmcdonald
Are you sure SNMP is enabled on that machine? The "No response" message makes me think either SNMP is not enabled, the port is blocked, or the IP is simply not correct. That's also causing the "unary operator expected" since there is nothing to compare the thresholds to.