ur pager
# going off on New Year s. Although you re employer might ... :-) timeperiod {us-holidays_name us-holidaysU.S. Holidays
1 00: 00-00: 00; New Years - 1 may 00: 00-00: 00; Memorial Day (last Monday in May) 4 00: 00-00: 00; Independence Day1 september 00: 00-00: 00; Labor Day (first Monday in September) - 1 november 00: 00-00: 00; Thanksgiving (last Thursday in November) 25 00: 00-00: 00; Christmas
}
# This defines a modified 24x7 timeperiod that covers every day of the
# year, except for US holidays (defined in the timeperiod above) .timeperiod {_name 24x7_sans_holidays24x7 Sans Holidays
us-holidays; Get holiday exceptions from other timeperiod
00: 00-24: 0000: 00-24: 0000: 00-24: 0000: 00-24: 0000: 00-24: 0000: 00-24: 0000: 00-24: 00
}
/etc/nagios3/objects/servers/localhost.cfg
host {linux-server_name localhostlocalhost127.0.0.1_interval 0.12_period 24x7_options d, u, f, r_interval 30_groups admins_enabled 1
}
service {local-service_name localhost_description PING_command check_ping! 100.0,20%! 500.0,60% _period 24x7_options w, c, r_interval 30_groups admins_enabled 1
} service {local-service_name localhost_description Root Partition_command check_local_disk! 20%! 10%!/_ period 24x7_options w, c, r_interval 30_groups admins_enabled 1
}
service {local-service_name localhost_description var Partition_command check_local_disk! 20%! 10%!/var_period 24x7_options w, c, r_interval 30_groups admins_enabled 1
}
service {local-service_name localhost_description Current Users_command check_local_users! 20! 50_period 24x7_options w, c, r_interval 30_groups admins_enabled 1
}
service {local-service_name localhost_description Total Processes_command check_local_procs! 250! 400! RSZDT_period 24x7_options w, c, r_interval 30_groups admins_enabled 1
}
service {local-service_name localhost_description Current Load_command check_local_load! 5.0,4.0,3.0! 10.0,6.0,4.0_period 24x7_options w, c, r_interval 30_groups admins_enabled 1
} service {local-service_name localhost_description Swap Usage_command check_local_swap! 20! 10_period 24x7_options w, c, r_interval 30_groups admins_enabled 1
}
# Define a service to check SSH on the local machine.
# Disable notifications for this service by default, as not all users may have SSH enabled.
service {local-service; Name of service template to use_name localhost_description SSH_command check_ssh_period 24x7_options w, c, r_interval 30_groups admins_enabled 1
}
# Define a service to check HTTP on the local machine.
# Disable notifications for this service by default, as not all users may have HTTP enabled.service {local-service; Name of service template to use_name localhost_description HTTP_command check_http_period 24x7_options w, c, r_interval 30_groups admins_enabled 1
}
service {generic-service; Inherit values ??from a template_name localhost_description Uptime_command check_netapp_uptime
}
service {generic-service; Inherit values ??from a template_name localhost_description eth0 System Link Status on hosting_command check_snmp! Public! IfOperStatus.2!-m RFC1213-MIB_period 24x7_options w, c, r_interval 30_groups admins_enabled 1
} service {generic-service; Inherit values ??from a template_name localhost_description eth0.1001 Management Link Status on hosting_command check_snmp! Public! IfOperStatus.3!-m RFC1213-MIB_period 24x7_options w, c, r_interval 30_groups admins_enabled 1
}
# Monitor bandwidth via MRTG logs
service {generic-service; Inherit values ??from a template_name localhost_description eth0 System Link Bandwidth Usage on hosting_command traffic_average!/var/www/mrtg/monitoring/127.0.0.1_2.log!AVG!1000000,2000000!5000000,5000000!10_period 24x7_options w, c, r_interval 30_groups admins_enabled 1
}
service {generic-service; Inherit values ??from a template_name localhost_description eth0.1001 Management Link Usage on hosting_command traffic_average! /var/www/mrtg/monitoring/127.0.0.1_3.log! AVG! +1000000,2000000! +5000000,50000...