<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Nagios version: Nagios Core 3.2.0<br>Nagiosgraph Version: nagiosgraph-1.1.2<br>OS RHEL 5.3 64bit<br><br>#####################nagios.cfg<br><br>log_file=/usr/local/nagios/var/nagios.log
<br>cfg_file=/usr/local/nagios/etc/objects/commands.cfg <br>cfg_file=/usr/local/nagios/etc/objects/contacts.cfg <br>cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg
<br>cfg_file=/usr/local/nagios/etc/objects/templates.cfg <br>cfg_file=/usr/local/nagios/etc/objects/hostgroups.cfg <br>cfg_file=/usr/local/nagios/etc/objects/localhost.cfg
<br>cfg_dir=/usr/local/nagios/etc/servers <br>cfg_dir=/usr/local/nagios/etc/switches
<br>object_cache_file=/usr/local/nagios/var/objects.cache <br>precached_object_file=/usr/local/nagios/var/objects.precache <br>resource_file=/usr/local/nagios/etc/resource.cfg
<br>status_file=/usr/local/nagios/var/status.dat <br>status_update_interval=10
<br>nagios_user=nagios <br>nagios_group=nagios
<br>check_external_commands=1 <br>command_check_interval=300s
<br>command_file=/usr/local/nagios/var/rw/nagios.cmd <br>external_command_buffer_slots=4096
<br>lock_file=/usr/local/nagios/var/nagios.lock <br>temp_file=/usr/local/nagios/var/nagios.tmp
<br>temp_path=/tmp <br>event_broker_options=-1
<br>broker_module=/usr/local/nagios/bin/ndomod-3x.o config_file=/usr/local/nagios/etc/ndomod.cfg<br>log_rotation_method=d <br>log_archive_path=/usr/local/nagios/var/archives
<br>use_syslog=1
<br>log_notifications=1 <br>log_service_retries=1
<br>log_host_retries=1 <br>log_event_handlers=1
<br>log_initial_states=0 <br>log_external_commands=1
<br>log_passive_checks=1 <br>service_inter_check_delay_method=s
<br>max_service_check_spread=30 <br>service_interleave_factor=s
<br>host_inter_check_delay_method=s <br>max_host_check_spread=30
<br>max_concurrent_checks=0 <br>check_result_reaper_frequency=10
<br>max_check_result_reaper_time=30 <br>check_result_path=/usr/local/nagios/var/spool/checkresults
<br>max_check_result_file_age=3600 <br>cached_host_check_horizon=15
<br>cached_service_check_horizon=15 <br>enable_predictive_host_dependency_checks=1
<br>enable_predictive_service_dependency_checks=1 <br>soft_state_dependencies=0
<br>auto_reschedule_checks=0 <br>auto_rescheduling_interval=30
<br>auto_rescheduling_window=180 <br>sleep_time=0.25
<br>service_check_timeout=60 <br>host_check_timeout=30
<br>event_handler_timeout=30 <br>notification_timeout=30
<br>ocsp_timeout=5 <br>perfdata_timeout=5
<br>retain_state_information=1 <br>state_retention_file=/usr/local/nagios/var/retention.dat
<br>retention_update_interval=60 <br>use_retained_program_state=1
<br>use_retained_scheduling_info=1 <br>retained_host_attribute_mask=0
<br>retained_service_attribute_mask=0 <br>retained_process_host_attribute_mask=0
<br>retained_process_service_attribute_mask=0 <br>retained_contact_host_attribute_mask=0
<br>retained_contact_service_attribute_mask=0 <br>interval_length=60
<br>check_for_updates=1 <br>bare_update_check=0
<br>use_aggressive_host_checking=0 <br>execute_service_checks=1
<br>accept_passive_service_checks=1 <br>execute_host_checks=1
<br>accept_passive_host_checks=1 <br>enable_notifications=1
<br>enable_event_handlers=1 <br>process_performance_data=0
<br>obsess_over_services=0
<br>obsess_over_hosts=0<br>translate_passive_host_checks=0<br>passive_host_checks_are_soft=0<br>check_for_orphaned_services=1<br>check_for_orphaned_hosts=1<br>check_service_freshness=1<br>service_freshness_check_interval=60<br>check_host_freshness=0<br>host_freshness_check_interval=60<br>additional_freshness_latency=15<br>enable_flap_detection=1<br>low_service_flap_threshold=5.0<br>high_service_flap_threshold=20.0<br>low_host_flap_threshold=5.0<br>high_host_flap_threshold=20.0<br>date_format=us<br>p1_file=/usr/local/nagios/bin/p1.pl<br>enable_embedded_perl=1<br>use_embedded_perl_implicitly=1<br>illegal_object_name_chars=`~!$%^&*|'"<>?,()=<br>illegal_macro_output_chars=`~$&|'"<><br>use_regexp_matching=0<br>use_true_regexp_matching=0<br>admin_email=nagios@localhost<br>admin_pager=pagenagios@localhost<br>daemon_dumps_core=0<br>use_large_installation_tweaks=0<br>enable_environment_macros=1<br>debug_level=0<br>debug_verbosity=1<br>debug_
file=/usr/local/nagios/var/nagios.debug<br>max_debug_file_size=1000000<br> process_performance_data=1<br> service_perfdata_file=/var/spool/nagios/perfdata.log<br> service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$<br> service_perfdata_file_mode=a<br> service_perfdata_file_processing_interval=30<br> service_perfdata_file_processing_command=process-service-perfdata<br><br><br><br>################nagiosgraph.cfg<br><br><br>debug =
5 <br>logfile = /var/log/nagiosgraph.log <br>rrddir =
/usr/local/nagios/nagiosgraph/rrd <br>mapfile = /usr/local/nagios/nagiosgraph/map <br>colorscheme =
1 <br>heartbeat = 600 <br>stylesheet =
/nagios/stylesheets/nagiosgraph.css <br>dbseparator = subdir <br>plotas =
LINE2 <br>maximums = Current Load,PLW,Procs: total,Procs: zombie,User Count <br>minimums = APCUPSD,Mem: free,Mem:
swap <br>hostdb = /usr/local/nagios/etc/hostdb.conf <br>servdb =
/usr/local/nagios/etc/servdb.conf <br>nagioscgiurl = https://nagiosserver/nagios/cgi-bin <br>selecthost = Select
server <br>selectserv = Select service <br>fixedscale = Fixed
Scale <br>submit = Update Graphs<br>perfforhost = Performance data for host<br>perfforserv = Performance data for service<br>service = service<br>asof = as of<br>dai = Today<br>daily = Daily<br>day = Today<br>week = This Week<br>weekly = Weekly<br>month = This Month<br>monthly = Monthly<br>year = This Year<br>yearly = Yearly<br>configerror = Configuration Error (email <a href="mailto:alan.brenner@ithaka.org">Alan</a>).<br>noservicegiven = Bad URL for showservice.cgi; no service given<br>apcupsd = Uninterruptible Power Supply Status (Battery Charge,
Tempurature, Load Percentage, Time Left)<br>bps = Bits Per Second<br>clamdb = Clam Database<br>diskgb = Disk Usage<br>http = Bits Per Second<br>load = Load Average<br>losspct = Loss Percentage<br>mailq = Pending Output E-mail Messages<br>memory = RAM Usage<br>Mem%3A%20swap = Swap Utilization<br>ping = Ping Loss Percentage and Round Trip Average<br>PLW = Perl Log Watcher Events<br>procs = Processes<br>qsize = Messages in Outbound Queue<br>rta = Round Trip Average<br>smtp = E-mail Status<br>testcolor = Show Colors<br>typesome = Type some space seperated nagiosgraph line names here<br>graph = Graph<br>previous = previous<br>next = next<br>createdby = Created
by<br><br><br>#################################command.cfg<br><br> <br>define
command{ <br> command_name notify-host-by-email <br> command_line /usr/bin/printf
"%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ <br>
} <br>define
command{ <br> command_name notify-service-by-email <br> command_line /usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ <br>
} <br>define
command{ <br> command_name check-host-alive <br> command_line
$USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5 <br> } <br>define
command{ <br> command_name check_local_disk <br> command_line
$USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ <br> } <br>define
command{ <br> command_name check_local_load <br> command_line
$USER1$/check_load -w $ARG1$ -c $ARG2$ <br> } <br>define
command{ <br> command_name check_local_procs <br> command_line
$USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$ <br> } <br>define
command{ <br> command_name check_local_users <br> command_line
$USER1$/check_users -w $ARG1$ -c $ARG2$ <br> } <br>define
command{ <br> command_name check_local_swap <br> command_line
$USER1$/check_swap -w $ARG1$ -c $ARG2$ <br> } <br>define
command{ <br> command_name check_local_mrtgtraf <br> command_line
$USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$ <br>
} <br>define
command{ <br> command_name check_ftp
<br> command_line $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$ <br> } <br>define
command{ <br> command_name check_hpjd <br>
command_line $USER1$/check_hpjd -H $HOSTADDRESS$ $ARG1$ <br> } <br>define
command{ <br> command_name check_snmp <br>
command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$ <br> } <br>define
command{ <br> command_name check_http <br>
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ <br> } <br>define
command{ <br> command_name check_ssh
<br> command_line $USER1$/check_ssh $ARG1$ $HOSTADDRESS$ <br> } <br>define
command{ <br> command_name check_dhcp <br>
command_line $USER1$/check_dhcp $ARG1$ <br> } <br>define
command{ <br> command_name check_ping <br>
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 <br> } <br>define
command{ <br> command_name check_pop
<br> command_line $USER1$/check_pop -H $HOSTADDRESS$ $ARG1$ <br> } <br>define
command{ <br> command_name check_imap <br>
command_line $USER1$/check_imap -H $HOSTADDRESS$ $ARG1$ <br> } <br>define
command{ <br> command_name check_smtp <br>
command_line $USER1$/check_smtp -H $HOSTADDRESS$ $ARG1$ <br> } <br>define
command{ <br> command_name check_tcp
<br> command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$<br> }<br>define command{<br> command_name check_udp<br> command_line $USER1$/check_udp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$<br> }<br>define command{<br> command_name check_nt<br> command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$<br> }<br>define command{<br> command_name check_nrpe<br> command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c
$ARG1$<br> }<br>define command{<br> command_name check_LOAD2<br> command_line /usr/local/nagios/libexec/check_snmp_load.pl -H $HOSTADDRESS$ -C very4portan7! -w 70,70,70 -c 90,90,90 -T cisco<br> }<br>define command{<br> command_name check_fan_power<br> command_line /usr/local/nagios/libexec/check_snmp_env.pl -H $HOSTADDRESS$ -C very4portan7! -T cisco<br> }<br>define command{<br> command_name Check_Link<br> command_line /usr/local/nagios/libexec/check_snmp_int.pl -H
$HOSTADDRESS$ -C very4portan7! -n $ARG1$ -r<br> }<br>define command {<br> command_name process-service-perfdata<br> command_line /usr/local/nagios/lib/nagios/insert.pl "$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$"<br><br>}<br>define command{<br> command_name Echo<br> command_line /bin/echo $HOSTADDRESS$ $ARG1$<br> }<br><br>##############################localhost.cfg<br><br><br>define
host{ <br> use linux-server ; Name of host template to use
<br> ; This host definition will inherit all variables that are defined <br> host_name
localhost <br> alias localhost <br> address
127.0.0.1 <br> } <br>define
hostgroup{ <br> hostgroup_name linux-servers ; The name of the hostgroup <br> alias Linux Servers ; Long name of the
group <br> members localhost ; Comma separated list of hosts that belong to this group
<br> } <br>define
service{ <br> use local-service ; Name of service template to
use <br> host_name
localhost <br> service_description PING <br> check_command
check_ping!100.0,20%!500.0,60% <br> } <br>define
service{ <br> use local-service ; Name of service template to
use <br> host_name
localhost <br> service_description Root Partition <br> check_command
check_local_disk!20%!10%!/ <br> } <br>define
service{ <br> use local-service ; Name of service template to
use <br> host_name
localhost <br> service_description Total Processes <br> check_command
check_local_procs!250!400!RSZDT <br> } <br>define serviceextinfo
{ <br> service_description Current Load <br> host_name
localhost <br> notes_url /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$<br> icon_image graph.gif<br> icon_image_alt View graphs<br>}<br>define service{<br> use
local-service ; Name of service template to use<br> host_name localhost<br> service_description Current Load<br> check_command check_local_load!5.0,4.0,3.0!10.0,6.0,4.0<br> }<br>define service{<br> use
local-service ; Name of service template to use<br> host_name localhost<br> service_description Swap Usage<br> check_command check_local_swap!20!10<br> }<br>define service{<br> use
local-service ; Name of service template to use<br> host_name localhost<br> service_description Echo<br> check_command Echo<br> notifications_enabled 0<br><br> }<br>define service{<br>
use local-service ; Name of service template to use<br> host_name localhost<br> service_description Current Users<br> check_command check_local_users!20!50<br> }<br>define serviceextinfo {<br> service_description Current
Users<br> host_name localhost<br> notes_url /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$<br><br><br><br><br><br>Thanks,<br>Aladin<br></td></tr></table><br>
<hr size=1>The new Internet Explorer® 8 - Faster, safer, easier. Optimized for Yahoo! <a href="http://downloads.yahoo.com/ca/internetexplorer/"><b>Get it Now for Free!</b></a>