Skip to content

Instantly share code, notes, and snippets.

@stiletto
Last active October 11, 2015 11:30
Show Gist options
  • Save stiletto/dd3155454a89a09599ed to your computer and use it in GitHub Desktop.
Save stiletto/dd3155454a89a09599ed to your computer and use it in GitHub Desktop.
Nagios syntax highlighting for mc/mcedit
#
# Nagios syntax highlighting
#
# Author: Stiletto
# Version: 11 Oct, 2015
#
wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-*0123456789
context default
keyword whole define brightred
keyword whole command brightgreen
keyword whole service brightgreen
keyword whole host brightgreen
keyword whole hostgroup brightgreen
keyword whole contact brightgreen
keyword whole contactgroup brightgreen
keyword whole name yellow
keyword whole register yellow
keyword whole use yellow
keyword whole active_checks_enabled yellow
keyword whole address yellow
keyword whole alias yellow
keyword whole check_command yellow
keyword whole check_freshness yellow
keyword whole check_period yellow
keyword whole checks_enabled yellow
keyword whole check_interval yellow
keyword whole retry_interval yellow
keyword whole command_line yellow
keyword whole command_name yellow
keyword whole contact_groups yellow
keyword whole contact_name yellow
keyword whole contactgroup_name yellow
keyword whole dependent_host_name yellow
keyword whole dependent_service_description yellow
keyword whole email yellow
keyword whole event_handler yellow
keyword whole event_handler_enabled yellow
keyword whole execution_failure_criteria yellow
keyword whole first_notification yellow
keyword whole execution_failure_options yellow
keyword whole flap_detection_enabled yellow
keyword whole freshness_threshold yellow
keyword whole failure_prediction_enabled yellow
keyword whole friday yellow
keyword whole high_flap_threshold yellow
keyword whole host_name yellow
keyword whole host_notification_commands yellow
keyword whole host_notification_options yellow
keyword whole host_notification_period yellow
keyword whole hostgroup_name yellow
keyword whole servicegroup_name yellow
keyword whole hostgroups yellow
keyword whole servicegroups yellow
keyword whole is_volatile yellow
keyword whole last_notification yellow
keyword whole low_flap_threshold yellow
keyword whole max_check_attempts yellow
keyword whole members yellow
keyword whole monday yellow
keyword whole normal_check_interval yellow
keyword whole notification_failure_criteria yellow
keyword whole notification_failure_options yellow
keyword whole notification_interval yellow
keyword whole notification_options yellow
keyword whole notification_period yellow
keyword whole notifications_enabled yellow
keyword whole obsess_over_service yellow
keyword whole pager yellow
keyword whole parallelize_check yellow
keyword whole parents yellow
keyword whole passive_checks_enabled yellow
keyword whole process_perf_data yellow
keyword whole retain_nonstatus_information yellow
keyword whole retain_status_information yellow
keyword whole retry_check_interval yellow
keyword whole saturday yellow
keyword whole service_description yellow
keyword whole service_notification_commands yellow
keyword whole service_notification_options yellow
keyword whole service_notification_period yellow
keyword whole stalking_options yellow
keyword whole sunday yellow
keyword whole thursday yellow
keyword whole timeperiod_name yellow
keyword whole tuesday yellow
keyword whole wednesday yellow
keyword whole icon_image yellow
keyword whole icon_image_alt yellow
keyword whole vrml_image yellow
keyword whole statusmap_image yellow
keyword whole notes yellow
keyword whole notes_url yellow
keyword whole 2d_coords yellow
keyword whole 3d_coords yellow
keyword whole obsess_over_host yellow
keyword whole inherits_parent yellow
keyword whole can_submit_commands yellow
keyword whole host_notifications_enabled yellow
keyword whole service_notifications_enabled yellow
keyword { brightcyan
keyword } brightcyan
keyword whole $*$ brightgreen
keyword :\[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_-*0123456789\] white
keyword &\[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_-*0123456789\] white
# Comments
context ; \n brown
spellcheck
context # \n brown
spellcheck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment