Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###############################################################################
- # SWITCH.CFG - SAMPLE CONFIG FILE FOR MONITORING A SWITCH
- #
- #
- # NOTES: This config file assumes that you are using the sample configuration
- # files that get installed with the Nagios quickstart guide.
- #
- ###############################################################################
- ###############################################################################
- #
- # HOST DEFINITIONS
- #
- ###############################################################################
- # Define the switch that we'll be monitoring
- define host {
- use generic-switch ; Inherit default values from a template
- host_name corsadeserver ; The name we're giving to this switch
- alias My home Linux server ; A longer name associated with the switch
- address 10.0.0.14 ; IP address of the switch
- hostgroups switches ; Host groups this switch is associated with
- }
- ###############################################################################
- #
- # HOST GROUP DEFINITIONS
- #
- ###############################################################################
- # Create a new hostgroup for switches
- define hostgroup{
- hostgroup_name switches
- alias Network Switches
- }
- ###############################################################################
- #
- # SERVICE DEFINITIONS
- #
- ###############################################################################
- # Create a service to PING to switch
- define service {
- use generic-service ; Inherit values from a template
- host_name corsadeserver ; The name of the host the service is associated with
- service_description PING ; The service description
- check_command check_ping!200.0,20%!600.0,60% ; The command used to monitor the service
- check_interval 5 ; Check the service every 5 minutes under normal conditions
- retry_interval 1 ; Re-check the service every minute until its final/hard state is determined
- }
- define service {
- host_name corsadeserver
- service_description cron Service Status
- use generic-service
- check_command check_ncpa!-t 'corsadetoken123' -P 5693 -M services -q 'service=cron,status=running'
- }
Advertisement
Add Comment
Please, Sign In to add comment