nagios-config-0.1.0.0: EDSL to specify Nagios configuration files.

Safe HaskellSafe
LanguageHaskell2010

Nagios.Config.EDSL.Types

Synopsis

Documentation

data Host Source #

A host definition is used to define a physical server, workstation, device, etc. that resides on your network.

Instances
Show Host Source # 
Instance details

Defined in Nagios.Config.EDSL.Types

Methods

showsPrec :: Int -> Host -> ShowS #

show :: Host -> String #

showList :: [Host] -> ShowS #

Encodable Host Source # 
Instance details

Defined in Nagios.Config.EDSL.Serialize

Serializable Host Source # 
Instance details

Defined in Nagios.Config.EDSL.Serialize

ObjectType Host Source # 
Instance details

Defined in Nagios.Config.EDSL.Serialize

host :: String -> Host Source #

Create a new host with a specific name

data HostGroup Source #

A host gruop definition is used to gruop one or more hosts together for simplifying configuration, or display purposes.

hostgroup :: String -> String -> HostGroup Source #

Create a new host group, with a name and an alias

data Service Source #

A service definition is used to identify a "service" that runs on a host.

service :: String -> Service Source #

Create a new service with a specified name.

data Command Source #

A command definition defines a command.

Constructors

Command 

data CommandApp Source #

The application of a command.

Constructors

CommandApp Command [String] 

apply :: Command -> [String] -> CommandApp Source #

Apply an existing command.

command :: CommandApp -> Command Source #

Get the original command definition from a command

data Contact Source #

A contact definition is used to identify someone who should be contacted in the event of a problem on your network.

contact :: String -> Contact Source #

Create a new contact with the specified name

contactgroup :: String -> String -> ContactGroup Source #

Create a new contact group with the specified name and alias

data Weekday a Source #

Constructors

Monday a 
Tuesday a 
Wednesday a 
Thursday a 
Friday a 
Saterday a 
Sunday a 
Instances
Show a => Show (Weekday a) Source # 
Instance details

Defined in Nagios.Config.EDSL.Types

Methods

showsPrec :: Int -> Weekday a -> ShowS #

show :: Weekday a -> String #

showList :: [Weekday a] -> ShowS #

Encodable v => Serializable (Weekday v) Source # 
Instance details

Defined in Nagios.Config.EDSL.Serialize