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.
Help with plugins download from Exchange
Re: Help with plugins download from Exchange
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
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
Re: Help with plugins download from Exchange
Could you also provide links to the plugins?
Former Nagios employee
-
- Posts: 3
- Joined: Thu Nov 13, 2014 9:35 am
Re: Help with plugins download from Exchange
Hi Bob, yes I created this command: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
define command{
command_name check_url
command_line $UER1$/check_url $url$
}
I get the information from another Nagios' user.
-
- Posts: 3
- Joined: Thu Nov 13, 2014 9:35 am
Re: Help with plugins download from Exchange
Hi, the links are,tmcdonald wrote:Could you also provide links to the plugins?
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
Where did you save the check_url.pl script?dfernandez wrote:Code: Select all
define command{ command_name check_url command_line $UER1$/check_url $url$ }
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$
}
Code: Select all
define service {
# other settings...
check_command check_url!http://www.example.com
}
Code: Select all
/usr/local/nagios/libexec/check_url.pl http://www.example.com
Code: Select all
sudo -u nagios /usr/local/nagios/libexec/check_url.pl http://www.example.com