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.
Configuring Nagios Plugins
Re: Configuring Nagios Plugins
I think this documentation should explain it quite well:
http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
Former Nagios employee
Re: Configuring Nagios Plugins
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?
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
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".
Former Nagios employee
Re: Configuring Nagios Plugins
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.
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
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.
Former Nagios employee
Re: Configuring Nagios Plugins
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
[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
You should be replacing "warning" and "critical" with their actual values. In this case I believe you would want percentage of disk used.
Former Nagios employee
Re: Configuring Nagios Plugins
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
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
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.
Former Nagios employee