| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
This is a short intro about installing the tool |
|---|
| 4 |
|
|---|
| 5 |
1) Extract source by typing |
|---|
| 6 |
tar zxvf n2rrd-VER.tar.gz |
|---|
| 7 |
|
|---|
| 8 |
2) change directory by typing |
|---|
| 9 |
cd n2rrd-VER |
|---|
| 10 |
|
|---|
| 11 |
3) Edit dist-n2rrd.conf file |
|---|
| 12 |
and move it to n2rrd.conf |
|---|
| 13 |
|
|---|
| 14 |
4) Edit install.sh variables |
|---|
| 15 |
|
|---|
| 16 |
5) run install.sh script |
|---|
| 17 |
./install.sh |
|---|
| 18 |
|
|---|
| 19 |
6) copy files under /etc/n2rrd/templates/*/dist-* |
|---|
| 20 |
|
|---|
| 21 |
7) mv dist-* files to something else, cause at next install this files |
|---|
| 22 |
will be over written |
|---|
| 23 |
|
|---|
| 24 |
8) Edit /etc/nagios/checkcommands.cfg |
|---|
| 25 |
add/update following, depending on the changes you made to variables in install.sh |
|---|
| 26 |
|
|---|
| 27 |
define command{ |
|---|
| 28 |
command_name process-service-perfdata |
|---|
| 29 |
command_line /usr/local/bin/n2rrd.pl -d -c /etc/n2rrd/n2rrd.conf -T $LASTSERVICECHECK$ -H $HOSTNAME$ -s "$SERVICEDESC$" -o "$SERVICEPERFDATA$" |
|---|
| 30 |
} |
|---|
| 31 |
you can switch off the debug option "-d" by removing it, after things work for you. |
|---|
| 32 |
|
|---|
| 33 |
9) Enable following variable in /etc/nagios/nagios.cfg |
|---|
| 34 |
service_perfdata_command=process-service-perfdata |
|---|
| 35 |
^^^^^ is the command name alias you defined above |
|---|
| 36 |
in checkcommands.cfg file |
|---|
| 37 |
|
|---|
| 38 |
10) Edit /etc/nagios/nagios.cfg to reflect the following variables: |
|---|
| 39 |
|
|---|
| 40 |
process_performance_data=1 |
|---|
| 41 |
host_perfdata_command=process-host-perfdata |
|---|
| 42 |
service_perfdata_command=process-service-perfdata |
|---|
| 43 |
|
|---|
| 44 |
11) check if the configuration has no erros by typing |
|---|
| 45 |
|
|---|
| 46 |
nagios -v /etc/nagios.cfg |
|---|
| 47 |
|
|---|
| 48 |
12) reload nagios |
|---|
| 49 |
/etc/init.d/nagios reload |
|---|
| 50 |
OR |
|---|
| 51 |
kill -HUP `cat /var/run/nagios.pid` |
|---|
| 52 |
|
|---|
| 53 |
13) check logfile for progress, if necessary fix errors. |
|---|
| 54 |
|
|---|
| 55 |
|
|---|
| 56 |
comments to: badri(at)diglinks.com |
|---|