corsade

Server settings

Feb 3rd, 2023
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. ###############################################################################
  2. # SWITCH.CFG - SAMPLE CONFIG FILE FOR MONITORING A SWITCH
  3. #
  4. #
  5. # NOTES: This config file assumes that you are using the sample configuration
  6. # files that get installed with the Nagios quickstart guide.
  7. #
  8. ###############################################################################
  9.  
  10.  
  11.  
  12. ###############################################################################
  13. #
  14. # HOST DEFINITIONS
  15. #
  16. ###############################################################################
  17.  
  18. # Define the switch that we'll be monitoring
  19.  
  20. define host {
  21.  
  22. use generic-switch ; Inherit default values from a template
  23. host_name corsadeserver ; The name we're giving to this switch
  24. alias My home Linux server ; A longer name associated with the switch
  25. address 10.0.0.14 ; IP address of the switch
  26. hostgroups switches ; Host groups this switch is associated with
  27. }
  28.  
  29.  
  30.  
  31. ###############################################################################
  32. #
  33. # HOST GROUP DEFINITIONS
  34. #
  35. ###############################################################################
  36.  
  37. # Create a new hostgroup for switches
  38.  
  39. define hostgroup{
  40. hostgroup_name switches
  41. alias Network Switches
  42. }
  43.  
  44. ###############################################################################
  45. #
  46. # SERVICE DEFINITIONS
  47. #
  48. ###############################################################################
  49.  
  50. # Create a service to PING to switch
  51.  
  52. define service {
  53.  
  54. use generic-service ; Inherit values from a template
  55. host_name corsadeserver ; The name of the host the service is associated with
  56. service_description PING ; The service description
  57. check_command check_ping!200.0,20%!600.0,60% ; The command used to monitor the service
  58. check_interval 5 ; Check the service every 5 minutes under normal conditions
  59. retry_interval 1 ; Re-check the service every minute until its final/hard state is determined
  60. }
  61.  
  62. define service {
  63. host_name corsadeserver
  64. service_description cron Service Status
  65. use generic-service
  66. check_command check_ncpa!-t 'corsadetoken123' -P 5693 -M services -q 'service=cron,status=running'
  67. }
  68.  
Advertisement
Add Comment
Please, Sign In to add comment