Page 1 of 1

Help with plugins download from Exchange

Posted: Thu Nov 13, 2014 9:48 am
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.

Re: Help with plugins download from Exchange

Posted: Thu Nov 13, 2014 10:14 am
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

Re: Help with plugins download from Exchange

Posted: Thu Nov 13, 2014 5:22 pm
by tmcdonald
Could you also provide links to the plugins?

Re: Help with plugins download from Exchange

Posted: Thu Nov 13, 2014 8:53 pm
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.

Re: Help with plugins download from Exchange

Posted: Thu Nov 13, 2014 9:15 pm
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

Re: Help with plugins download from Exchange

Posted: Fri Nov 14, 2014 10:41 am
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