1 |
Is there any easy documentation how to configure nagios on Gentoo to monitor remote host? |
2 |
The documntation below is out of date: |
3 |
http://www.gentoo.org/doc/en/nagios-guide.xml |
4 |
|
5 |
I have emerged "nrpe" and started on both server and client, is it correct? |
6 |
|
7 |
On the server I have created directory: |
8 |
/etc/nagios/objects |
9 |
does this directory have to have ownership "nagios:nagios" ? |
10 |
|
11 |
Inside this directory I have have created files: |
12 |
|
13 |
nrpe-command.cfg |
14 |
define command { |
15 |
command_name check_nrpe |
16 |
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ |
17 |
} |
18 |
|
19 |
nrpe-hosts.cfg |
20 |
define host { |
21 |
use linux-server |
22 |
host_name clinic-atom |
23 |
alias Gentoo Linux Web Server |
24 |
address 192.168.141.1 |
25 |
} |
26 |
|
27 |
nrpe-services.cfg |
28 |
define service { |
29 |
use generic-service |
30 |
host_name clinic-atom |
31 |
service_description Current Load |
32 |
check_command check_nrpe!check_load |
33 |
} |
34 |
|
35 |
define service { |
36 |
use generic-service |
37 |
host_name clinic-atom |
38 |
service_description Root Partition |
39 |
check_command check_nrpe!check_disk |
40 |
} |
41 |
|
42 |
On the client I just emerge nrpe and started it. Why isn't it working? |
43 |
|
44 |
-- |
45 |
Joseph |