public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] nagios remote host
@ 2012-11-23 19:59 Joseph
  2012-11-26 11:25 ` [gentoo-user] " Moritz Schlarb
  0 siblings, 1 reply; 2+ messages in thread
From: Joseph @ 2012-11-23 19:59 UTC (permalink / raw
  To: gentoo-user

Is there any easy documentation how to configure nagios on Gentoo to monitor remote host?
The documntation below is out of date:
http://www.gentoo.org/doc/en/nagios-guide.xml

I have emerged "nrpe" and started on both server and client, is it correct? 

On the server I have created directory:
/etc/nagios/objects
does this directory have to have ownership "nagios:nagios" ?

Inside this directory I have have created files: 

nrpe-command.cfg
define command {
   command_name check_nrpe
   command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}

nrpe-hosts.cfg
define host {
   use linux-server
   host_name clinic-atom
   alias Gentoo Linux Web Server
   address 192.168.141.1
}

nrpe-services.cfg
define service {
   use generic-service
   host_name clinic-atom
   service_description Current Load
   check_command check_nrpe!check_load
}

define service {
   use generic-service
   host_name clinic-atom
   service_description Root Partition
   check_command check_nrpe!check_disk
}

On the client I just emerge nrpe and started it. Why isn't it working? 

-- 
Joseph


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-user] Re: nagios remote host
  2012-11-23 19:59 [gentoo-user] nagios remote host Joseph
@ 2012-11-26 11:25 ` Moritz Schlarb
  0 siblings, 0 replies; 2+ messages in thread
From: Moritz Schlarb @ 2012-11-26 11:25 UTC (permalink / raw
  To: gentoo-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You have to configure nrpe on the remote host you want to monitor.

E.g. you want to execute check_load on the remote host - to get this
working, you have to tell the nrpe server that "check_load" means.
In a normal environment, the check name is the only parameter you can
pass to a remote nrpe plugin for security reasons.

Am 23.11.2012 20:59, schrieb Joseph:
> Is there any easy documentation how to configure nagios on Gentoo
> to monitor remote host? The documntation below is out of date: 
> http://www.gentoo.org/doc/en/nagios-guide.xml
> 
> I have emerged "nrpe" and started on both server and client, is it
> correct? On the server I have created directory: 
> /etc/nagios/objects does this directory have to have ownership
> "nagios:nagios" ?
> 
> Inside this directory I have have created files: nrpe-command.cfg 
> define command { command_name check_nrpe command_line
> $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ }
> 
> nrpe-hosts.cfg define host { use linux-server host_name
> clinic-atom alias Gentoo Linux Web Server address 192.168.141.1 }
> 
> nrpe-services.cfg define service { use generic-service host_name
> clinic-atom service_description Current Load check_command
> check_nrpe!check_load }
> 
> define service { use generic-service host_name clinic-atom 
> service_description Root Partition check_command
> check_nrpe!check_disk }
> 
> On the client I just emerge nrpe and started it. Why isn't it
> working?

- -- 
Moritz Schlarb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iQEcBAEBAgAGBQJQs1GcAAoJEEXT29373YiIcckIAIa3WjuzuJNFKOmDn19s3cgo
vhtRixm41hqrOgTIkMDHGmDLREAhFim07+dYlYvZLUqxRykoGZt+0XBMBscvF7h/
afXXMtO21M+MT0QG6nl+eHvv6/avmuCoJ0d5FBJyxDzTw/AxyR2nDLstIeGYlr+h
P2SItcR3PElB3VraMIr8HnthYIwgPw0ApAX8NtU+/b8pKSAYZjIUX0bZ7NLqR+ZS
GjEI+B3BLNb8yW7egyfGXUpBhG5aEwP1dBfAQT4QazGDidnWlIGdY9YWSZoO3T+t
OdIicRuDghF0kXx6EzB5RNMppLZavhszWppbzgArImCGji41FzLRVbFYG1F9Ow8=
=0P9g
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-26 11:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-23 19:59 [gentoo-user] nagios remote host Joseph
2012-11-26 11:25 ` [gentoo-user] " Moritz Schlarb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox