1################################################################################
2# Sample object config file for Nagios
3#
4# Read the documentation for more information on this configuration file.  I've
5# provided some comments here, but things may not be so clear without further
6# explanation, so make sure to read the HTML documentation!
7#
8# Last Modified: 05-30-2006
9#
10################################################################################
11
12
13
14################################################################################
15# TIMEPERIOD DEFINITIONS
16################################################################################
17
18# '24x7' timeperiod definition
19define timeperiod{
20	timeperiod_name	24x7
21	alias		24 Hours A Day, 7 Days A Week
22	sunday		00:00-24:00
23	monday		00:00-24:00
24	tuesday		00:00-24:00
25	wednesday	00:00-24:00
26	thursday	00:00-24:00
27	friday		00:00-24:00
28	saturday	00:00-24:00
29	}
30
31
32# 'workhours' timeperiod definition
33define timeperiod{
34	timeperiod_name	workhours
35	alias		"Normal" Working Hours
36	monday		09:00-17:00
37	tuesday		09:00-17:00
38	wednesday	09:00-17:00
39	thursday	09:00-17:00
40	friday		09:00-17:00
41	}
42
43
44# 'nonworkhours' timeperiod definition
45define timeperiod{
46	timeperiod_name	nonworkhours
47	alias		Non-Work Hours
48	sunday		00:00-24:00
49	monday		00:00-09:00,17:00-24:00
50	tuesday		00:00-09:00,17:00-24:00
51	wednesday	00:00-09:00,17:00-24:00
52	thursday	00:00-09:00,17:00-24:00
53	friday		00:00-09:00,17:00-24:00
54	saturday	00:00-24:00
55	}
56
57
58# 'none' timeperiod definition
59define timeperiod{
60	timeperiod_name	none
61	alias		No Time Is A Good Time
62	}
63
64
65
66################################################################################
67# CONTACT DEFINITIONS
68################################################################################
69
70# 'nagios' contact definition
71define contact{
72	contact_name			nagios
73	alias				Nagios Admin
74	service_notification_period	24x7
75	host_notification_period	24x7
76	service_notification_options	w,u,c,r
77	host_notification_options	d,u,r
78	service_notification_commands	notify-by-email,notify-by-epager
79	host_notification_commands	host-notify-by-email,host-notify-by-epager
80	email				nagios-admin@localhost.localdomain
81	pager				pagenagios-admin@localhost.localdomain
82	}
83
84
85# 'jdoe' contact definition
86define contact{
87	contact_name			jdoe
88	alias				John Doe
89	service_notification_period	workhours
90	host_notification_period	workhours
91	service_notification_options	c,r
92	host_notification_options	d,r
93	service_notification_commands	notify-by-email
94	host_notification_commands	host-notify-by-email
95	email				jdoe@localhost.localdomain
96	}
97
98
99
100################################################################################
101# CONTACT GROUP DEFINITIONS
102################################################################################
103
104# 'novell-admins' contact group definition
105define contactgroup{
106	contactgroup_name	novell-admins
107	alias			Novell Administrators
108	members			nagios
109	}
110
111
112# 'nt-admins' contact group definition
113define contactgroup{
114	contactgroup_name	nt-admins
115	alias			NT Administrators
116	members			nagios,jdoe
117	}
118
119
120# 'linux-admins' contact group definition
121define contactgroup{
122	contactgroup_name	linux-admins
123	alias			Linux Administrators
124	members			nagios
125	}
126
127
128# 'switch-admins' contact group definition
129define contactgroup{
130	contactgroup_name	switch-admins
131	alias			Etherswitch Administrators
132	members			nagios
133	}
134
135
136# 'router-admins' contact group definition
137define contactgroup{
138	contactgroup_name	router-admins
139	alias			Router Technicians
140	members			nagios
141	}
142
143
144# 'printer-admins' contact group definition
145define contactgroup{
146	contactgroup_name	printer-admins
147	alias			Printer Administrators
148	members			nagios,jdoe
149	}
150
151
152
153################################################################################
154# HOST DEFINITIONS
155################################################################################
156
157# Generic host definition template
158define host{
159	name				generic-host	; The name of this host template - referenced in other host definitions, used for template recursion/resolution
160	notifications_enabled		1	; Host notifications are enabled
161	event_handler_enabled		1	; Host event handler is enabled
162	flap_detection_enabled		1	; Flap detection is enabled
163	process_perf_data		1	; Process performance data
164	retain_status_information	1	; Retain status information across program restarts
165	retain_nonstatus_information	1	; Retain non-status information across program restarts
166
167	register			0	; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
168	}
169
170# 'novell1' host definition
171define host{
172	use			generic-host		; Name of host template to use
173
174	host_name		novell1
175	alias			Novell Server #1
176	address			192.168.1.2
177	check_command		check-host-alive
178	max_check_attempts	10
179	check_period		24x7
180	notification_interval	120
181	notification_period	24x7
182	notification_options	d,u,r
183	contact_groups		novell-admins
184	}
185
186
187# 'novell2' host definition
188define host{
189	use			generic-host		; Name of host template to use
190
191	host_name		novell2
192	alias			Novell Server #2
193	address			192.168.1.3
194	check_command		check-host-alive
195	max_check_attempts	10
196	check_period		24x7
197	notification_interval	120
198	notification_period	24x7
199	notification_options	d,u,r
200	contact_groups		novell-admins
201	}
202
203
204# 'nt1' host definition
205define host{
206	use			generic-host		; Name of host template to use
207
208	host_name		nt1
209	alias			NT Server #1
210	address			192.168.1.4
211	check_command		check-host-alive
212	max_check_attempts	10
213	check_period		24x7
214	notification_interval	120
215	notification_period	24x7
216	notification_options	d,u,r
217	contact_groups		nt-admins
218	}
219
220
221# 'nt2' host definition
222define host{
223	use			generic-host		; Name of host template to use
224
225	host_name		nt2
226	alias			NT Server #2
227	address			192.168.1.5
228	check_command		check-host-alive
229	max_check_attempts	10
230	check_period		24x7
231	notification_interval	120
232	notification_period	24x7
233	notification_options	d,u,r
234	contact_groups		nt-admins
235	}
236
237
238# 'linux1' host definition
239define host{
240	use			generic-host		; Name of host template to use
241
242	host_name		linux1
243	alias			Linux Server #1
244	address			192.169.1.6
245	check_command		check-host-alive
246	max_check_attempts	10
247	check_period		24x7
248	notification_interval	480
249	notification_period	24x7
250	notification_options	d,u,r
251	contact_groups		linux-admins
252	}
253
254
255# 'linux2' host definition
256define host{
257	use			generic-host		; Name of host template to use
258
259	host_name		linux2
260	alias			Linux Server #2
261	address			192.168.0.2
262	parents			router1
263	check_command		check-host-alive
264	max_check_attempts	10
265	check_period		24x7
266	notification_interval	480
267	notification_period	24x7
268	notification_options	d,u,r
269	contact_groups		linux-admins
270	}
271
272
273# 'switch1' host definition
274define host{
275	use			generic-host		; Name of host template to use
276
277	host_name		switch1
278	alias			Switch #1
279	address			192.168.1.230
280	check_command		check-host-alive
281	max_check_attempts	10
282	check_period		24x7
283	notification_interval	60
284	notification_period	24x7
285	notification_options	d,u,r
286	contact_groups		switch-admins
287	}
288
289
290# 'switch2' host definition
291define host{
292	use			generic-host		; Name of host template to use
293
294	host_name		switch2
295	alias			Switch #2
296	address			192.168.1.231
297	check_command		check-host-alive
298	max_check_attempts	10
299	check_period		24x7
300	notification_interval	60
301	notification_period	24x7
302	notification_options	d,u,r
303	contact_groups		switch-admins
304	}
305
306
307# 'switch3' host definition
308define host{
309	use			generic-host		; Name of host template to use
310
311	host_name		switch3
312	alias			Switch #3
313	address			192.168.1.232
314	check_command		check-host-alive
315	max_check_attempts	10
316	check_period		24x7
317	notification_interval	60
318	notification_period	24x7
319	notification_options	d,u,r
320	contact_groups		switch-admins
321	}
322
323
324# 'switch4' host definition
325define host{
326	use			generic-host		; Name of host template to use
327
328	host_name		switch4
329	alias			Switch #4
330	address			192.168.1.233
331	check_command		check-host-alive
332	max_check_attempts	10
333	check_period		24x7
334	notification_interval	60
335	notification_period	24x7
336	notification_options	d,u,r
337	contact_groups		switch-admins
338	}
339
340
341# 'switch5' host definition
342define host{
343	use			generic-host		; Name of host template to use
344
345	host_name		switch5
346	alias			Switch #5
347	address			192.168.1.234
348	check_command		check-host-alive
349	max_check_attempts	10
350	check_period		24x7
351	notification_interval	60
352	notification_period	24x7
353	notification_options	d,u,r
354	contact_groups		switch-admins
355	}
356
357
358# 'router1' host definition
359define host{
360	use			generic-host		; Name of host template to use
361
362	host_name		router1
363	alias			Router #1
364	address			192.168.1.254
365	check_command		check-host-alive
366	max_check_attempts	20
367	check_period		24x7
368	notification_interval	60
369	notification_period	24x7
370	notification_options	d,u,r
371	contact_groups		router-admins
372	}
373
374
375# 'printer1' host definition
376define host{
377	use			generic-host		; Name of host template to use
378
379	host_name		printer1
380	alias			Printer #1
381	address			192.168.1.100
382	check_command		check-host-alive
383	max_check_attempts	10
384	check_period		24x7
385	notification_interval	480
386	notification_period	workhours
387	contact_groups		printer-admins
388	}
389
390
391# 'printer2' host definition
392define host{
393	use			generic-host		; Name of host template to use
394
395	host_name		printer2
396	alias			Printer #2
397	address			192.168.1.101
398	check_command		check-host-alive
399	max_check_attempts	10
400	check_period		24x7
401	notification_interval	480
402	notification_period	workhours
403	contact_groups		printer-admins
404	}
405
406
407# 'printer3' host definition
408define host{
409	use			generic-host		; Name of host template to use
410
411	host_name		printer3
412	alias			Printer #3
413	address			192.168.1.102
414	check_command		check-host-alive
415	max_check_attempts	10
416	check_period		24x7
417	notification_interval	480
418	notification_period	workhours
419	contact_groups		printer-admins
420	}
421
422
423
424################################################################################
425# HOST GROUP DEFINITIONS
426################################################################################
427
428# 'novell-servers' host group definition
429define hostgroup{
430	hostgroup_name	novell-servers
431	alias		Novell Servers
432	members		novell1,novell2
433	}
434
435
436# 'nt-servers' host group definition
437define hostgroup{
438	hostgroup_name	nt-servers
439	alias		NT Servers
440	members		nt1,nt2
441	}
442
443
444# 'linux-boxes' host group definition
445define hostgroup{
446	hostgroup_name	linux-boxes
447	alias		Linux Servers
448	members		linux1,linux2
449	}
450
451
452# 'switches' host group definition
453define hostgroup{
454	hostgroup_name	switches
455	alias		Switches
456	members		switch1,switch2,switch3,switch4,switch5
457	}
458
459
460# 'routers' host group definition
461define hostgroup{
462	hostgroup_name	routers
463	alias		Routers
464	members		router1
465	}
466
467
468# 'printers' host group definition
469define hostgroup{
470	hostgroup_name	printers
471	alias		Printers
472	members		printer1,printer2,printer3
473	}
474
475
476
477################################################################################
478# SERVICE DEFINITIONS
479################################################################################
480
481# Generic service definition template
482define service{
483	name				generic-service	; The 'name' of this service template, referenced in other service definitions
484	active_checks_enabled		1	; Active service checks are enabled
485	passive_checks_enabled		1	; Passive service checks are enabled/accepted
486	parallelize_check		1	; Active service checks should be parallelized (disabling this can lead to major performance problems)
487	obsess_over_service		1	; We should obsess over this service (if necessary)
488	check_freshness			0	; Default is to NOT check service 'freshness'
489	notifications_enabled		1	; Service notifications are enabled
490	event_handler_enabled		1	; Service event handler is enabled
491	flap_detection_enabled		1	; Flap detection is enabled
492	process_perf_data		1	; Process performance data
493	retain_status_information	1	; Retain status information across program restarts
494	retain_nonstatus_information	1	; Retain non-status information across program restarts
495
496	register			0	; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
497	}
498
499# Service definition
500define service{
501	use				generic-service		; Name of service template to use
502
503	host_name			novell1
504	service_description		SMTP
505	is_volatile			0
506	check_period			24x7
507	max_check_attempts		3
508	normal_check_interval		3
509	retry_check_interval		1
510	contact_groups			novell-admins
511	notification_interval		120
512	notification_period		24x7
513	notification_options		w,u,c,r
514	check_command			check_smtp
515	}
516
517
518# Service definition
519define service{
520	use				generic-service		; Name of service template to use
521
522	host_name			novell1
523	service_description		FTP
524	is_volatile			0
525	check_period			24x7
526	max_check_attempts		3
527	normal_check_interval		5
528	retry_check_interval		1
529	contact_groups			novell-admins
530	notification_interval		120
531	notification_period		24x7
532	notification_options		w,u,c,r
533	check_command			check_ftp
534	}
535
536
537# Service definition
538define service{
539	use				generic-service		; Name of service template to use
540
541	host_name			novell1
542	service_description		POP3
543	is_volatile			0
544	check_period			24x7
545	max_check_attempts		3
546	normal_check_interval		5
547	retry_check_interval		1
548	contact_groups			novell-admins
549	notification_interval		120
550	notification_period		24x7
551	notification_options		w,u,c,r
552	check_command			check_pop
553	}
554
555
556# Service definition
557define service{
558	use				generic-service		; Name of service template to use
559
560	host_name			novell1
561	service_description		PING
562	is_volatile			0
563	check_period			24x7
564	max_check_attempts		3
565	normal_check_interval		5
566	retry_check_interval		1
567	contact_groups			novell-admins
568	notification_interval		120
569	notification_period		24x7
570	notification_options		c,r
571	check_command			check_ping!100.0,20%!500.0,60%
572	}
573
574
575# Service definition
576define service{
577	use				generic-service		; Name of service template to use
578
579	host_name			novell2
580	service_description		SMTP
581	is_volatile			0
582	check_period			24x7
583	max_check_attempts		3
584	normal_check_interval		3
585	retry_check_interval		1
586	contact_groups			novell-admins
587	notification_interval		120
588	notification_period		24x7
589	notification_options		w,u,c,r
590	check_command			check_smtp
591	}
592
593
594# Service definition
595define service{
596	use				generic-service		; Name of service template to use
597
598	host_name			novell2
599	service_description		FTP
600	is_volatile			0
601	check_period			24x7
602	max_check_attempts		3
603	normal_check_interval		5
604	retry_check_interval		1
605	contact_groups			novell-admins
606	notification_interval		120
607	notification_period		24x7
608	notification_options		w,u,c,r
609	check_command			check_ftp
610	}
611
612
613# Service definition
614define service{
615	use				generic-service		; Name of service template to use
616
617	host_name			novell2
618	service_description		POP3
619	is_volatile			0
620	check_period			24x7
621	max_check_attempts		3
622	normal_check_interval		5
623	retry_check_interval		1
624	contact_groups			novell-admins
625	notification_interval		120
626	notification_period		24x7
627	notification_options		w,u,c,r
628	check_command			check_pop
629	}
630
631
632# Service definition
633define service{
634	use				generic-service		; Name of service template to use
635
636	host_name			novell2
637	service_description		PING
638	is_volatile			0
639	check_period			24x7
640	max_check_attempts		3
641	normal_check_interval		5
642	retry_check_interval		1
643	contact_groups			novell-admins
644	notification_interval		120
645	notification_period		24x7
646	notification_options		c,r
647	check_command			check_ping!100.0,20%!500.0,60%
648	}
649
650
651# Service definition
652define service{
653	use				generic-service		; Name of service template to use
654
655	host_name			nt1
656	service_description		PING
657	is_volatile			0
658	check_period			24x7
659	max_check_attempts		3
660	normal_check_interval		5
661	retry_check_interval		1
662	contact_groups			nt-admins
663	notification_interval		120
664	notification_period		24x7
665	notification_options		c,r
666	check_command			check_ping!100.0,20%!500.0,60%
667	}
668
669
670# Service definition
671define service{
672	use				generic-service		; Name of service template to use
673
674	host_name			nt1
675	service_description		FTP
676	is_volatile			0
677	check_period			24x7
678	max_check_attempts		3
679	normal_check_interval		5
680	retry_check_interval		1
681	contact_groups			nt-admins
682	notification_interval		120
683	notification_period		24x7
684	notification_options		w,u,c,r
685	check_command			check_ftp
686	}
687
688
689# Service definition
690define service{
691	use				generic-service		; Name of service template to use
692
693	host_name			nt1
694	service_description		HTTP
695	is_volatile			0
696	check_period			24x7
697	max_check_attempts		3
698	normal_check_interval		5
699	retry_check_interval		1
700	contact_groups			nt-admins
701	notification_interval		120
702	notification_period		24x7
703	notification_options		w,u,c,r
704	check_command			check_http
705	}
706
707
708# Service definition
709define service{
710	use				generic-service		; Name of service template to use
711
712	host_name			nt2
713	service_description		PING
714	is_volatile			0
715	check_period			24x7
716	max_check_attempts		3
717	normal_check_interval		5
718	retry_check_interval		1
719	contact_groups			nt-admins
720	notification_interval		120
721	notification_period		24x7
722	notification_options		c,r
723	check_command			check_ping!100.0,20%!500.0,60%
724	}
725
726
727# Service definition
728define service{
729	use				generic-service		; Name of service template to use
730
731	host_name			nt2
732	service_description		FTP
733	is_volatile			0
734	check_period			24x7
735	max_check_attempts		3
736	normal_check_interval		5
737	retry_check_interval		1
738	contact_groups			nt-admins
739	notification_interval		120
740	notification_period		24x7
741	notification_options		w,u,c,r
742	check_command			check_ftp
743	}
744
745
746# Service definition
747define service{
748	use				generic-service		; Name of service template to use
749
750	host_name			nt2
751	service_description		HTTP
752	is_volatile			0
753	check_period			24x7
754	max_check_attempts		3
755	normal_check_interval		5
756	retry_check_interval		1
757	contact_groups			nt-admins
758	notification_interval		120
759	notification_period		24x7
760	notification_options		w,u,c,r
761	check_command			check_http
762	}
763
764
765# Service definition
766define service{
767	use				generic-service		; Name of service template to use
768
769	host_name			linux1
770	service_description		PING
771	is_volatile			0
772	check_period			24x7
773	max_check_attempts		3
774	normal_check_interval		5
775	retry_check_interval		1
776	contact_groups			linux-admins
777	notification_interval		240
778	notification_period		24x7
779	notification_options		c,r
780	check_command			check_ping!100.0,20%!500.0,60%
781	}
782
783
784# Service definition
785define service{
786	use				generic-service		; Name of service template to use
787
788	host_name			linux1
789	service_description		HTTP
790	is_volatile			0
791	check_period			24x7
792	max_check_attempts		3
793	normal_check_interval		2
794	retry_check_interval		1
795	contact_groups			linux-admins
796	notification_interval		240
797	notification_period		24x7
798	notification_options		w,u,c,r
799	check_command			check_http
800	}
801
802
803# Service definition
804define service{
805	use				generic-service		; Name of service template to use
806
807	host_name			linux1
808	service_description		Current Users
809	is_volatile			0
810	check_period			24x7
811	max_check_attempts		3
812	normal_check_interval		5
813	retry_check_interval		2
814	contact_groups			linux-admins
815	notification_interval		240
816	notification_period		24x7
817	notification_options		w,u,c,r
818	check_command			check_local_users!75!150
819	}
820
821
822# Service definition
823define service{
824	use				generic-service		; Name of service template to use
825
826	host_name			linux1
827	service_description		Total Processes
828	is_volatile			0
829	check_period			24x7
830	max_check_attempts		3
831	normal_check_interval		5
832	retry_check_interval		2
833	contact_groups			linux-admins
834	notification_interval		240
835	notification_period		24x7
836	notification_options		w,u,c,r
837	check_command			check_local_procs!150!200!RSZDT
838	}
839
840
841# Service definition
842define service{
843	use				generic-service		; Name of service template to use
844
845	host_name			linux1
846	service_description		/dev/hda1 Free Space
847	is_volatile			0
848	check_period			24x7
849	max_check_attempts		3
850	normal_check_interval		5
851	retry_check_interval		1
852	contact_groups			linux-admins
853	notification_interval		120
854	notification_period		24x7
855	notification_options		w,u,c,r
856	check_command			check_local_disk!20%!10%!/dev/hda1
857	}
858
859
860# Service definition
861define service{
862	use				generic-service		; Name of service template to use
863
864	host_name			linux1
865	service_description		/dev/hdb2 Free Space
866	is_volatile			0
867	check_period			24x7
868	max_check_attempts		3
869	normal_check_interval		5
870	retry_check_interval		1
871	contact_groups			linux-admins
872	notification_interval		120
873	notification_period		24x7
874	notification_options		w,u,c,r
875	check_command			check_local_disk!20%!10%!/dev/hdb2
876	}
877
878
879# Service definition
880define service{
881	use				generic-service		; Name of service template to use
882
883	host_name			linux2
884	service_description		PING
885	is_volatile			0
886	check_period			24x7
887	max_check_attempts		3
888	normal_check_interval		5
889	retry_check_interval		1
890	contact_groups			linux-admins
891	notification_interval		240
892	notification_period		24x7
893	notification_options		c,r
894	check_command			check_ping!100.0,20%!500.0,60%
895	}
896
897
898# Service definition
899define service{
900	use				generic-service		; Name of service template to use
901
902	host_name			linux2
903	service_description		HTTP
904	is_volatile			0
905	check_period			24x7
906	max_check_attempts		3
907	normal_check_interval		2
908	retry_check_interval		1
909	contact_groups			linux-admins
910	notification_interval		240
911	notification_period		24x7
912	notification_options		w,u,c,r
913	check_command			check_http
914	}
915
916
917# Service definition
918define service{
919	use				generic-service		; Name of service template to use
920
921	host_name			linux2
922	service_description		Current Users
923	is_volatile			0
924	check_period			24x7
925	max_check_attempts		3
926	normal_check_interval		5
927	retry_check_interval		2
928	contact_groups			linux-admins
929	notification_interval		240
930	notification_period		24x7
931	notification_options		w,u,c,r
932	check_command			check_local_users!75!150
933	}
934
935
936# Service definition
937define service{
938	use				generic-service		; Name of service template to use
939
940	host_name			linux2
941	service_description		Total Processes
942	is_volatile			0
943	check_period			24x7
944	max_check_attempts		3
945	normal_check_interval		5
946	retry_check_interval		2
947	contact_groups			linux-admins
948	notification_interval		240
949	notification_period		24x7
950	notification_options		w,u,c,r
951	check_command			check_local_procs!150!200!RSZDT
952	}
953
954
955# Service definition
956define service{
957	use				generic-service		; Name of service template to use
958
959	host_name			linux2
960	service_description		/dev/hda1 Free Space
961	is_volatile			0
962	check_period			24x7
963	max_check_attempts		3
964	normal_check_interval		5
965	retry_check_interval		1
966	contact_groups			linux-admins
967	notification_interval		120
968	notification_period		24x7
969	notification_options		w,u,c,r
970	check_command			check_local_disk!20%!10%!/dev/hda1
971	}
972
973
974# Service definition
975define service{
976	use				generic-service		; Name of service template to use
977
978	host_name			linux2
979	service_description		/dev/hdb1 Free Space
980	is_volatile			0
981	check_period			24x7
982	max_check_attempts		3
983	normal_check_interval		5
984	retry_check_interval		1
985	contact_groups			linux-admins
986	notification_interval		120
987	notification_period		24x7
988	notification_options		w,u,c,r
989	check_command			check_local_disk!20%!10%!/dev/hdb1
990	}
991
992
993# Service definition
994define service{
995	use				generic-service		; Name of service template to use
996
997	host_name			switch1
998	service_description		PING
999	is_volatile			0
1000	check_period			24x7
1001	max_check_attempts		3
1002	normal_check_interval		5
1003	retry_check_interval		1
1004	contact_groups			switch-admins
1005	notification_interval		240
1006	notification_period		24x7
1007	notification_options		c,r
1008	check_command			check_ping!100.0,20%!500.0,60%
1009	}
1010
1011
1012# Service definition
1013define service{
1014	use				generic-service		; Name of service template to use
1015
1016	host_name			switch2
1017	service_description		PING
1018	is_volatile			0
1019	check_period			24x7
1020	max_check_attempts		3
1021	normal_check_interval		5
1022	retry_check_interval		1
1023	contact_groups			switch-admins
1024	notification_interval		240
1025	notification_period		24x7
1026	notification_options		c,r
1027	check_command			check_ping!100.0,20%!500.0,60%
1028	}
1029
1030
1031# Service definition
1032define service{
1033	use				generic-service		; Name of service template to use
1034
1035	host_name			switch3
1036	service_description		PING
1037	is_volatile			0
1038	check_period			24x7
1039	max_check_attempts		3
1040	normal_check_interval		5
1041	retry_check_interval		1
1042	contact_groups			switch-admins
1043	notification_interval		240
1044	notification_period		24x7
1045	notification_options		c,r
1046	check_command			check_ping!100.0,20%!500.0,60%
1047	}
1048
1049
1050# Service definition
1051define service{
1052	use				generic-service		; Name of service template to use
1053
1054	host_name			switch4
1055	service_description		PING
1056	is_volatile			0
1057	check_period			24x7
1058	max_check_attempts		3
1059	normal_check_interval		5
1060	retry_check_interval		1
1061	contact_groups			switch-admins
1062	notification_interval		240
1063	notification_period		24x7
1064	notification_options		c,r
1065	check_command			check_ping!100.0,20%!500.0,60%
1066	}
1067
1068
1069# Service definition
1070define service{
1071	use				generic-service		; Name of service template to use
1072
1073	host_name			switch5
1074	service_description		PING
1075	is_volatile			0
1076	check_period			24x7
1077	max_check_attempts		3
1078	normal_check_interval		5
1079	retry_check_interval		1
1080	contact_groups			switch-admins
1081	notification_interval		240
1082	notification_period		24x7
1083	notification_options		c,r
1084	check_command			check_ping!100.0,20%!500.0,60%
1085	}
1086
1087
1088# Service definition
1089define service{
1090	use				generic-service		; Name of service template to use
1091
1092	host_name			router1
1093	service_description		PING
1094	is_volatile			0
1095	check_period			24x7
1096	max_check_attempts		3
1097	normal_check_interval		5
1098	retry_check_interval		1
1099	contact_groups			router-admins
1100	notification_interval		240
1101	notification_period		24x7
1102	notification_options		c,r
1103	check_command			check_ping!100.0,20%!500.0,60%
1104	}
1105
1106
1107# Service definition
1108define service{
1109	use				generic-service		; Name of service template to use
1110
1111	host_name			printer1
1112	service_description		Printer Status
1113	is_volatile			0
1114	check_period			workhours
1115	max_check_attempts		4
1116	normal_check_interval		5
1117	retry_check_interval		1
1118	contact_groups			printer-admins
1119	notification_interval		960
1120	notification_period		workhours
1121	notification_options		c,r
1122	check_command			check_hpjd
1123	}
1124
1125
1126# Service definition
1127define service{
1128	use				generic-service		; Name of service template to use
1129
1130	host_name			printer1
1131	service_description		PING
1132	is_volatile			0
1133	check_period			workhours
1134	max_check_attempts		4
1135	normal_check_interval		5
1136	retry_check_interval		1
1137	contact_groups			printer-admins
1138	notification_interval		960
1139	notification_period		workhours
1140	notification_options		c,r
1141	check_command			check_ping!100.0,20%!500.0,60%
1142	}
1143
1144
1145# Service definition
1146define service{
1147	use				generic-service		; Name of service template to use
1148
1149	host_name			printer2
1150	service_description		Printer Status
1151	is_volatile			0
1152	check_period			workhours
1153	max_check_attempts		4
1154	normal_check_interval		5
1155	retry_check_interval		1
1156	contact_groups			printer-admins
1157	notification_interval		960
1158	notification_period		workhours
1159	check_command			check_hpjd
1160	}
1161
1162
1163# Service definition
1164define service{
1165	use				generic-service		; Name of service template to use
1166
1167	host_name			printer2
1168	service_description		PING
1169	is_volatile			0
1170	check_period			workhours
1171	max_check_attempts		4
1172	normal_check_interval		5
1173	retry_check_interval		1
1174	contact_groups			printer-admins
1175	notification_interval		960
1176	notification_period		workhours
1177	notification_options		c,r
1178	check_command			check_ping!100.0,20%!500.0,60%
1179	}
1180
1181
1182# Service definition
1183define service{
1184	use				generic-service		; Name of service template to use
1185
1186	host_name			printer3
1187	service_description		Printer Status
1188	is_volatile			0
1189	check_period			workhours
1190	max_check_attempts		4
1191	normal_check_interval		5
1192	retry_check_interval		1
1193	contact_groups			printer-admins
1194	notification_interval		960
1195	notification_period		workhours
1196	check_command			check_hpjd
1197	}
1198
1199
1200# Service definition
1201define service{
1202	use				generic-service		; Name of service template to use
1203
1204	host_name			printer3
1205	service_description		PING
1206	is_volatile			0
1207	check_period			workhours
1208	max_check_attempts		4
1209	normal_check_interval		5
1210	retry_check_interval		1
1211	contact_groups			printer-admins
1212	notification_interval		960
1213	notification_period		workhours
1214	notification_options		c,r
1215	check_command			check_ping!100.0,20%!500.0,60%
1216	}
1217
1218
1219
1220################################################################################
1221# SERVICE DEPENDENCY DEFINITIONS
1222################################################################################
1223
1224# Servicedependency definition
1225define servicedependency{
1226	host_name			nt1
1227	service_description		IIS Process
1228	dependent_host_name		nt1
1229	dependent_service_description	Website #1
1230	execution_failure_criteria	n	; These are the criteria for which check execution will be suppressed
1231	notification_failure_criteria	w,u,c	; These are the criteria for which notifications will be suppressed
1232	}
1233
1234
1235# Servicedependency definition
1236define servicedependency{
1237	host_name			nt1
1238	service_description		IIS Process
1239	dependent_host_name		nt1
1240	dependent_service_description	Website #2
1241	execution_failure_criteria	w,u,c	; These are the criteria for which check execution will be suppressed
1242	notification_failure_criteria	w,u,c	; These are the criteria for which notifications will be suppressed
1243	}
1244
1245
1246
1247################################################################################
1248# HOST DEPENDENCY DEFINITIONS
1249################################################################################
1250
1251
1252
1253# Hostdependency definition
1254define hostdependency{
1255	host_name			nt1
1256	dependent_host_name		nt2
1257	notification_failure_criteria	d	; These are the criteria for which notifications will be suppressed
1258	}
1259
1260
1261
1262################################################################################
1263# SERVICE ESCALATION DEFINITIONS
1264################################################################################
1265
1266# Serviceescalation definition
1267define serviceescalation{
1268	host_name		linux1
1269	service_description		PING
1270	first_notification		2
1271	last_notification		6
1272	contact_groups			linux-admins,novell-admins
1273	notification_interval		0
1274	}
1275
1276
1277# Serviceescalation definition
1278define serviceescalation{
1279	host_name		linux1
1280	service_description		Current Users
1281	first_notification		5
1282	last_notification		0
1283	contact_groups			linux-admins,novell-admins
1284	notification_interval		0
1285	}
1286
1287
1288
1289################################################################################
1290# HOST ESCALATION DEFINITIONS
1291################################################################################
1292
1293# Host 'nt1' escalation definition
1294define hostescalation{
1295	host_name			nt1
1296	first_notification		2
1297	last_notification		5
1298	contact_groups			novell-admins,nt-admins
1299	notification_interval		10
1300	}
1301
1302
1303