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

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