Configuring Nagios Plugins

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
u004762
Posts: 17
Joined: Mon May 19, 2014 3:04 pm

Configuring Nagios Plugins

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Configuring Nagios Plugins

Post by tmcdonald »

I think this documentation should explain it quite well:

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
Former Nagios employee
u004762
Posts: 17
Joined: Mon May 19, 2014 3:04 pm

Re: Configuring Nagios Plugins

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Configuring Nagios Plugins

Post 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".
Former Nagios employee
u004762
Posts: 17
Joined: Mon May 19, 2014 3:04 pm

Re: Configuring Nagios Plugins

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Configuring Nagios Plugins

Post 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.
Former Nagios employee
u004762
Posts: 17
Joined: Mon May 19, 2014 3:04 pm

Re: Configuring Nagios Plugins

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Configuring Nagios Plugins

Post 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.
Former Nagios employee
u004762
Posts: 17
Joined: Mon May 19, 2014 3:04 pm

Re: Configuring Nagios Plugins

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Configuring Nagios Plugins

Post 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.
Former Nagios employee
Locked