2008年1月11日金曜日

統合監視サーバ構築 - 2 - nagios2.9 設定ファイル(nagios.cfg)

現在、色々と設定変更中ですがこのような感じで稼働しています。
アイコン変更もOK!



nagios のメイン設定ファイル - nagios.cfg の備忘録

# ls -la /usr/local/nagios/etc
drwxrwxr-x 2 nagios nagios 4096 12月 28 16:41 .
drwxr-xr-x 9 nagios nagios 4096 12月 27 09:59 ..
-rw-rw-r-- 1 nagios nagios 9849 12月 14 20:33 cgi.cfg
-rw-r--r-- 1 nagios nagios 1444 12月 27 16:08 checkcommands.cfg
-rw-rw-r-- 1 nagios nagios 9051 12月 28 16:39 commands.cfg
-rw-r--r-- 1 nagios nagios 15680 12月 27 10:13 commands.cfg.perl
-rw-r--r-- 1 nagios nagios 178 12月 14 19:26 contactgroups.cfg
-rw-r--r-- 1 nagios nagios 507 12月 14 19:26 contacts.cfg
-rw-r--r-- 1 nagios nagios 546 12月 28 13:35 hostextinfo.cfg
-rw-r--r-- 1 nagios nagios 925 12月 28 13:38 hostgroups.cfg
-rw-r--r-- 1 nagios nagios 14165 12月 28 13:44 hosts.cfg
-rw-rw-r-- 1 nagios nagios 21 12月 14 19:25 htpasswd.users
-rw-rw-r-- 1 nagios nagios 12453 12月 27 13:11 localhost.cfg
-rw-rw-r-- 1 nagios nagios 31272 12月 28 16:40 nagios.cfg
-rw-rw---- 1 nagios nagios 1340 12月 14 19:07 resource.cfg
-rw-r--r-- 1 nagios nagios 10624 12月 28 16:41 services.cfg


注)コメントは長くなるので消去しています。

# view /usr/local/nagios/etc/nagios.cfg
##############################################################################
#
# NAGIOS.CFG - Sample Main Config File for Nagios 2.9
#
# Read the documentation for more information on this configuration
# file. I've provided some comments here, but things may not be so
# clear without further explanation.
#
# Last Modified: 12-21-2006
#
##############################################################################

log_file=/usr/local/nagios//var/nagios.log

cfg_file=/usr/local/nagios//etc/commands.cfg

cfg_file=/usr/local/nagios//etc/localhost.cfg

cfg_file=/usr/local/nagios//etc/contactgroups.cfg
cfg_file=/usr/local/nagios//etc/contacts.cfg
#cfg_file=/usr/local/nagios//etc/dependencies.cfg
#cfg_file=/usr/local/nagios//etc/escalations.cfg
cfg_file=/usr/local/nagios//etc/hostgroups.cfg
cfg_file=/usr/local/nagios//etc/hosts.cfg
cfg_file=/usr/local/nagios//etc/services.cfg
#cfg_file=/usr/local/nagios//etc/timeperiods.cfg
cfg_file=/usr/local/nagios//etc/checkcommands.cfg

cfg_file=/usr/local/nagios//etc/hostextinfo.cfg
#cfg_file=/usr/local/nagios//etc/serviceextinfo.cfg

#cfg_dir=/usr/local/nagios//etc/servers
#cfg_dir=/usr/local/nagios//etc/printers
#cfg_dir=/usr/local/nagios//etc/switches
#cfg_dir=/usr/local/nagios//etc/routers

object_cache_file=/usr/local/nagios//var/objects.cache

resource_file=/usr/local/nagios//etc/resource.cfg

status_file=/usr/local/nagios//var/status.dat

nagios_user=nagios

nagios_group=nagios

check_external_commands=1

#command_check_interval=15s
command_check_interval=-1

command_file=/usr/local/nagios//var/rw/nagios.cmd

external_command_buffer_slots=4096

comment_file=/usr/local/nagios//var/comments.dat

downtime_file=/usr/local/nagios//var/downtime.dat

lock_file=/usr/local/nagios//var/nagios.lock

temp_file=/usr/local/nagios//var/nagios.tmp

event_broker_options=-1

#broker_module=/somewhere/module1.o
#broker_module=/somewhere/module2.o arg1 arg2=3 debug=0

log_rotation_method=d

log_archive_path=/usr/local/nagios//var/archives

use_syslog=1

log_notifications=1

log_service_retries=1

log_host_retries=1

log_event_handlers=1

log_initial_states=0

log_external_commands=1

log_passive_checks=1

#global_host_event_handler=somecommand
#global_service_event_handler=somecommand

service_inter_check_delay_method=s

max_service_check_spread=30

service_interleave_factor=s

host_inter_check_delay_method=s

max_host_check_spread=30

max_concurrent_checks=0

service_reaper_frequency=10

check_result_buffer_slots=4096

auto_reschedule_checks=0

auto_rescheduling_interval=30

auto_rescheduling_window=180

sleep_time=0.25

service_check_timeout=60
host_check_timeout=30
event_handler_timeout=30
notification_timeout=30
ocsp_timeout=5
perfdata_timeout=5

retain_state_information=1

state_retention_file=/usr/local/nagios//var/retention.dat

retention_update_interval=60

use_retained_program_state=1

use_retained_scheduling_info=0

interval_length=60

use_aggressive_host_checking=0

execute_service_checks=1

accept_passive_service_checks=1

execute_host_checks=1

accept_passive_host_checks=1

enable_notifications=1

enable_event_handlers=1

process_performance_data=0
#process_performance_data=1

#host_perfdata_command=process-host-perfdata

#host_perfdata_file=/tmp/host-perfdata
#service_perfdata_file=/tmp/service-perfdata

#host_perfdata_file_template=[HOSTPERFDATA]\t$TIMET$\t$HOSTNAME$\t$HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$
#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

obsess_over_services=0

#ocsp_command=somecommand

check_for_orphaned_services=1

check_service_freshness=1

service_freshness_check_interval=60

check_host_freshness=0

host_freshness_check_interval=60

aggregate_status_updates=1

status_update_interval=10

enable_flap_detection=0

low_service_flap_threshold=5.0
high_service_flap_threshold=20.0
low_host_flap_threshold=5.0
high_host_flap_threshold=20.0

date_format=us

p1_file=/usr/local/nagios//bin/p1.pl

illegal_object_name_chars=`~!$%^&*'"<>?,()=

illegal_macro_output_chars=`~$&'"<>

use_regexp_matching=0

use_true_regexp_matching=0

admin_email=nagios

admin_pager=pagenagios

daemon_dumps_core=0


次回は cgi.cfg かな?


9 件のコメント:

匿名 さんのコメント...

электронные сигареты gamucci - map

匿名 さんのコメント...

At the close of the working day, a safety loоk at really should be сarrіed οut.

No еѕtаtе is the similar, so taκe into conѕіderation the
cuгrent and the long run of any land ԁeνelopment.

Hemispherе Blender -- with a distіnctive blade
unit develοped to eradicate useless рlaces less than the bladе and a sound glass ρіtcher.


Feel free tο visit my web blog: 4-Slice Toasters At Walmart
My webpage > pink toasters and kettles

匿名 さんのコメント...

Amazing blog! Is your theme custom mаԁe oг
did you download it frοm ѕomeωhеre?
A theme like уouгѕ with a fеw simple tweeks would reаlly make my
blog shine. Pleаse let me knoω where you gоt youг themе.
Many thanks
my site - tayswiftfansbg.altervista.org

匿名 さんのコメント...

Fаbulous, what а web ѕitе it is!
Τhis webρage provideѕ useful facts to us,
κeep it up.

Alѕο νiѕit my ωeb page - bartoe.Pixnet.net

匿名 さんのコメント...

Thanks for the splendid writing! I must say i appreciated browsing them, tonsil stone you could be a very good artice writer.For certain i will remember to take a note of your website Satellite direct and definately will usually visit sooner or later. I need to strongly encourage a person keep on ones own amazing items, have got a nice break penis advantage weekend!

匿名 さんのコメント...

With ԁough ωell ԁone its timе to
ѕpread it out wіth a rolling pin to the dіfferent sizeѕ
dереnding on hoω many pieces onе would like.

Cut рig-in-blanketfree from strip аnd make 19 mοгe ρigs-in-blаnκеts
in same manner, arrangingthem, seam sides down, аs they are made on prepared
baκing ѕheet. For several weeks I had been ѕeeing this commercial on televіsion telling аbout а new рizzа anԁ since
I love pizzа I dеcided to purchasе
one on my next shoppіng tгip.

Here is my homepage: pizza pan avon oh

匿名 さんのコメント...

Α uncookeԁ onion would pгοbably
be rubbed on unbroken chilblains wіth гeally good final results.

Then there are scientists and other involνed human beingѕ who are ѕeemingly fighting a losing battle to stem the tiԁе primary toward еnѵironmental Aгmageddon or аs the title
of this eԁitorial calls it "Warmageddon. * Chinese pizza: Best rated unbaked pizza dough with hoisin sauce, sliced eco-friendly peppers and onions, and sauteed shitake mushrooms.

Check out my web page: what is the best pizza stone for ovens

匿名 さんのコメント...

Chіcаgo ρіzzа is usually meaty (ѕome
vaгiants come stuffed wіth сheeses anԁ mеаt layeгs)
anԁ it is eaten ωith a knіfe anԁ fork.

Layеr bottom with aѕ much оr as little pizzа sauce as you like.
Top the dough with olive oil оr cooκіng sрrаy, anԁ sсοoр
the οniоn mixture oνеr it evenly.


Fеel free to visit my homepаge: http://cello81ross.wallinside.com/

匿名 さんのコメント...

Thanks to my father who told me regarding this weblog, this website is genuinely amazing.


Here is my homepage; tinyurl.com