]> git.pld-linux.org Git - packages/vim.git/blame - nagios.vim
- updated to 7.1.100
[packages/vim.git] / nagios.vim
CommitLineData
781ed89b
ER
1" Vim syntax file
2" Filename: nagios.vim
3" Language: Nagios template object configuration file
4" Maintainer: Lance Albertson <ramereth@gentoo.org>
5" Orginal Author: Ava Arachne Jarvis <ajar@katanalynx.dyndns.org>
6" URL: http://dev.gentoo.org/~ramereth/vim/syntax/nagios.vim
7" * previous URL appears to be dead
8" Version: 0.1
9" Last Change: 2005 Jan 4
10
11
12if !exists("main_syntax")
13 if version < 600
14 syntax clear
15 elseif exists("b:current_syntax")
16 finish
17 endif
18
19 let main_syntax = 'nagios'
20endif
21
22if version >= 600
23 setlocal iskeyword=_,-,A-Z,a-z,48-57
24else
25endif
26
27syn match nagiosComment '#.*'
28
29syn match nagiosConstant '\<[0-9]\+%\?\>'
30syn match nagiosConstant '\<[a-z]\>'
31
32syn region nagiosString start=+"+ end=+"+ contains=nagiosMacro
33syn region nagiosString start=+'+ end=+'+ contains=nagiosMacro
34
35syn keyword nagiosSpecial name register use
36
37syn match nagiosDef 'define[ \t]\+\(\(host\|service\)extinfo\|host\|service\|timeperiod\|contact\|command\)'
38syn match nagiosDef 'define[ \t]\+\(host\|contact\|service\)group'
39syn match nagiosDef 'define[ \t]\+\(service\|host\)dependency'
40syn match nagiosDef 'define[ \t]\+\(service\|host\|hostgroup\)escalation'
41
42syn match nagiosMacro '\$CONTACT\(NAME\|ALIAS\|EMAIL\|PAGER\)\$'
43syn match nagiosMacro '\$HOST\(NAME\|ALIAS\|ADDRESS\|STATE\|OUTPUT\|PERFDATA\|STATETYPE\|EXECUTIONTIME\)\$'
44syn match nagiosMacro '\$\(ARG\|USER\)\([1-9]\|[1-2][0-9]\|3[0-2]\)\$'
45syn match nagiosMacro '\$SERVICE\(DESC\|STATE\|OUTPUT\|PERFDATA\|LATENCY\|EXECUTIONTIME\|STATETYPE\)\$'
46syn match nagiosMacro '\$\(OUTPUT\|PERFDATA\|EXECUTIONTIME\|LATENCY\)\$'
47syn match nagiosMacro '\$NOTIFICATION\(TYPE\|NUMBER\)\$'
48syn match nagiosMacro '\$\(\(SHORT\|LONG\)\?DATETIME\|DATE\|TIME\|TIMET\)\$'
89eb3416 49syn match nagiosMacro '\$LASTSTATECHANGE\$'
781ed89b
ER
50syn match nagiosMacro '\$ADMIN\(EMAIL\|PAGER\)\$'
51syn match nagiosMacro '\$\(SERVICE\|HOST\)ATTEMPT\$'
52syn match nagiosMacro '\$LAST\(HOST\|SERVICE\)CHECK\$'
53
54syn region nagiosDefBody start='{' end='}' contains=nagiosDirective,nagiosMacro,nagiosConstant,nagiosString,nagiosSpecial transparent
55
56syn keyword nagiosDirective active_checks_enabled address alias check_command
57syn keyword nagiosDirective check_freshness check_period checks_enabled check_interval
58syn keyword nagiosDirective command_line command_name
59syn keyword nagiosDirective contact_groups contact_name contactgroup_name
60syn keyword nagiosDirective dependent_host_name dependent_service_description
61syn keyword nagiosDirective email event_handler event_handler_enabled
62syn keyword nagiosDirective execution_failure_criteria first_notification execution_failure_options
63syn keyword nagiosDirective flap_detection_enabled freshness_threshold failure_prediction_enabled
64syn keyword nagiosDirective friday high_flap_threshold host_name
65syn keyword nagiosDirective host_notification_commands
66syn keyword nagiosDirective host_notification_options
22659953 67syn keyword nagiosDirective host_notification_period hostgroup_name servicegroup_name hostgroups servicegroups
781ed89b
ER
68syn keyword nagiosDirective is_volatile last_notification
69syn keyword nagiosDirective low_flap_threshold max_check_attempts
70syn keyword nagiosDirective members monday normal_check_interval
71syn keyword nagiosDirective notification_failure_criteria notification_failure_options
72syn keyword nagiosDirective notification_interval notification_options
73syn keyword nagiosDirective notification_period notifications_enabled
74syn keyword nagiosDirective obsess_over_service pager parallelize_check
75syn keyword nagiosDirective parents passive_checks_enabled
76syn keyword nagiosDirective process_perf_data retain_nonstatus_information
77syn keyword nagiosDirective retain_status_information retry_check_interval
78syn keyword nagiosDirective saturday service_description
79syn keyword nagiosDirective service_notification_commands
80syn keyword nagiosDirective service_notification_options
81syn keyword nagiosDirective service_notification_period stalking_options
82syn keyword nagiosDirective sunday thursday timeperiod_name tuesday wednesday
83syn keyword nagiosDirective icon_image icon_image_alt vrml_image statusmap_image
84syn keyword nagiosDirective notes notes_url 2d_coords 3d_coords obsess_over_host inherits_parent
85
86hi link nagiosComment Comment
87hi link nagiosConstant Number
88hi link nagiosDef Statement
89hi link nagiosDirective Define
90hi link nagiosMacro Macro
91hi link nagiosString String
92hi link nagiosSpecial Special
This page took 2.013852 seconds and 4 git commands to generate.