Hello,
I would like to know if there is anyone using check_nrpe with Smoothwall?
Thanks
NRPE with Smoothwall
Re: NRPE with Smoothwall
I haven't used Smoothwall before, but if you're having trouble I could probably help you get something working. It's just a special purpose Linux distribution, right?
Re: NRPE with Smoothwall
Hello,
Yes. Its specifically a firewall then you can different addons to it.
There is a mod someone created for it but he can't help any further than what he has already.
the site for software is smoothwall.org and the mod is located here http://code.google.com/p/mod-nrpe/downloads/list
I have installed it on the smoothwall modified the nrpe.cfg file to allow nagios host.
Now when i try to monitor it it does see it under the hosts but when I go to services i See Connection refused by host. Keep in mind that everything is on a local lan so no explicit rules needed, i think.
Here is the check_nrpe command define in coomands.cfg
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c $ARG1$
}
Here is the linux host defined in hosts linux.cfg
define host{
use linux-server
host_name rha-sw
alias Smoothwall Firewall
address 192.168.1.1
}
define hostgroup{
hostgroup_name linux-server
alias Linux Servers
}
define service{
use generic-service
host_name rha-sw
service_description CPU Load
check_command check_nrpe!check_load
}
I tried to even run the command locally on the smoothwall via putty
/usr/local/bin/check_nrpe -H localhost -c check_users
Connection refused by host
I have checked the /var/log/messages to see if anything is there but i see no entries for this test
Yes. Its specifically a firewall then you can different addons to it.
There is a mod someone created for it but he can't help any further than what he has already.
the site for software is smoothwall.org and the mod is located here http://code.google.com/p/mod-nrpe/downloads/list
I have installed it on the smoothwall modified the nrpe.cfg file to allow nagios host.
Now when i try to monitor it it does see it under the hosts but when I go to services i See Connection refused by host. Keep in mind that everything is on a local lan so no explicit rules needed, i think.
Here is the check_nrpe command define in coomands.cfg
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c $ARG1$
}
Here is the linux host defined in hosts linux.cfg
define host{
use linux-server
host_name rha-sw
alias Smoothwall Firewall
address 192.168.1.1
}
define hostgroup{
hostgroup_name linux-server
alias Linux Servers
}
define service{
use generic-service
host_name rha-sw
service_description CPU Load
check_command check_nrpe!check_load
}
I tried to even run the command locally on the smoothwall via putty
/usr/local/bin/check_nrpe -H localhost -c check_users
Connection refused by host
I have checked the /var/log/messages to see if anything is there but i see no entries for this test
Re: NRPE with Smoothwall
Are you sure that the NRPE server is running on your Smoothwall machine?
Re: NRPE with Smoothwall
I got it working after a reboot on the smoothwall. Now when I run the following command I get
/usr/local/bin/check_nrpe -H localhost
NRPE v2.8
which is good I'm sure. I will start monitoring some things and check it out.
thanks
/usr/local/bin/check_nrpe -H localhost
NRPE v2.8
which is good I'm sure. I will start monitoring some things and check it out.
thanks
Re: NRPE with Smoothwall
That is a good sign! Let me know if you run into any more problems.
Re: NRPE with Smoothwall
OK I'm getting a little further... baby steps
I was able to run this command on the smoothwall and got a result of
/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
OK - load average: 0.06, 0.05, 0.06|load1=0.060;15.000;30.000;0; load5=0.050;10.000;25.000;0; load15=0.060;5.000;20.000;0;
When I try the command from nagios as follows I get the result
/usr/local/nagios/libexec/check_nrpe -H 192.168.1.1 -c check_load -w 15,10,5 -c 30,25,20
/usr/local/nagios/libexec/check_nrpe: invalid option -- 'w'
NRPE Plugin for Nagios
Copyright (c) 1999-2008 Ethan Galstad ([email protected])
Version: 2.13
Last Modified: 11-11-2011
License: GPL v2 with exemptions (-l for more info)
Usage: check_nrpe -H <host> [-n] [-u] [-p <port>] [-t <timeout>] [-c <command>] [-a <arglist...>]
Options:
-n = Do no use SSL
-u = Make socket timeouts return an UNKNOWN state instead of CRITICAL
<host> = The address of the host running the NRPE daemon
[port] = The port on which the daemon is running (default=5666)
[timeout] = Number of seconds before connection times out (default=10)
[command] = The name of the command that the remote daemon should run
[arglist] = Optional arguments that should be passed to the command. Multiple
arguments should be separated by a space. If provided, this must be
the last option supplied on the command line.
Note:
This plugin requires that you have the NRPE daemon running on the remote host.
You must also have configured the daemon to associate a specific plugin command
with the [command] option you are specifying here. Upon receipt of the
[command] argument, the NRPE daemon will run the appropriate plugin command and
send the plugin output and return code back to *this* plugin. This allows you
to execute plugins on remote hosts and 'fake' the results to make Nagios think
the plugin is being run locally.
What am I doing wrong?
thanks
I was able to run this command on the smoothwall and got a result of
/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
OK - load average: 0.06, 0.05, 0.06|load1=0.060;15.000;30.000;0; load5=0.050;10.000;25.000;0; load15=0.060;5.000;20.000;0;
When I try the command from nagios as follows I get the result
/usr/local/nagios/libexec/check_nrpe -H 192.168.1.1 -c check_load -w 15,10,5 -c 30,25,20
/usr/local/nagios/libexec/check_nrpe: invalid option -- 'w'
NRPE Plugin for Nagios
Copyright (c) 1999-2008 Ethan Galstad ([email protected])
Version: 2.13
Last Modified: 11-11-2011
License: GPL v2 with exemptions (-l for more info)
Usage: check_nrpe -H <host> [-n] [-u] [-p <port>] [-t <timeout>] [-c <command>] [-a <arglist...>]
Options:
-n = Do no use SSL
-u = Make socket timeouts return an UNKNOWN state instead of CRITICAL
<host> = The address of the host running the NRPE daemon
[port] = The port on which the daemon is running (default=5666)
[timeout] = Number of seconds before connection times out (default=10)
[command] = The name of the command that the remote daemon should run
[arglist] = Optional arguments that should be passed to the command. Multiple
arguments should be separated by a space. If provided, this must be
the last option supplied on the command line.
Note:
This plugin requires that you have the NRPE daemon running on the remote host.
You must also have configured the daemon to associate a specific plugin command
with the [command] option you are specifying here. Upon receipt of the
[command] argument, the NRPE daemon will run the appropriate plugin command and
send the plugin output and return code back to *this* plugin. This allows you
to execute plugins on remote hosts and 'fake' the results to make Nagios think
the plugin is being run locally.
What am I doing wrong?
thanks
Re: NRPE with Smoothwall
Put '-a' before '-w' in your command. check_nrpe requires that you specifically separate the check name from the list of arguments passed to it.
Re: NRPE with Smoothwall
OK.
I did the following command and the result is
/usr/local/nagios/libexec/check_nrpe -H 192.168.1.1 -c check_load -a -w 15,10,5 -c 30,25,20
CHECK_NRPE: Error receiving data from daemon.
I did the following command and the result is
/usr/local/nagios/libexec/check_nrpe -H 192.168.1.1 -c check_load -a -w 15,10,5 -c 30,25,20
CHECK_NRPE: Error receiving data from daemon.
Re: NRPE with Smoothwall
Could you post your NRPE config? The problem may be there.