Gentoo Archives: gentoo-user

From: Moritz Schlarb <mail@××××××××××××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: nagios remote host
Date: Mon, 26 Nov 2012 11:26:54
Message-Id: 50B3519D.2010209@moritz-schlarb.de
In Reply to: [gentoo-user] nagios remote host by Joseph
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 You have to configure nrpe on the remote host you want to monitor.
5
6 E.g. you want to execute check_load on the remote host - to get this
7 working, you have to tell the nrpe server that "check_load" means.
8 In a normal environment, the check name is the only parameter you can
9 pass to a remote nrpe plugin for security reasons.
10
11 Am 23.11.2012 20:59, schrieb Joseph:
12 > Is there any easy documentation how to configure nagios on Gentoo
13 > to monitor remote host? The documntation below is out of date:
14 > http://www.gentoo.org/doc/en/nagios-guide.xml
15 >
16 > I have emerged "nrpe" and started on both server and client, is it
17 > correct? On the server I have created directory:
18 > /etc/nagios/objects does this directory have to have ownership
19 > "nagios:nagios" ?
20 >
21 > Inside this directory I have have created files: nrpe-command.cfg
22 > define command { command_name check_nrpe command_line
23 > $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ }
24 >
25 > nrpe-hosts.cfg define host { use linux-server host_name
26 > clinic-atom alias Gentoo Linux Web Server address 192.168.141.1 }
27 >
28 > nrpe-services.cfg define service { use generic-service host_name
29 > clinic-atom service_description Current Load check_command
30 > check_nrpe!check_load }
31 >
32 > define service { use generic-service host_name clinic-atom
33 > service_description Root Partition check_command
34 > check_nrpe!check_disk }
35 >
36 > On the client I just emerge nrpe and started it. Why isn't it
37 > working?
38
39 - --
40 Moritz Schlarb
41 -----BEGIN PGP SIGNATURE-----
42 Version: GnuPG v2.0.19 (GNU/Linux)
43 Comment: Using GnuPG with undefined - http://www.enigmail.net/
44
45 iQEcBAEBAgAGBQJQs1GcAAoJEEXT29373YiIcckIAIa3WjuzuJNFKOmDn19s3cgo
46 vhtRixm41hqrOgTIkMDHGmDLREAhFim07+dYlYvZLUqxRykoGZt+0XBMBscvF7h/
47 afXXMtO21M+MT0QG6nl+eHvv6/avmuCoJ0d5FBJyxDzTw/AxyR2nDLstIeGYlr+h
48 P2SItcR3PElB3VraMIr8HnthYIwgPw0ApAX8NtU+/b8pKSAYZjIUX0bZ7NLqR+ZS
49 GjEI+B3BLNb8yW7egyfGXUpBhG5aEwP1dBfAQT4QazGDidnWlIGdY9YWSZoO3T+t
50 OdIicRuDghF0kXx6EzB5RNMppLZavhszWppbzgArImCGji41FzLRVbFYG1F9Ow8=
51 =0P9g
52 -----END PGP SIGNATURE-----