| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Nagios.Config.EDSL.Types
Synopsis
- data Host = Host {
- hostUse :: Maybe Host
- hostName :: String
- hostHostName :: Maybe String
- hostAlias :: Maybe String
- hostDisplayName :: Maybe String
- hostAddress :: Maybe String
- hostParents :: [Host]
- hostGroups :: [HostGroup]
- hostCheckCommand :: Maybe CommandApp
- hostMaxCheckAttempts :: Maybe Int
- hostCheckInterval :: Maybe Int
- hostRetryInterval :: Maybe Int
- hostNotes :: Maybe String
- hostCheckPeriod :: Maybe TimePeriod
- hostEventHandlerEnabled :: Maybe Bool
- hostFlapDetectionEnabled :: Maybe Bool
- hostProcessPerfData :: Maybe Bool
- hostRetainStatusInformation :: Maybe Bool
- hostRetainNonStatusInformation :: Maybe Bool
- hostContactGroups :: [ContactGroup]
- hostNotificationInterval :: Maybe Int
- hostNotificationPeriod :: Maybe TimePeriod
- hostNotificationOptions :: [HostNotificationOption]
- hostNotificationsEnabled :: Maybe Bool
- hostRegister :: Maybe Bool
- host :: String -> Host
- data HostGroup = HostGroup {}
- hostgroup :: String -> String -> HostGroup
- data Service = Service {
- serviceUse :: Maybe Service
- serviceName :: String
- serviceHosts :: [Host]
- serviceHostGroups :: [HostGroup]
- serviceDescription :: Maybe String
- serviceDisplayName :: Maybe String
- serviceIsVolatile :: Maybe Bool
- serviceCheckCommand :: Maybe CommandApp
- serviceInitialState :: Maybe ServiceState
- serviceMaxCheckAttempts :: Maybe Int
- serviceCheckInterval :: Maybe Int
- serviceRetryInterval :: Maybe Int
- serviceActiveChecksEnabled :: Maybe Bool
- servicePassiveChecksEnabled :: Maybe Bool
- serviceParallelizeCheck :: Maybe Bool
- serviceCheckPeriod :: Maybe TimePeriod
- serviceObsessOverService :: Maybe Bool
- serviceCheckFreshness :: Maybe Bool
- serviceFreshnessThreshold :: Maybe Int
- serviceEventHandler :: Maybe CommandApp
- serviceEventHandlerEnabled :: Maybe Bool
- serviceFlapDetectionEnabled :: Maybe Bool
- serviceProcessPerfData :: Maybe Bool
- serviceRetainStatusInformation :: Maybe Bool
- serviceRetainNonStatusInformation :: Maybe Bool
- serviceNotificationInterval :: Maybe Int
- serviceNotificationPeriod :: Maybe TimePeriod
- serviceNotificationOptions :: [ServiceNotificationOption]
- serviceNotificationsEnabled :: Maybe Bool
- serviceContacts :: [Contact]
- serviceContactGroups :: [ContactGroup]
- serviceNotes :: Maybe String
- serviceRegister :: Maybe Bool
- service :: String -> Service
- data ServiceGroup = ServiceGroup {}
- data Command = Command {}
- data CommandApp = CommandApp Command [String]
- apply :: Command -> [String] -> CommandApp
- command :: CommandApp -> Command
- data TimePeriod = TimePeriod {}
- data Contact = Contact {
- contactUse :: Maybe Contact
- contactName :: String
- contactAlias :: Maybe String
- contactGroups :: [ContactGroup]
- contactHostNotificationsEnabled :: Maybe Bool
- contactServiceNotificationsEnabled :: Maybe Bool
- contactHostNotificationPeriod :: Maybe TimePeriod
- contactServiceNotificationPeriod :: Maybe TimePeriod
- contactHostNotificationOptions :: [HostNotificationOption]
- contactServiceNotificationOptions :: [ServiceNotificationOption]
- contactHostNotificationCommands :: Maybe CommandApp
- contactServiceNotificationCommands :: Maybe CommandApp
- contactEmail :: Maybe String
- contactCanSubmitCommands :: Maybe Bool
- contactRetainStatusInformation :: Maybe Bool
- contactRetainNonStatusInformation :: Maybe Bool
- contactRegister :: Maybe Bool
- contact :: String -> Contact
- data ContactGroup = ContactGroup {}
- contactgroup :: String -> String -> ContactGroup
- data ServiceState
- data ServiceNotificationOption
- serviceNotificationAlways :: [ServiceNotificationOption]
- data HostNotificationOption
- hostNotificationAlways :: [HostNotificationOption]
- data Weekday a
Documentation
A host definition is used to define a physical server, workstation, device, etc. that resides on your network.
Constructors
A host gruop definition is used to gruop one or more hosts together for simplifying configuration, or display purposes.
Constructors
| HostGroup | |
Fields | |
hostgroup :: String -> String -> HostGroup Source #
Create a new host group, with a name and an alias
A service definition is used to identify a "service" that runs on a host.
Constructors
data ServiceGroup Source #
A service group definition is used to group on ore more services together.
Constructors
| ServiceGroup | |
Fields | |
Instances
| Show ServiceGroup Source # | |
Defined in Nagios.Config.EDSL.Types Methods showsPrec :: Int -> ServiceGroup -> ShowS # show :: ServiceGroup -> String # showList :: [ServiceGroup] -> ShowS # | |
| Serializable ServiceGroup Source # | |
Defined in Nagios.Config.EDSL.Serialize Methods serialize :: ServiceGroup -> [Field] Source # dependencies :: ServiceGroup -> [Object] Source # | |
| ObjectType ServiceGroup Source # | |
Defined in Nagios.Config.EDSL.Serialize Methods objectType :: ServiceGroup -> String Source # objectSame :: ServiceGroup -> ServiceGroup -> Bool Source # | |
A command definition defines a command.
Constructors
| Command | |
Fields
| |
data CommandApp Source #
The application of a command.
Constructors
| CommandApp Command [String] |
Instances
| Show CommandApp Source # | |
Defined in Nagios.Config.EDSL.Types Methods showsPrec :: Int -> CommandApp -> ShowS # show :: CommandApp -> String # showList :: [CommandApp] -> ShowS # | |
| Encodable CommandApp Source # | |
Defined in Nagios.Config.EDSL.Serialize Methods encode :: CommandApp -> Maybe String Source # encodeList :: [CommandApp] -> Maybe String Source # | |
command :: CommandApp -> Command Source #
Get the original command definition from a command
data TimePeriod Source #
A time period is a list of times during various days.
Constructors
| TimePeriod | |
Fields | |
Instances
| Show TimePeriod Source # | |
Defined in Nagios.Config.EDSL.Types Methods showsPrec :: Int -> TimePeriod -> ShowS # show :: TimePeriod -> String # showList :: [TimePeriod] -> ShowS # | |
| Encodable TimePeriod Source # | |
Defined in Nagios.Config.EDSL.Serialize Methods encode :: TimePeriod -> Maybe String Source # encodeList :: [TimePeriod] -> Maybe String Source # | |
| Serializable TimePeriod Source # | |
Defined in Nagios.Config.EDSL.Serialize | |
| ObjectType TimePeriod Source # | |
Defined in Nagios.Config.EDSL.Serialize Methods objectType :: TimePeriod -> String Source # objectSame :: TimePeriod -> TimePeriod -> Bool Source # | |
A contact definition is used to identify someone who should be contacted in the event of a problem on your network.
Constructors
data ContactGroup Source #
A contact group definition is used to group one ore more contacts together.
Constructors
| ContactGroup | |
Fields | |
Instances
| Show ContactGroup Source # | |
Defined in Nagios.Config.EDSL.Types Methods showsPrec :: Int -> ContactGroup -> ShowS # show :: ContactGroup -> String # showList :: [ContactGroup] -> ShowS # | |
| Encodable ContactGroup Source # | |
Defined in Nagios.Config.EDSL.Serialize Methods encode :: ContactGroup -> Maybe String Source # encodeList :: [ContactGroup] -> Maybe String Source # | |
| Serializable ContactGroup Source # | |
Defined in Nagios.Config.EDSL.Serialize Methods serialize :: ContactGroup -> [Field] Source # dependencies :: ContactGroup -> [Object] Source # | |
| ObjectType ContactGroup Source # | |
Defined in Nagios.Config.EDSL.Serialize Methods objectType :: ContactGroup -> String Source # objectSame :: ContactGroup -> ContactGroup -> Bool Source # | |
contactgroup :: String -> String -> ContactGroup Source #
Create a new contact group with the specified name and alias
data ServiceState Source #
Instances
| Show ServiceState Source # | |
Defined in Nagios.Config.EDSL.Types Methods showsPrec :: Int -> ServiceState -> ShowS # show :: ServiceState -> String # showList :: [ServiceState] -> ShowS # | |
| Encodable ServiceState Source # | |
Defined in Nagios.Config.EDSL.Serialize Methods encode :: ServiceState -> Maybe String Source # encodeList :: [ServiceState] -> Maybe String Source # | |
data ServiceNotificationOption Source #
Constructors
| ServiceNotificationWarning | |
| ServiceNotificationUnknown | |
| ServiceNotificationCritical | |
| ServiceNotificationRecovery | |
| ServiceNotificationFlapping | |
| ServiceNotificationScheduledDowntime |
Instances
| Show ServiceNotificationOption Source # | |
Defined in Nagios.Config.EDSL.Types Methods showsPrec :: Int -> ServiceNotificationOption -> ShowS # show :: ServiceNotificationOption -> String # showList :: [ServiceNotificationOption] -> ShowS # | |
| Encodable ServiceNotificationOption Source # | |
Defined in Nagios.Config.EDSL.Serialize Methods encode :: ServiceNotificationOption -> Maybe String Source # encodeList :: [ServiceNotificationOption] -> Maybe String Source # | |
data HostNotificationOption Source #
Constructors
| HostNotificationDown | |
| HostNotificationUnreachable | |
| HostNotificationRecovery | |
| HostNotificationFlapping | |
| HostNotificationScheduledDowntime |
Instances
| Show HostNotificationOption Source # | |
Defined in Nagios.Config.EDSL.Types Methods showsPrec :: Int -> HostNotificationOption -> ShowS # show :: HostNotificationOption -> String # showList :: [HostNotificationOption] -> ShowS # | |
| Encodable HostNotificationOption Source # | |
Defined in Nagios.Config.EDSL.Serialize Methods encode :: HostNotificationOption -> Maybe String Source # encodeList :: [HostNotificationOption] -> Maybe String Source # | |