Guest User

windows.cfg

a guest
Nov 17th, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.72 KB | None | 0 0
  1. ###############################################################################
  2. # WINDOWS.CFG - SAMPLE CONFIG FILE FOR MONITORING A WINDOWS MACHINE
  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. ###############################################################################
  15. #
  16. # HOST DEFINITIONS
  17. #
  18. ###############################################################################
  19. ###############################################################################
  20.  
  21. # Define a host for the Windows machine we'll be monitoring
  22. # Change the host_name, alias, and address to fit your situation
  23.  
  24.  
  25.  
  26. define host{
  27. use windows-server ; Inherit default values from a template
  28. host_name IYS-ROA-SECSYS ; The name we're giving to this host
  29. alias Security Server ; A longer name associated with the host
  30. address 10.2.199.9 ; IP address of the host
  31. }
  32.  
  33. define host{
  34. use windows-server ; Inherit default values from a template
  35. host_name IYS-ROA-AD01 ; The name we're giving to this host
  36. alias Physical AD Server; A longer name associated with the host
  37. address 10.2.70.5 ; IP address of the host
  38. }
  39.  
  40. define host{
  41. use windows-server ; Inherit default values from a template
  42. host_name IYS-RIC-AD01 ; The name we're giving to this host
  43. alias Physical AD Server; A longer name associated with the host
  44. address 10.1.70.5 ; IP address of the host
  45. }
  46.  
  47. define host{
  48. use windows-server ; Inherit default values from a template
  49. host_name IYS-RIC-AD02 ; The name we're giving to this host
  50. alias Physical AD Server; A longer name associated with the host
  51. address 10.1.70.6 ; IP address of the host
  52. }
  53.  
  54.  
  55. ###############################################################################
  56. ###############################################################################
  57. #
  58. # HOST GROUP DEFINITIONS
  59. #
  60. ###############################################################################
  61. ###############################################################################
  62.  
  63.  
  64. # Define a hostgroup for Windows machines
  65. # All hosts that use the windows-server template will automatically be a member of this group
  66.  
  67. define hostgroup{
  68. hostgroup_name windows-servers ; The name of the hostgroup
  69. alias Windows Servers ; Long name of the group
  70. }
  71.  
  72.  
  73.  
  74.  
  75. ###############################################################################
  76. ###############################################################################
  77. #
  78. # SERVICE DEFINITIONS
  79. #
  80. ###############################################################################
  81. ###############################################################################
  82.  
  83.  
  84. # Start monitoring for IYS-ROA-SECSYS
  85.  
  86.  
  87. # Create a service for monitoring the version of NSCLient++ that is installed
  88. define service{
  89. use generic-service
  90. host_name IYS-ROA-SECSYS
  91. service_description NSClient++ Version
  92. check_command check_nt!CLIENTVERSION
  93. }
  94.  
  95.  
  96. # Create a service for monitoring the uptime of the server
  97. # Change the host_name to match the name of the host you defined above
  98.  
  99. #monitor uptime of windows server
  100. define service{
  101. use generic-service
  102. host_name IYS-ROA-SECSYS
  103. service_description Uptime
  104. check_command check_nt!UPTIME
  105. }
  106.  
  107.  
  108. # Create a service for monitoring CPU load
  109. # Change the host_name to match the name of the host you defined above
  110.  
  111. # monitor cpu load alert over 90 for more than 3 min warn at 80 for 3 min
  112. define service{
  113. use generic-service
  114. host_name IYS-ROA-SECSYS
  115. service_description CPU Load
  116. check_command check_nt!CPULOAD!-l 3,80,90
  117. }
  118.  
  119.  
  120.  
  121. # Create a service for monitoring memory usage
  122. # Change the host_name to match the name of the host you defined above
  123.  
  124.  
  125. # monitor memory usage alert at 90 for more than 5min warn at 80 for 5 min
  126. define service{
  127. use generic-service
  128. host_name IYS-ROA-SECSYS
  129. service_description Memory Usage
  130. check_command check_nt!MEMUSE!-w 80 -c 90
  131. }
  132.  
  133.  
  134.  
  135. # Create a service for monitoring C:\ disk usage
  136. # Change the host_name to match the name of the host you defined above
  137.  
  138. # monitor used disk space. warn at 80% alert at 90%
  139. define service{
  140. use generic-service
  141. host_name IYS-ROA-SECSYS
  142. service_description C:\ Drive Space
  143. check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
  144. }
  145.  
  146. # Create a service for monitoring the W3SVC service
  147. # Change the host_name to match the name of the host you defined above
  148.  
  149. #monitor IIS alert if not running.
  150. define service{
  151. use generic-service
  152. host_name IYS-ROA-SECSYS
  153. service_description W3SVC
  154. check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
  155. }
  156.  
  157. #monitor ad bridge alert if not running
  158. define service{
  159. use generic-service
  160. host_name IYS-ROA-SECSYS
  161. service_description AD Bridge
  162. check_command check_nt!SERVICESTATE!-d SHOWALL -l ADBridge
  163. }
  164.  
  165. #monitor CSUP controller alert if not running
  166. define service{
  167. use generic-service
  168. host_name IYS-ROA-SECSYS
  169. service_description Door Controller
  170. check_command check_nt!SERVICESTATE!-d SHOWALL -l DBCSUP02
  171. }
  172.  
  173.  
  174.  
  175.  
  176. # Create a service for monitoring the Explorer.exe process
  177. # Change the host_name to match the name of the host you defined above
  178. #monitor Explorer.exe alert if not running
  179. define service{
  180. use generic-service
  181. host_name IYS-ROA-SECSYS
  182. service_description Explorer
  183. check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
  184. }
  185.  
  186. ## End Alerts for IYS-ROA-SECSYS
  187.  
  188.  
  189.  
  190.  
  191.  
  192. # Start monitoring for IYS-ROA-DC01
  193.  
  194.  
  195. # Create a service for monitoring the version of NSCLient++ that is installed
  196. define service{
  197. use generic-service
  198. host_name IYS-ROA-AD01
  199. service_description NSClient++ Version
  200. check_command check_nt!CLIENTVERSION
  201. }
  202.  
  203.  
  204. # Create a service for monitoring the uptime of the server
  205. # Change the host_name to match the name of the host you defined above
  206.  
  207. #monitor uptime of windows server
  208. define service{
  209. use generic-service
  210. host_name IYS-ROA-AD01
  211. service_description Uptime
  212. check_command check_nt!UPTIME
  213. }
  214.  
  215.  
  216. # Create a service for monitoring CPU load
  217. # Change the host_name to match the name of the host you defined above
  218.  
  219. # monitor cpu load alert over 90 for more than 3 min warn at 80 for 3 min
  220. define service{
  221. use generic-service
  222. host_name IYS-ROA-AD01
  223. service_description CPU Load
  224. check_command check_nt!CPULOAD!-l 3,80,90
  225. }
  226.  
  227.  
  228.  
  229. # Create a service for monitoring memory usage
  230. # Change the host_name to match the name of the host you defined above
  231.  
  232.  
  233. # monitor memory usage alert at 90 for more than 5min warn at 80 for 5 min
  234. define service{
  235. use generic-service
  236. host_name IYS-ROA-AD01
  237. service_description Memory Usage
  238. check_command check_nt!MEMUSE!-w 80 -c 90
  239. }
  240.  
  241.  
  242.  
  243. # Create a service for monitoring C:\ disk usage
  244. # Change the host_name to match the name of the host you defined above
  245.  
  246. # monitor used disk space. warn at 80% alert at 90%
  247. define service{
  248. use generic-service
  249. host_name IYS-ROA-AD01
  250. service_description C:\ Drive Space
  251. check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
  252. }
  253.  
  254. #monitor DNS alert if not running
  255. define service{
  256. use generic-service
  257. host_name IYS-ROA-AD01
  258. service_description DNS
  259. check_command check_nt!PROCSTATE!-d SHOWALL -l DNS
  260. }
  261.  
  262. #monitor DNS client alert if not running
  263. define service{
  264. use generic-service
  265. host_name IYS-ROA-AD01
  266. service_description DNS Client
  267. check_command check_nt!PROCSTATE!-d SHOWALL -l Dnscache
  268. }
  269.  
  270. #monitor group policy alert if not running
  271. define service{
  272. use generic-service
  273. host_name IYS-ROA-AD01
  274. service_description Group Policy Service
  275. check_command check_nt!PROCSTATE!-d SHOWALL -l gpsvc
  276. }
  277.  
  278. #monitor netlogon alert if not running
  279. define service{
  280. use generic-service
  281. host_name IYS-ROA-AD01
  282. service_description Netlogon
  283. check_command check_nt!PROCSTATE!-d SHOWALL -l Netlogon
  284. }
  285.  
  286. #monitor ADDS alert if not running
  287. define service{
  288. use generic-service
  289. host_name IYS-ROA-AD01
  290. service_description Active Directory Domain Services
  291. check_command check_nt!PROCSTATE!-d SHOWALL -l NTDS
  292. }
  293.  
  294. # Create a service for monitoring the Explorer.exe process
  295. # Change the host_name to match the name of the host you defined above
  296. #monitor Explorer.exe alert if not running
  297. define service{
  298. use generic-service
  299. host_name IYS-ROA-AD01
  300. service_description Explorer
  301. check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
  302. }
  303.  
  304. ## End Alerts for IYS-ROA-DC01
  305.  
  306.  
  307.  
  308. # Start monitoring for IYS-RIC-AD01
  309.  
  310.  
  311. # Create a service for monitoring the version of NSCLient++ that is installed
  312. define service{
  313. use generic-service
  314. host_name IYS-RIC-AD01
  315. service_description NSClient++ Version
  316. check_command check_nt!CLIENTVERSION
  317. }
  318.  
  319.  
  320. # Create a service for monitoring the uptime of the server
  321. # Change the host_name to match the name of the host you defined above
  322.  
  323. #monitor uptime of windows server
  324. define service{
  325. use generic-service
  326. host_name IYS-RIC-AD01
  327. service_description Uptime
  328. check_command check_nt!UPTIME
  329. }
  330.  
  331.  
  332. # Create a service for monitoring CPU load
  333. # Change the host_name to match the name of the host you defined above
  334.  
  335. # monitor cpu load alert over 90 for more than 3 min warn at 80 for 3 min
  336. define service{
  337. use generic-service
  338. host_name IYS-RIC-AD01
  339. service_description CPU Load
  340. check_command check_nt!CPULOAD!-l 3,80,90
  341. }
  342.  
  343.  
  344.  
  345. # Create a service for monitoring memory usage
  346. # Change the host_name to match the name of the host you defined above
  347.  
  348.  
  349. # monitor memory usage alert at 90 for more than 5min warn at 80 for 5 min
  350. define service{
  351. use generic-service
  352. host_name IYS-RIC-AD01
  353. service_description Memory Usage
  354. check_command check_nt!MEMUSE!-w 80 -c 90
  355. }
  356.  
  357.  
  358.  
  359. # Create a service for monitoring C:\ disk usage
  360. # Change the host_name to match the name of the host you defined above
  361.  
  362. # monitor used disk space. warn at 80% alert at 90%
  363. define service{
  364. use generic-service
  365. host_name IYS-RIC-AD01
  366. service_description C:\ Drive Space
  367. check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
  368. }
  369.  
  370. #monitor DNS alert if not running
  371. define service{
  372. use generic-service
  373. host_name IYS-RIC-AD01
  374. service_description DNS
  375. check_command check_nt!PROCSTATE!-d SHOWALL -l DNS
  376. }
  377.  
  378. #monitor DNS client alert if not running
  379. define service{
  380. use generic-service
  381. host_name IYS-RIC-AD01
  382. service_description DNS Client
  383. check_command check_nt!PROCSTATE!-d SHOWALL -l Dnscache
  384. }
  385.  
  386. #monitor group policy alert if not running
  387. define service{
  388. use generic-service
  389. host_name IYS-RIC-AD01
  390. service_description Group Policy Service
  391. check_command check_nt!PROCSTATE!-d SHOWALL -l gpsvc
  392. }
  393.  
  394. #monitor netlogon alert if not running
  395. define service{
  396. use generic-service
  397. host_name IYS-RIC-AD01
  398. service_description Netlogon
  399. check_command check_nt!PROCSTATE!-d SHOWALL -l Netlogon
  400. }
  401.  
  402. #monitor ADDS alert if not running
  403. define service{
  404. use generic-service
  405. host_name IYS-RIC-AD01
  406. service_description Active Directory Domain Services
  407. check_command check_nt!PROCSTATE!-d SHOWALL -l NTDS
  408. }
  409.  
  410. # Create a service for monitoring the Explorer.exe process
  411. # Change the host_name to match the name of the host you defined above
  412. #monitor Explorer.exe alert if not running
  413. define service{
  414. use generic-service
  415. host_name IYS-RIC-AD01
  416. service_description Explorer
  417. check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
  418. }
  419.  
  420. ## End Alerts for IYS-RIC-AD01
  421.  
  422. # Start monitoring for IYS-RIC-AD02
  423.  
  424.  
  425. # Create a service for monitoring the version of NSCLient++ that is installed
  426. define service{
  427. use generic-service
  428. host_name IYS-RIC-AD02
  429. service_description NSClient++ Version
  430. check_command check_nt!CLIENTVERSION
  431. }
  432.  
  433.  
  434. # Create a service for monitoring the uptime of the server
  435. # Change the host_name to match the name of the host you defined above
  436.  
  437. #monitor uptime of windows server
  438. define service{
  439. use generic-service
  440. host_name IYS-RIC-AD02
  441. service_description Uptime
  442. check_command check_nt!UPTIME
  443. }
  444.  
  445.  
  446. # Create a service for monitoring CPU load
  447. # Change the host_name to match the name of the host you defined above
  448.  
  449. # monitor cpu load alert over 90 for more than 3 min warn at 80 for 3 min
  450. define service{
  451. use generic-service
  452. host_name IYS-RIC-AD02
  453. service_description CPU Load
  454. check_command check_nt!CPULOAD!-l 3,80,90
  455. }
  456.  
  457.  
  458.  
  459. # Create a service for monitoring memory usage
  460. # Change the host_name to match the name of the host you defined above
  461.  
  462.  
  463. # monitor memory usage alert at 90 for more than 5min warn at 80 for 5 min
  464. define service{
  465. use generic-service
  466. host_name IYS-RIC-AD02
  467. service_description Memory Usage
  468. check_command check_nt!MEMUSE!-w 80 -c 90
  469. }
  470.  
  471.  
  472.  
  473. # Create a service for monitoring C:\ disk usage
  474. # Change the host_name to match the name of the host you defined above
  475.  
  476. # monitor used disk space. warn at 80% alert at 90%
  477. define service{
  478. use generic-service
  479. host_name IYS-RIC-AD02
  480. service_description C:\ Drive Space
  481. check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
  482. }
  483.  
  484. #monitor DNS alert if not running
  485. define service{
  486. use generic-service
  487. host_name IYS-RIC-AD02
  488. service_description DNS
  489. check_command check_nt!PROCSTATE!-d SHOWALL -l DNS
  490. }
  491.  
  492. #monitor DNS client alert if not running
  493. define service{
  494. use generic-service
  495. host_name IYS-RIC-AD02
  496. service_description DNS Client
  497. check_command check_nt!PROCSTATE!-d SHOWALL -l Dnscache
  498. }
  499.  
  500. #monitor group policy alert if not running
  501. define service{
  502. use generic-service
  503. host_name IYS-RIC-AD02
  504. service_description Group Policy Service
  505. check_command check_nt!PROCSTATE!-d SHOWALL -l gpsvc
  506. }
  507.  
  508. #monitor netlogon alert if not running
  509. define service{
  510. use generic-service
  511. host_name IYS-RIC-AD02
  512. service_description Netlogon
  513. check_command check_nt!PROCSTATE!-d SHOWALL -l Netlogon
  514. }
  515.  
  516. #monitor ADDS alert if not running
  517. define service{
  518. use generic-service
  519. host_name IYS-RIC-AD02
  520. service_description Active Directory Domain Services
  521. check_command check_nt!PROCSTATE!-d SHOWALL -l NTDS
  522. }
  523.  
  524. # Create a service for monitoring the Explorer.exe process
  525. # Change the host_name to match the name of the host you defined above
  526. #monitor Explorer.exe alert if not running
  527. define service{
  528. use generic-service
  529. host_name IYS-RIC-AD02
  530. service_description Explorer
  531. check_command check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
  532. }
  533.  
  534. ## End Alerts for IYS-RIC-AD02
Advertisement
Add Comment
Please, Sign In to add comment