27 October 2005

nagios installations ,

hi friends , today i have done nagios ( Network monitoring Tool) in my computer .

so i am sending you the configurations.

1) install nagios-1.0b5.tar.gz nagiosplug-1.3-beta1.tar.gz
2) Before nagios installation download zlib,libgd and libpng compile and install it.
3)use useradd nagios and groupadd nagios. 4)and then configure usign following command
debian:/nagios#./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios

5)use make all for compile the nagios .
6)use make install for install all package.
7)use make install-init for init process.
8) then use ls /usr/local/nagios you will se only four dir bin sbin share var so you need to install etc also ,so use next step .
10)use make install-config
11)then configure nagios-plugin using this command /configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios 12)you will see /usr/local/nagios/libexex

13)check pluginin installed or not using usr/local/nagios/libexex/check_ssh -h
14)change all *.cfg-sample file using fllowing script

for i in *cfg-sample; do mv $i `echo $i | sed -e s/cfg-sample/cfg/`; done;

15)Now your basic work is finished ,

Then edit in files like hosts.cfg etcc...

when we will edit we will get some error..

following thing will not work so do not enable it

  1. host_inter_check_delay_method=s
  1. max_host_check_spread=30
  2. auto_reschedule_checks=1
  3. auto_rescheduling_interval=30
  4. auto_rescheduling_window=180

use_agressive_host_checking=0 enable_flap

  1. host_perfdata_file_processing_command=process-host-perfdata-file
  2. service_perfdata_file_processing_command=process-service-perfdata-file

check_for_orphaned_services=0 check_service_freshness=0

  1. service_freshness_check_interval=60
  2. check_host_freshness=0
  3. host_freshness_check_interval=60

date_format=us illegal_object_name_chars=`~!$%^&*"|'<>?,()= illegal_macro_output_chars=`~$^&"|'<>
use_regexp_matching=0

  1. host_perfdata_file=/usr/local/nagios/var/host-perfdata.dat
  2. service_perfdata_file=/usr/local/nagios/var/service-perfdata.dat

service_perfdata_file_template=[SERVICEPERFDATA]\t$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICEOUTPUT$\t$SERVICEPERFDATA$ host_perfdata_file_mode=a service_perfdata_file_mode=a host_perfdata_file_processing_interval=0 service_perfdata_file_processing_interval=0

host_perfdata_file_processing_command=process-host-perfdata-file service_perfdata_file_processing_command=process-service-perfdata-file check_for_orphaned_services=0

use_retained_scheduling_info=1

if any body have some query then send me .

Thanks
Apenguin.

No comments: