Skip to content

Instantly share code, notes, and snippets.

@remie
Created June 22, 2018 12:09
Show Gist options
  • Save remie/39d734d3a0e0ba95d63d793502e07b44 to your computer and use it in GitHub Desktop.
Save remie/39d734d3a0e0ba95d63d793502e07b44 to your computer and use it in GitHub Desktop.
import { Service, ServiceObj } from '@remie/nagios-cli';
@Service({
name: 'generic-service',
service_description: 'Generic Service',
active_checks_enabled: true,
passive_checks_enabled: true,
obsess_over_service: true,
check_freshness: false,
notifications_enabled: true,
event_handler_enabled: true,
flap_detection_enabled: true,
process_perf_data: true,
retain_status_information: true,
retain_nonstatus_information: true,
is_volatile: true,
check_period: '24x7',
check_interval: 10,
max_check_attempts: 3,
notification_options: 'w,u,c,r',
notification_interval: 60,
notification_period: '24x7',
retry_interval: 2,
register: false
})
export class BaseService extends ServiceObj {}
export default new BaseService();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment