UltraEdit Word File for Nagios Configuration Files
If you use UltraEdit to edit Nagios config files then this wordfile for UltraEdit will help make the files appear in a much clearer manner. The config files will look like:
define hostgroup {
|
; my VOIP ATA Group
|
|
hostgroup_name
|
ata
|
alias
|
VOIP ATAs
|
members
|
ta612v
|
}
|
|
instead of:
define hostgroup {
; my VOIP ATA Group
hostgroup_name ata
alias VOIP ATAs
members ta612v
}
This is a first draft of the file, therefore it may not have every possible nagios keyword in it, but its a good start.
You can download it or copy/paste it directly from below:
/L12"Nagios" Line Comment = # Line Comment Alt = ; Line Comment Preceding Chars = [~[^]^^$/\(] Escape Char = \ File Extensions = cfg
/Delimiters = ~!@$%^&*()+=|\/{}[]:"<> ,.?\`/
/Regexp Type = Perl
/Function String = "^[ \t]*define[ \t]+([\w_\d]+)[#]"
/Function String 1 = "^[ \t]*define[ \t]+([\w_\d]+)[ \t\{\r\n]"
/Function String 2 = "^[ \t]*define[ \t]+([\w_\d]+)[ \t]*\(.*\)[ \t\{\r\n#]"
/Function String 3 = "^[ \t]*([\w_\d]+):[ \t\r\n]"
/Indent Strings = "{"
/Unindent Strings = "}"
/Open Brace Strings = "{" "(" "["
/Close Brace Strings = "}" ")" "]"
/Open Fold Strings = "{"
/Close Fold Strings = "}"
/C1"Keywords" STYLE_KEYWORD
active_checks_enabled
address
alias
check_command
check_freshness
check_period
contactgroup_name
contact_groups
contact_name
define
;define
#define
dependent_host_name
dependent_service_description
email
event_handler
event_handler_enabled
execution_failure_criteria
flap_detection_enabled
freshness_threshold
friday
hostgroup_name
host_name
host_notification_commands
host_notification_options
host_notification_period
inherits_parent
is_volatile
max_check_attempts
members
monday
name
normal_check_interval
notification_failure_criteria
notification_interval
notification_options
notification_period
notifications_enabled
obsess_over_host
obsess_over_service
parallelize_check
parents
passive_checks_enabled
process_perf_data
register
retain_nonstatus_information
retain_status_information
retry_check_interval
saturday
service_description
servicegroup_name
servicegroups
service_notification_commands
service_notification_options
service_notification_period
sunday
thursday
timeperiod_name
tuesday
use
wednesday
/C2"Functions" STYLE_FUNCTION
define
/C3"Items" STYLE_METHOD
contact
contactgroup
host
hostgroup
service
servicedependency
servicegroup
timeperiod
/C4"Operators" STYLE_OPERATOR
!
&
*
+
-
// /
<
=
>
^
and
eq
ge gt
le lt
m
ne not
or
q qq qw qx
s
tr
x xor
y
|
~