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
- host_inter_check_delay_method=s
- max_host_check_spread=30
- auto_reschedule_checks=1
- auto_rescheduling_interval=30
- auto_rescheduling_window=180
use_agressive_host_checking=0 enable_flap
- host_perfdata_file_processing_command=process-host-perfdata-file
- service_perfdata_file_processing_command=process-service-perfdata-file
check_for_orphaned_services=0 check_service_freshness=0
- service_freshness_check_interval=60
- check_host_freshness=0
- host_freshness_check_interval=60
date_format=us illegal_object_name_chars=`~!$%^&*"|'<>?,()= illegal_macro_output_chars=`~$^&"|'<>
use_regexp_matching=0
- host_perfdata_file=/usr/local/nagios/var/host-perfdata.dat
- 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 .
Apenguin.
No comments:
Post a Comment