Skip to content

Instantly share code, notes, and snippets.

@remie
Last active June 21, 2018 20:41
Show Gist options
  • Save remie/61e4e127bde16f2df859182e7079691b to your computer and use it in GitHub Desktop.
Save remie/61e4e127bde16f2df859182e7079691b to your computer and use it in GitHub Desktop.
import { default as Localhost } from './hosts/Localhost';
import { default as DefaultTimeperiod } from './timeperiods/DefaultTimeperiod';
import { Nagios, Include, NagiosCfg, HostObj, HostGroupObj } from '@remie/nagios-cli';
// Nagios configuration, CGI & Resources
import { cgi } from './cgi.cfg';
import { nagios as cfg } from './nagios.cfg';
import { resources } from './resources.cfg';
@Include(DefaultTimeperiod)
@Nagios(cfg, cgi, resources)
export default class DefaultNagiosConfiguration extends NagiosCfg {
hosts: Array<HostObj|HostGroupObj> = [ Localhost ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment