[Nagiosplug-help] need help in using plugin
carole verdon
verdon at cict.fr
Mon Jun 14 01:09:02 CEST 2004
Have you define the "check_users" command in the nrpe.cfg file as this
command[check_users]=/usr/local/nagios/libexec/check_users -w $ARG1$ -c
$ARG2$ ?
Then to test it in the nagios server, you must execute the following
command:
*./check_nrpe -H 1.1.1.126 -p 5666 -c check_users -a 10 25
*If it works, in service.cfg the must write something as this :
define service {
use generic-service
host_name xxxx
service_description Users
contact_groups nagios-admins
check_period 24x7
notification_interval 2880
notification_options w,u,c,r
notification_period 24x7
check_command check_nrpe!check_users!10!25
max_check_attempts 3
normal_check_interval 10
retry_check_interval 1
}
serwah sabet ghadam wrote:
>
> Thanks a lot for your complete guidance,
> I checked them and now I have encountered another problem:
>
> I have put NRPE daemon and its config file on the client
> and compiled it there too.
> Then I have defined a service in my nagios/etc/service.cfg
> with
> *command check_nrpe!check_users*
> and I wanted to rest it via my linux shel and I executed NRPE in
> background mode in the client:
> *./nrpe -c /etc/nrpe.cfg -d &
> *
> and in the server I wrote:
> * ./check_nrpe -H 1.1.1.126 -p 5666 -c check_nrpe!check_users*
> the result is:
> *-bash: !check_users: event not found
> *
> **
> and in the web interface the status information is:
> *Connection refused by host *
> Have I missed anything???
>
> Thabk you all.
> Sirwah
>
>
> /*Andreas Ericsson <ae at op5.se>*/ wrote:
>
> serwah sabet ghadam wrote:
> > Hi,
> > I want to use nrpe to get, for example, the
> > result of check_users of a remote host,
> > perhaps it be an elementary question
> > but I'm confused!
> >
>
> check_nrpe requires that the daemon is installed and properly
> configured
> on the remote host.
>
> Both the daemon and the plugin needs to use the same type of
> encryption
> (currently only ssl or none at all).
>
> The plugin which you want to run must be present on the remote host.
>
> The nagios server's IP must be mentioned in the allowed_hosts_ip
> in your
> nrpe configuration file.
>
> > I've searched the mailing list but didn't find
> > my answer.
> >
> >
> > I did upon the README file of the NRPE pacakge
> > that I've downloaded:
> > I sefined a command in checkcommand.cfg
> > define command{
> ! > command_name check_nrpe
> > aommand_line /usr/local/nagios/libexec/check_nrpe -H
> $HOSTADDRESS$ -c $ARG1$
> > }
> >
> > and defined a service with
> > check_command check_nrpe ! check_users
> >
>
> Remove the spaces.
>
> > and I didn't work under inetd or xinetd.
> >
> > are these steps enaugh??
> > I see nothing in the servce detail in the web interface.
> >
>
> You also have to restart Nagios. Do that and then tell me the
> output of
> the check_nrpe command (the status field in the GUI), and I might be
> able to help you further.
>
>
> > I appreciate your help.
> > Sirwah
>
> --
> Sourcerer / Andreas Ericsson
> NRPE Maintainer
> OP5 AB
> +46 (0)733 709032
> andreas.ericsson at op5.se
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by the new InstallShield X.
> From Windows to Linux, servers to mobile, InstallShield X is the
> one installation-authoring solution that does it all. Learn more and
> evaluate today! http://www.installshield.com/Dev2Dev/0504
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any
> issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Friends. Fun. Try the all-new Yahoo! Messenger
> <http://messenger.yahoo.com/>
--
**********************************
VERDON Carole
Ingénieur Système
CICT - Université Paul Sabatier
118, route de Narbonne
31062 Toulouse Cedex
Tél.: 05.61.36.60.44
Fax: 05.61.52.14.58
Mail: verdon at cict.fr
**********************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20040614/a0e9fa81/attachment.html>
More information about the Help
mailing list