Help with plugins download from Exchange

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
dfernandez
Posts: 3
Joined: Thu Nov 13, 2014 9:35 am

Help with plugins download from Exchange

Post by dfernandez »

Hi my name is Daniel Fernández from Mexico city.

I'm new in this world of Nagios, I made some test to install the program and monitoring servers, all was successfull. I have two requierments

1. Monitoring and EMC Clariion equipment.

2. Monitoring somw URL.

I download the plugins from exchange.nagios.org, i put them in the route /usr/local/nagios/libexec, However do not work becaus in the portal I have for both cases thes next message: (Return code of 127 is out of bounds - plugin may be missing). I'm not sure if I have to compile the plugins, if is this I don't know how.

I give to both files permissions to be execute, I compile Nagios with the option to use perl interpreter but I installed Nagios 4.0.8 and I think that this version does not have that option.

Could somebody help me with this?

Thank you.
User avatar
rhassing
Posts: 412
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Help with plugins download from Exchange

Post by rhassing »

Hello Daniel,

Did you create a command for this plugin in the commands.cfg file?
This is the "Check command configuration file".
That is the first step, next would be to create a service check which uses the command.

Brgds Rob
Rob Hassing
Image
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Help with plugins download from Exchange

Post by tmcdonald »

Could you also provide links to the plugins?
Former Nagios employee
dfernandez
Posts: 3
Joined: Thu Nov 13, 2014 9:35 am

Re: Help with plugins download from Exchange

Post by dfernandez »

rhassing wrote:Hello Daniel,

Did you create a command for this plugin in the commands.cfg file?
This is the "Check command configuration file".
That is the first step, next would be to create a service check which uses the command.

Brgds Rob
Hi Bob, yes I created this command:

define command{
command_name check_url
command_line $UER1$/check_url $url$
}

I get the information from another Nagios' user.
dfernandez
Posts: 3
Joined: Thu Nov 13, 2014 9:35 am

Re: Help with plugins download from Exchange

Post by dfernandez »

tmcdonald wrote:Could you also provide links to the plugins?
Hi, the links are,

For check_url plugin:

http://exchange.nagios.org/directory/Pl ... rl/details

For EMC - Clariion

http://exchange.nagios.org/directory/Pl ... MC-Clarion
emislivec
Posts: 52
Joined: Tue Feb 25, 2014 10:06 am

Re: Help with plugins download from Exchange

Post by emislivec »

dfernandez wrote:

Code: Select all

define command{
command_name check_url
command_line $UER1$/check_url $url$
}
Where did you save the check_url.pl script?
If it is at /usr/local/nagios/libexec/check_url.pl, the command definition should look like:

Code: Select all

define command {
  command_name check_url
  command_line $USER1$/check_url.pl $ARG1$
}
Then in a service definition:

Code: Select all

define service {
  # other settings...
  check_command check_url!http://www.example.com
}
When Nagios checks the service it will run this command:

Code: Select all

/usr/local/nagios/libexec/check_url.pl http://www.example.com
You can check the results that Nagios would see with:

Code: Select all

sudo -u nagios /usr/local/nagios/libexec/check_url.pl http://www.example.com
Locked