nagios

package
v0.0.0-...-3ac215c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2016 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcknowledgeHostProblem

func AcknowledgeHostProblem(host_name string, sticky bool, notify bool, persistent bool, author string, comment string) lvst.CommandOpFunc

AcknowledgeHostProblem is generated from the nagios external command definition: Desfinition: ACKNOWLEDGE_HOST_PROBLEM;<host_name>;<sticky>;<notify>;<persistent>;<author>;<comment> Description:

Allows you to acknowledge the current problem for the specified host.  By acknowledging the current problem, future notifications (for the same host state) are disabled.  If the "sticky" option is set to two (2), the acknowledgement will remain until the host returns to an UP state.  Otherwise the acknowledgement will automatically be removed when the host changes state.  If the "notify" option is set to one (1), a notification will be sent out to contacts indicating that the current host problem has been acknowledged.  If the "persistent" option is set to one (1), the comment associated with the acknowledgement will survive across restarts of the Nagios process.  If not, the comment will be deleted the next time Nagios restarts.

func AcknowledgeSvcProblem

func AcknowledgeSvcProblem(host_name string, service_description string, sticky bool, notify bool, persistent bool, author string, comment string) lvst.CommandOpFunc

AcknowledgeSvcProblem is generated from the nagios external command definition: Desfinition: ACKNOWLEDGE_SVC_PROBLEM;<host_name>;<service_description>;<sticky>;<notify>;<persistent>;<author>;<comment> Description:

Allows you to acknowledge the current problem for the specified service.  By acknowledging the current problem, future notifications (for the same servicestate) are disabled.  If the "sticky" option is set to two (2), the acknowledgement will remain until the service returns to an OK state.  Otherwise the acknowledgement will automatically be removed when the service changes state.  If the "notify" option is set to one (1), a notification will be sent out to contacts indicating that the current service problem has been acknowledged.  If the "persistent" option is set to one (1), the comment associated with the acknowledgement will survive across restarts of the Nagios process.  If not, the comment will be deleted the next time Nagios restarts.

func AddHostComment

func AddHostComment(host_name string, persistent bool, author string, comment string) lvst.CommandOpFunc

AddHostComment is generated from the nagios external command definition: Desfinition: ADD_HOST_COMMENT;<host_name>;<persistent>;<author>;<comment> Description:

Adds a comment to a particular host.  If the "persistent" field is set to zero (0), the comment will be deleted the next time Nagios is restarted.  Otherwise, the comment will persist across program restarts until it is deleted manually.

func AddSvcComment

func AddSvcComment(host_name string, service_description string, persistent bool, author string, comment string) lvst.CommandOpFunc

AddSvcComment is generated from the nagios external command definition: Desfinition: ADD_SVC_COMMENT;<host_name>;<service_description>;<persistent>;<author>;<comment> Description:

Adds a comment to a particular service.  If the "persistent" field is set to zero (0), the comment will be deleted the next time Nagios is restarted.  Otherwise, the comment will persist across program restarts until it is deleted manually.

func Author

func Author(c *lvst.Command, s string)

func ChangeContactHostNotificationTimeperiod

func ChangeContactHostNotificationTimeperiod(contact_name string, notification_timeperiod string) lvst.CommandOpFunc

ChangeContactHostNotificationTimeperiod is generated from the nagios external command definition: Desfinition: CHANGE_CONTACT_HOST_NOTIFICATION_TIMEPERIOD;<contact_name>;<notification_timeperiod> Description:

Changes the host notification timeperiod for a particular contact to what is specified by the "notification_timeperiod" option.  The "notification_timeperiod" option should be the short name of the timeperiod that is to be used as the contact's host notification timeperiod.  The timeperiod must have been configured in Nagios before it was last (re)started.

func ChangeContactModattr

func ChangeContactModattr(contact_name string, value string) lvst.CommandOpFunc

ChangeContactModattr is generated from the nagios external command definition: Desfinition: CHANGE_CONTACT_MODATTR;<contact_name>;<value> Description:

This command changes the modified attributes value for the specified contact.  Modified attributes values are used by Nagios to determine which object properties should be retained across program restarts.  Thus, modifying the value of the attributes can affect data retention.  This is an advanced option and should only be used by people who are intimately familiar with the data retention logic in Nagios.

func ChangeContactModhattr

func ChangeContactModhattr(contact_name string, value string) lvst.CommandOpFunc

ChangeContactModhattr is generated from the nagios external command definition: Desfinition: CHANGE_CONTACT_MODHATTR;<contact_name>;<value> Description:

This command changes the modified host attributes value for the specified contact.  Modified attributes values are used by Nagios to determine which object properties should be retained across program restarts.  Thus, modifying the value of the attributes can affect data retention.  This is an advanced option and should only be used by people who are intimately familiar with the data retention logic in Nagios.

func ChangeContactModsattr

func ChangeContactModsattr(contact_name string, value string) lvst.CommandOpFunc

ChangeContactModsattr is generated from the nagios external command definition: Desfinition: CHANGE_CONTACT_MODSATTR;<contact_name>;<value> Description:

This command changes the modified service attributes value for the specified contact.  Modified attributes values are used by Nagios to determine which object properties should be retained across program restarts.  Thus, modifying the value of the attributes can affect data retention.  This is an advanced option and should only be used by people who are intimately familiar with the data retention logic in Nagios.

func ChangeContactSvcNotificationTimeperiod

func ChangeContactSvcNotificationTimeperiod(contact_name string, notification_timeperiod string) lvst.CommandOpFunc

ChangeContactSvcNotificationTimeperiod is generated from the nagios external command definition: Desfinition: CHANGE_CONTACT_SVC_NOTIFICATION_TIMEPERIOD;<contact_name>;<notification_timeperiod> Description:

Changes the service notification timeperiod for a particular contact to what is specified by the "notification_timeperiod" option.  The "notification_timeperiod" option should be the short name of the timeperiod that is to be used as the contact's service notification timeperiod.  The timeperiod must have been configured in Nagios before it was last (re)started.

func ChangeCustomContactVar

func ChangeCustomContactVar(contact_name string, varname string, varvalue string) lvst.CommandOpFunc

ChangeCustomContactVar is generated from the nagios external command definition: Desfinition: CHANGE_CUSTOM_CONTACT_VAR;<contact_name>;<varname>;<varvalue> Description:

Changes the value of a custom contact variable.

func ChangeCustomHostVar

func ChangeCustomHostVar(host_name string, varname string, varvalue string) lvst.CommandOpFunc

ChangeCustomHostVar is generated from the nagios external command definition: Desfinition: CHANGE_CUSTOM_HOST_VAR;<host_name>;<varname>;<varvalue> Description:

Changes the value of a custom host variable.

func ChangeCustomSvcVar

func ChangeCustomSvcVar(host_name string, service_description string, varname string, varvalue string) lvst.CommandOpFunc

ChangeCustomSvcVar is generated from the nagios external command definition: Desfinition: CHANGE_CUSTOM_SVC_VAR;<host_name>;<service_description>;<varname>;<varvalue> Description:

Changes the value of a custom service variable.

func ChangeGlobalHostEventHandler

func ChangeGlobalHostEventHandler(event_handler_command string) lvst.CommandOpFunc

ChangeGlobalHostEventHandler is generated from the nagios external command definition: Desfinition: CHANGE_GLOBAL_HOST_EVENT_HANDLER;<event_handler_command> Description:

Changes the global host event handler command to be that specified by the "event_handler_command" option.  The "event_handler_command" option specifies the short name of the command that should be used as the new host event handler.  The command must have been configured in Nagios before it was last (re)started.

func ChangeGlobalSvcEventHandler

func ChangeGlobalSvcEventHandler(event_handler_command string) lvst.CommandOpFunc

ChangeGlobalSvcEventHandler is generated from the nagios external command definition: Desfinition: CHANGE_GLOBAL_SVC_EVENT_HANDLER;<event_handler_command> Description:

Changes the global service event handler command to be that specified by the "event_handler_command" option.  The "event_handler_command" option specifies the short name of the command that should be used as the new service event handler.  The command must have been configured in Nagios before it was last (re)started.

func ChangeHostCheckCommand

func ChangeHostCheckCommand(host_name string, check_command string) lvst.CommandOpFunc

ChangeHostCheckCommand is generated from the nagios external command definition: Desfinition: CHANGE_HOST_CHECK_COMMAND;<host_name>;<check_command> Description:

Changes the check command for a particular host to be that specified by the "check_command" option.  The "check_command" option specifies the short name of the command that should be used as the new host check command.  The command must have been configured in Nagios before it was last (re)started.

func ChangeHostCheckTimeperiod

func ChangeHostCheckTimeperiod(host_name string, timeperiod string) lvst.CommandOpFunc

ChangeHostCheckTimeperiod is generated from the nagios external command definition: Desfinition: CHANGE_HOST_CHECK_TIMEPERIOD;<host_name>;<timeperiod> Description:

Changes the valid check period for the specified host.

func ChangeHostEventHandler

func ChangeHostEventHandler(host_name string, event_handler_command string) lvst.CommandOpFunc

ChangeHostEventHandler is generated from the nagios external command definition: Desfinition: CHANGE_HOST_EVENT_HANDLER;<host_name>;<event_handler_command> Description:

Changes the event handler command for a particular host to be that specified by the "event_handler_command" option.  The "event_handler_command" option specifies the short name of the command that should be used as the new host event handler.  The command must have been configured in Nagios before it was last (re)started.

func ChangeHostModattr

func ChangeHostModattr(host_name string, value string) lvst.CommandOpFunc

ChangeHostModattr is generated from the nagios external command definition: Desfinition: CHANGE_HOST_MODATTR;<host_name>;<value> Description:

This command changes the modified attributes value for the specified host.  Modified attributes values are used by Nagios to determine which object properties should be retained across program restarts.  Thus, modifying the value of the attributes can affect data retention.  This is an advanced option and should only be used by people who are intimately familiar with the data retention logic in Nagios.

func ChangeMaxHostCheckAttempts

func ChangeMaxHostCheckAttempts(host_name string, check_attempts int) lvst.CommandOpFunc

ChangeMaxHostCheckAttempts is generated from the nagios external command definition: Desfinition: CHANGE_MAX_HOST_CHECK_ATTEMPTS;<host_name>;<check_attempts> Description:

Changes the maximum number of check attempts (retries) for a particular host.

func ChangeMaxSvcCheckAttempts

func ChangeMaxSvcCheckAttempts(host_name string, service_description string, check_attempts int) lvst.CommandOpFunc

ChangeMaxSvcCheckAttempts is generated from the nagios external command definition: Desfinition: CHANGE_MAX_SVC_CHECK_ATTEMPTS;<host_name>;<service_description>;<check_attempts> Description:

Changes the maximum number of check attempts (retries) for a particular service.

func ChangeNormalHostCheckInterval

func ChangeNormalHostCheckInterval(host_name string, check_interval time.Duration) lvst.CommandOpFunc

ChangeNormalHostCheckInterval is generated from the nagios external command definition: Desfinition: CHANGE_NORMAL_HOST_CHECK_INTERVAL;<host_name>;<check_interval> Description:

Changes the normal (regularly scheduled) check interval for a particular host.

func ChangeNormalSvcCheckInterval

func ChangeNormalSvcCheckInterval(host_name string, service_description string, check_interval time.Duration) lvst.CommandOpFunc

ChangeNormalSvcCheckInterval is generated from the nagios external command definition: Desfinition: CHANGE_NORMAL_SVC_CHECK_INTERVAL;<host_name>;<service_description>;<check_interval> Description:

Changes the normal (regularly scheduled) check interval for a particular service

func ChangeRetryHostCheckInterval

func ChangeRetryHostCheckInterval(host_name string, service_description string, check_interval time.Duration) lvst.CommandOpFunc

ChangeRetryHostCheckInterval is generated from the nagios external command definition: Desfinition: CHANGE_RETRY_HOST_CHECK_INTERVAL;<host_name>;<service_description>;<check_interval> Description:

Changes the retry check interval for a particular host.

func ChangeRetrySvcCheckInterval

func ChangeRetrySvcCheckInterval(host_name string, service_description string, check_interval time.Duration) lvst.CommandOpFunc

ChangeRetrySvcCheckInterval is generated from the nagios external command definition: Desfinition: CHANGE_RETRY_SVC_CHECK_INTERVAL;<host_name>;<service_description>;<check_interval> Description:

Changes the retry check interval for a particular service.

func ChangeSvcCheckCommand

func ChangeSvcCheckCommand(host_name string, service_description string, check_command string) lvst.CommandOpFunc

ChangeSvcCheckCommand is generated from the nagios external command definition: Desfinition: CHANGE_SVC_CHECK_COMMAND;<host_name>;<service_description>;<check_command> Description:

Changes the check command for a particular service to be that specified by the "check_command" option.  The "check_command" option specifies the short name of the command that should be used as the new service check command.  The command must have been configured in Nagios before it was last (re)started.

func ChangeSvcCheckTimeperiod

func ChangeSvcCheckTimeperiod(host_name string, service_description string, check_timeperiod string) lvst.CommandOpFunc

ChangeSvcCheckTimeperiod is generated from the nagios external command definition: Desfinition: CHANGE_SVC_CHECK_TIMEPERIOD;<host_name>;<service_description>;<check_timeperiod> Description:

Changes the check timeperiod for a particular service to what is specified by the "check_timeperiod" option.  The "check_timeperiod" option should be the short name of the timeperod that is to be used as the service check timeperiod.  The timeperiod must have been configured in Nagios before it was last (re)started.

func ChangeSvcEventHandler

func ChangeSvcEventHandler(host_name string, service_description string, event_handler_command string) lvst.CommandOpFunc

ChangeSvcEventHandler is generated from the nagios external command definition: Desfinition: CHANGE_SVC_EVENT_HANDLER;<host_name>;<service_description>;<event_handler_command> Description:

Changes the event handler command for a particular service to be that specified by the "event_handler_command" option.  The "event_handler_command" option specifies the short name of the command that should be used as the new service event handler.  The command must have been configured in Nagios before it was last (re)started.

func ChangeSvcModattr

func ChangeSvcModattr(host_name string, service_description string, value string) lvst.CommandOpFunc

ChangeSvcModattr is generated from the nagios external command definition: Desfinition: CHANGE_SVC_MODATTR;<host_name>;<service_description>;<value> Description:

This command changes the modified attributes value for the specified service.  Modified attributes values are used by Nagios to determine which object properties should be retained across program restarts.  Thus, modifying the value of the attributes can affect data retention.  This is an advanced option and should only be used by people who are intimately familiar with the data retention logic in Nagios.

func ChangeSvcNotificationTimeperiod

func ChangeSvcNotificationTimeperiod(host_name string, service_description string, notification_timeperiod string) lvst.CommandOpFunc

ChangeSvcNotificationTimeperiod is generated from the nagios external command definition: Desfinition: CHANGE_SVC_NOTIFICATION_TIMEPERIOD;<host_name>;<service_description>;<notification_timeperiod> Description:

Changes the notification timeperiod for a particular service to what is specified by the "notification_timeperiod" option.  The "notification_timeperiod" option should be the short name of the timeperiod that is to be used as the service notification timeperiod.  The timeperiod must have been configured in Nagios before it was last (re)started.

func CheckAttempts

func CheckAttempts(c *lvst.Command, i int)

func CheckCommand

func CheckCommand(c *lvst.Command, s string)

func CheckTime

func CheckTime(c *lvst.Command, t time.Time)

func CheckTimePeriod

func CheckTimePeriod(c *lvst.Command, s string)

func Comment

func Comment(c *lvst.Command, s string)

func CommentID

func CommentID(c *lvst.Command, i int)

func ContactGroupName

func ContactGroupName(c *lvst.Command, s string)

func ContactName

func ContactName(c *lvst.Command, s string)

func DelAllHostComments

func DelAllHostComments(host_name string) lvst.CommandOpFunc

DelAllHostComments is generated from the nagios external command definition: Desfinition: DEL_ALL_HOST_COMMENTS;<host_name> Description:

Deletes all comments assocated with a particular host.

func DelAllSvcComments

func DelAllSvcComments(host_name string, service_description string) lvst.CommandOpFunc

DelAllSvcComments is generated from the nagios external command definition: Desfinition: DEL_ALL_SVC_COMMENTS;<host_name>;<service_description> Description:

Deletes all comments associated with a particular service.

func DelHostComment

func DelHostComment(comment_id int) lvst.CommandOpFunc

DelHostComment is generated from the nagios external command definition: Desfinition: DEL_HOST_COMMENT;<comment_id> Description:

Deletes a host comment.  The id number of the comment that is to be deleted must be specified.

func DelHostDowntime

func DelHostDowntime(downtime_id int) lvst.CommandOpFunc

DelHostDowntime is generated from the nagios external command definition: Desfinition: DEL_HOST_DOWNTIME;<downtime_id> Description:

Deletes the host downtime entry that has an ID number matching the "downtime_id" argument.  If the downtime is currently in effect, the host will come out of scheduled downtime (as long as there are no other overlapping active downtime entries).

func DelSvcComment

func DelSvcComment(comment_id int) lvst.CommandOpFunc

DelSvcComment is generated from the nagios external command definition: Desfinition: DEL_SVC_COMMENT;<comment_id> Description:

Deletes a service comment.  The id number of the comment that is to be deleted must be specified.

func DelSvcDowntime

func DelSvcDowntime(downtime_id int) lvst.CommandOpFunc

DelSvcDowntime is generated from the nagios external command definition: Desfinition: DEL_SVC_DOWNTIME;<downtime_id> Description:

Deletes the service downtime entry that has an ID number matching the "downtime_id" argument.  If the downtime is currently in effect, the service will come out of scheduled downtime (as long as there are no other overlapping active downtime entries).

func DelayHostNotification

func DelayHostNotification(host_name string, notification_time time.Time) lvst.CommandOpFunc

DelayHostNotification is generated from the nagios external command definition: Desfinition: DELAY_HOST_NOTIFICATION;<host_name>;<notification_time> Description:

Delays the next notification for a parciular service until "notification_time".  The "notification_time" argument is specified in time_t format (seconds since the UNIX epoch).  Note that this will only have an affect if the service stays in the same problem state that it is currently in.  If the service changes to another state, a new notification may go out before the time you specify in the "notification_time" argument.

func DelaySvcNotification

func DelaySvcNotification(host_name string, service_description string, notification_time time.Time) lvst.CommandOpFunc

DelaySvcNotification is generated from the nagios external command definition: Desfinition: DELAY_SVC_NOTIFICATION;<host_name>;<service_description>;<notification_time> Description:

Delays the next notification for a parciular service until "notification_time".  The "notification_time" argument is specified in time_t format (seconds since the UNIX epoch).  Note that this will only have an affect if the service stays in the same problem state that it is currently in.  If the service changes to another state, a new notification may go out before the time you specify in the "notification_time" argument.

func Delete

func Delete(c *lvst.Command, b bool)

func DisableAllNotificationsBeyondHost

func DisableAllNotificationsBeyondHost(host_name string) lvst.CommandOpFunc

DisableAllNotificationsBeyondHost is generated from the nagios external command definition: Desfinition: DISABLE_ALL_NOTIFICATIONS_BEYOND_HOST;<host_name> Description:

Disables notifications for all hosts and services "beyond" (e.g. on all child hosts of) the specified host.  The current notification setting for the specified host is not affected.

func DisableContactHostNotifications

func DisableContactHostNotifications(contact_name string) lvst.CommandOpFunc

DisableContactHostNotifications is generated from the nagios external command definition: Desfinition: DISABLE_CONTACT_HOST_NOTIFICATIONS;<contact_name> Description:

Disables host notifications for a particular contact.

func DisableContactSvcNotifications

func DisableContactSvcNotifications(contact_name string) lvst.CommandOpFunc

DisableContactSvcNotifications is generated from the nagios external command definition: Desfinition: DISABLE_CONTACT_SVC_NOTIFICATIONS;<contact_name> Description:

Disables service notifications for a particular contact.

func DisableContactgroupHostNotifications

func DisableContactgroupHostNotifications(contactgroup_name string) lvst.CommandOpFunc

DisableContactgroupHostNotifications is generated from the nagios external command definition: Desfinition: DISABLE_CONTACTGROUP_HOST_NOTIFICATIONS;<contactgroup_name> Description:

Disables host notifications for all contacts in a particular contactgroup.

func DisableContactgroupSvcNotifications

func DisableContactgroupSvcNotifications(contactgroup_name string) lvst.CommandOpFunc

DisableContactgroupSvcNotifications is generated from the nagios external command definition: Desfinition: DISABLE_CONTACTGROUP_SVC_NOTIFICATIONS;<contactgroup_name> Description:

Disables service notifications for all contacts in a particular contactgroup.

func DisableEventHandlers

func DisableEventHandlers() lvst.CommandOpFunc

DisableEventHandlers is generated from the nagios external command definition: Desfinition: DISABLE_EVENT_HANDLERS Description:

Disables host and service event handlers on a program-wide basis.

func DisableFailurePrediction

func DisableFailurePrediction() lvst.CommandOpFunc

DisableFailurePrediction is generated from the nagios external command definition: Desfinition: DISABLE_FAILURE_PREDICTION Description:

Disables failure prediction on a program-wide basis.  This feature is not currently implemented in Nagios.

func DisableFlapDetection

func DisableFlapDetection() lvst.CommandOpFunc

DisableFlapDetection is generated from the nagios external command definition: Desfinition: DISABLE_FLAP_DETECTION Description:

Disables host and service flap detection on a program-wide basis.

func DisableHostAndChildNotifications

func DisableHostAndChildNotifications(host_name string) lvst.CommandOpFunc

DisableHostAndChildNotifications is generated from the nagios external command definition: Desfinition: DISABLE_HOST_AND_CHILD_NOTIFICATIONS;<host_name> Description:

Disables notifications for the specified host, as well as all hosts "beyond" (e.g. on all child hosts of) the specified host.

func DisableHostCheck

func DisableHostCheck(host_name string) lvst.CommandOpFunc

DisableHostCheck is generated from the nagios external command definition: Desfinition: DISABLE_HOST_CHECK;<host_name> Description:

Disables (regularly scheduled and on-demand) active checks of the specified host.

func DisableHostEventHandler

func DisableHostEventHandler(host_name string) lvst.CommandOpFunc

DisableHostEventHandler is generated from the nagios external command definition: Desfinition: DISABLE_HOST_EVENT_HANDLER;<host_name> Description:

Disables the event handler for the specified host.

func DisableHostFlapDetection

func DisableHostFlapDetection(host_name string) lvst.CommandOpFunc

DisableHostFlapDetection is generated from the nagios external command definition: Desfinition: DISABLE_HOST_FLAP_DETECTION;<host_name> Description:

Disables flap detection for the specified host.

func DisableHostFreshnessChecks

func DisableHostFreshnessChecks() lvst.CommandOpFunc

DisableHostFreshnessChecks is generated from the nagios external command definition: Desfinition: DISABLE_HOST_FRESHNESS_CHECKS Description:

Disables freshness checks of all hosts on a program-wide basis.

func DisableHostNotifications

func DisableHostNotifications(host_name string) lvst.CommandOpFunc

DisableHostNotifications is generated from the nagios external command definition: Desfinition: DISABLE_HOST_NOTIFICATIONS;<host_name> Description:

Disables notifications for a particular host.

func DisableHostSvcChecks

func DisableHostSvcChecks(host_name string) lvst.CommandOpFunc

DisableHostSvcChecks is generated from the nagios external command definition: Desfinition: DISABLE_HOST_SVC_CHECKS;<host_name> Description:

Enables active checks of all services on the specified host.

func DisableHostSvcNotifications

func DisableHostSvcNotifications(host_name string) lvst.CommandOpFunc

DisableHostSvcNotifications is generated from the nagios external command definition: Desfinition: DISABLE_HOST_SVC_NOTIFICATIONS;<host_name> Description:

Disables notifications for all services on the specified host.

func DisableHostgroupHostChecks

func DisableHostgroupHostChecks(hostgroup_name string) lvst.CommandOpFunc

DisableHostgroupHostChecks is generated from the nagios external command definition: Desfinition: DISABLE_HOSTGROUP_HOST_CHECKS;<hostgroup_name> Description:

Disables active checks for all hosts in a particular hostgroup.

func DisableHostgroupHostNotifications

func DisableHostgroupHostNotifications(hostgroup_name string) lvst.CommandOpFunc

DisableHostgroupHostNotifications is generated from the nagios external command definition: Desfinition: DISABLE_HOSTGROUP_HOST_NOTIFICATIONS;<hostgroup_name> Description:

Disables notifications for all hosts in a particular hostgroup.  This does not disable notifications for the services associated with the hosts in the hostgroup - see the DISABLE_HOSTGROUP_SVC_NOTIFICATIONS command for that.

func DisableHostgroupPassiveHostChecks

func DisableHostgroupPassiveHostChecks(hostgroup_name string) lvst.CommandOpFunc

DisableHostgroupPassiveHostChecks is generated from the nagios external command definition: Desfinition: DISABLE_HOSTGROUP_PASSIVE_HOST_CHECKS;<hostgroup_name> Description:

Disables passive checks for all hosts in a particular hostgroup.

func DisableHostgroupPassiveSvcChecks

func DisableHostgroupPassiveSvcChecks(hostgroup_name string) lvst.CommandOpFunc

DisableHostgroupPassiveSvcChecks is generated from the nagios external command definition: Desfinition: DISABLE_HOSTGROUP_PASSIVE_SVC_CHECKS;<hostgroup_name> Description:

Disables passive checks for all services associated with hosts in a particular hostgroup.

func DisableHostgroupSvcChecks

func DisableHostgroupSvcChecks(hostgroup_name string) lvst.CommandOpFunc

DisableHostgroupSvcChecks is generated from the nagios external command definition: Desfinition: DISABLE_HOSTGROUP_SVC_CHECKS;<hostgroup_name> Description:

Disables active checks for all services associated with hosts in a particular hostgroup.

func DisableHostgroupSvcNotifications

func DisableHostgroupSvcNotifications(hostgroup_name string) lvst.CommandOpFunc

DisableHostgroupSvcNotifications is generated from the nagios external command definition: Desfinition: DISABLE_HOSTGROUP_SVC_NOTIFICATIONS;<hostgroup_name> Description:

Disables notifications for all services associated with hosts in a particular hostgroup.  This does not disable notifications for the hosts in the hostgroup - see the DISABLE_HOSTGROUP_HOST_NOTIFICATIONS command for that.

func DisableNotifications

func DisableNotifications() lvst.CommandOpFunc

DisableNotifications is generated from the nagios external command definition: Desfinition: DISABLE_NOTIFICATIONS Description:

Disables host and service notifications on a program-wide basis.

func DisablePassiveHostChecks

func DisablePassiveHostChecks(host_name string) lvst.CommandOpFunc

DisablePassiveHostChecks is generated from the nagios external command definition: Desfinition: DISABLE_PASSIVE_HOST_CHECKS;<host_name> Description:

Disables acceptance and processing of passive host checks for the specified host.

func DisablePassiveSvcChecks

func DisablePassiveSvcChecks(host_name string, service_description string) lvst.CommandOpFunc

DisablePassiveSvcChecks is generated from the nagios external command definition: Desfinition: DISABLE_PASSIVE_SVC_CHECKS;<host_name>;<service_description> Description:

Disables passive checks for the specified service.

func DisablePerformanceData

func DisablePerformanceData() lvst.CommandOpFunc

DisablePerformanceData is generated from the nagios external command definition: Desfinition: DISABLE_PERFORMANCE_DATA Description:

Disables the processing of host and service performance data on a program-wide basis.

func DisableServiceFlapDetection

func DisableServiceFlapDetection(host_name string, service_description string) lvst.CommandOpFunc

DisableServiceFlapDetection is generated from the nagios external command definition: Desfinition: DISABLE_SERVICE_FLAP_DETECTION;<host_name>;<service_description> Description:

Disables flap detection for the specified service.

func DisableServiceFreshnessChecks

func DisableServiceFreshnessChecks() lvst.CommandOpFunc

DisableServiceFreshnessChecks is generated from the nagios external command definition: Desfinition: DISABLE_SERVICE_FRESHNESS_CHECKS Description:

Disables freshness checks of all services on a program-wide basis.

func DisableServicegroupHostChecks

func DisableServicegroupHostChecks(servicegroup_name string) lvst.CommandOpFunc

DisableServicegroupHostChecks is generated from the nagios external command definition: Desfinition: DISABLE_SERVICEGROUP_HOST_CHECKS;<servicegroup_name> Description:

Disables active checks for all hosts that have services that are members of a particular hostgroup.

func DisableServicegroupHostNotifications

func DisableServicegroupHostNotifications(servicegroup_name string) lvst.CommandOpFunc

DisableServicegroupHostNotifications is generated from the nagios external command definition: Desfinition: DISABLE_SERVICEGROUP_HOST_NOTIFICATIONS;<servicegroup_name> Description:

Disables notifications for all hosts that have services that are members of a particular servicegroup.

func DisableServicegroupPassiveHostChecks

func DisableServicegroupPassiveHostChecks(servicegroup_name string) lvst.CommandOpFunc

DisableServicegroupPassiveHostChecks is generated from the nagios external command definition: Desfinition: DISABLE_SERVICEGROUP_PASSIVE_HOST_CHECKS;<servicegroup_name> Description:

Disables the acceptance and processing of passive checks for all hosts that have services that are members of a particular service group.

func DisableServicegroupPassiveSvcChecks

func DisableServicegroupPassiveSvcChecks(servicegroup_name string) lvst.CommandOpFunc

DisableServicegroupPassiveSvcChecks is generated from the nagios external command definition: Desfinition: DISABLE_SERVICEGROUP_PASSIVE_SVC_CHECKS;<servicegroup_name> Description:

Disables the acceptance and processing of passive checks for all services in a particular servicegroup.

func DisableServicegroupSvcChecks

func DisableServicegroupSvcChecks(servicegroup_name string) lvst.CommandOpFunc

DisableServicegroupSvcChecks is generated from the nagios external command definition: Desfinition: DISABLE_SERVICEGROUP_SVC_CHECKS;<servicegroup_name> Description:

Disables active checks for all services in a particular servicegroup.

func DisableServicegroupSvcNotifications

func DisableServicegroupSvcNotifications(servicegroup_name string) lvst.CommandOpFunc

DisableServicegroupSvcNotifications is generated from the nagios external command definition: Desfinition: DISABLE_SERVICEGROUP_SVC_NOTIFICATIONS;<servicegroup_name> Description:

Disables notifications for all services that are members of a particular servicegroup.

func DisableSvcCheck

func DisableSvcCheck(host_name string, service_description string) lvst.CommandOpFunc

DisableSvcCheck is generated from the nagios external command definition: Desfinition: DISABLE_SVC_CHECK;<host_name>;<service_description> Description:

Disables active checks for a particular service.

func DisableSvcEventHandler

func DisableSvcEventHandler(host_name string, service_description string) lvst.CommandOpFunc

DisableSvcEventHandler is generated from the nagios external command definition: Desfinition: DISABLE_SVC_EVENT_HANDLER;<host_name>;<service_description> Description:

Disables the event handler for the specified service.

func DisableSvcFlapDetection

func DisableSvcFlapDetection(host_name string, service_description string) lvst.CommandOpFunc

DisableSvcFlapDetection is generated from the nagios external command definition: Desfinition: DISABLE_SVC_FLAP_DETECTION;<host_name>;<service_description> Description:

Disables flap detection for the specified service.

func DisableSvcNotifications

func DisableSvcNotifications(host_name string, service_description string) lvst.CommandOpFunc

DisableSvcNotifications is generated from the nagios external command definition: Desfinition: DISABLE_SVC_NOTIFICATIONS;<host_name>;<service_description> Description:

Disables notifications for a particular service.

func DowntimeID

func DowntimeID(c *lvst.Command, i int)

func Duration

func Duration(c *lvst.Command, t time.Duration)

func EnableAllNotificationsBeyondHost

func EnableAllNotificationsBeyondHost(host_name string) lvst.CommandOpFunc

EnableAllNotificationsBeyondHost is generated from the nagios external command definition: Desfinition: ENABLE_ALL_NOTIFICATIONS_BEYOND_HOST;<host_name> Description:

Enables notifications for all hosts and services "beyond" (e.g. on all child hosts of) the specified host.  The current notification setting for the specified host is not affected.  Notifications will only be sent out for these hosts and services if notifications are also enabled on a program-wide basis.

func EnableContactHostNotifications

func EnableContactHostNotifications(contact_name string) lvst.CommandOpFunc

EnableContactHostNotifications is generated from the nagios external command definition: Desfinition: ENABLE_CONTACT_HOST_NOTIFICATIONS;<contact_name> Description:

Enables host notifications for a particular contact.

func EnableContactSvcNotifications

func EnableContactSvcNotifications(contact_name string) lvst.CommandOpFunc

EnableContactSvcNotifications is generated from the nagios external command definition: Desfinition: ENABLE_CONTACT_SVC_NOTIFICATIONS;<contact_name> Description:

Disables service notifications for a particular contact.

func EnableContactgroupHostNotifications

func EnableContactgroupHostNotifications(contactgroup_name string) lvst.CommandOpFunc

EnableContactgroupHostNotifications is generated from the nagios external command definition: Desfinition: ENABLE_CONTACTGROUP_HOST_NOTIFICATIONS;<contactgroup_name> Description:

Enables host notifications for all contacts in a particular contactgroup.

func EnableContactgroupSvcNotifications

func EnableContactgroupSvcNotifications(contactgroup_name string) lvst.CommandOpFunc

EnableContactgroupSvcNotifications is generated from the nagios external command definition: Desfinition: ENABLE_CONTACTGROUP_SVC_NOTIFICATIONS;<contactgroup_name> Description:

Enables service notifications for all contacts in a particular contactgroup.

func EnableEventHandlers

func EnableEventHandlers() lvst.CommandOpFunc

EnableEventHandlers is generated from the nagios external command definition: Desfinition: ENABLE_EVENT_HANDLERS Description:

Enables host and service event handlers on a program-wide basis.

func EnableFailurePrediction

func EnableFailurePrediction() lvst.CommandOpFunc

EnableFailurePrediction is generated from the nagios external command definition: Desfinition: ENABLE_FAILURE_PREDICTION Description:

Enables failure prediction on a program-wide basis.  This feature is not currently implemented in Nagios.

func EnableFlapDetection

func EnableFlapDetection() lvst.CommandOpFunc

EnableFlapDetection is generated from the nagios external command definition: Desfinition: ENABLE_FLAP_DETECTION Description:

Enables host and service flap detection on a program-wide basis.

func EnableHostAndChildNotifications

func EnableHostAndChildNotifications(host_name string) lvst.CommandOpFunc

EnableHostAndChildNotifications is generated from the nagios external command definition: Desfinition: ENABLE_HOST_AND_CHILD_NOTIFICATIONS;<host_name> Description:

Enables notifications for the specified host, as well as all hosts "beyond" (e.g. on all child hosts of) the specified host.  Notifications will only be sent out for these hosts if notifications are also enabled on a program-wide basis.

func EnableHostCheck

func EnableHostCheck(host_name string) lvst.CommandOpFunc

EnableHostCheck is generated from the nagios external command definition: Desfinition: ENABLE_HOST_CHECK;<host_name> Description:

Enables (regularly scheduled and on-demand) active checks of the specified host.

func EnableHostEventHandler

func EnableHostEventHandler(host_name string) lvst.CommandOpFunc

EnableHostEventHandler is generated from the nagios external command definition: Desfinition: ENABLE_HOST_EVENT_HANDLER;<host_name> Description:

Enables the event handler for the specified host.

func EnableHostFlapDetection

func EnableHostFlapDetection(host_name string) lvst.CommandOpFunc

EnableHostFlapDetection is generated from the nagios external command definition: Desfinition: ENABLE_HOST_FLAP_DETECTION;<host_name> Description:

Enables flap detection for the specified host.  In order for the flap detection algorithms to be run for the host, flap detection must be enabled on a program-wide basis as well.

func EnableHostFreshnessChecks

func EnableHostFreshnessChecks() lvst.CommandOpFunc

EnableHostFreshnessChecks is generated from the nagios external command definition: Desfinition: ENABLE_HOST_FRESHNESS_CHECKS Description:

Enables freshness checks of all hosts on a program-wide basis.  Individual hosts that have freshness checks disabled will not be checked for freshness.

func EnableHostNotifications

func EnableHostNotifications(host_name string) lvst.CommandOpFunc

EnableHostNotifications is generated from the nagios external command definition: Desfinition: ENABLE_HOST_NOTIFICATIONS;<host_name> Description:

Enables notifications for a particular host.  Notifications will be sent out for the host only if notifications are enabled on a program-wide basis as well.

func EnableHostSvcChecks

func EnableHostSvcChecks(host_name string) lvst.CommandOpFunc

EnableHostSvcChecks is generated from the nagios external command definition: Desfinition: ENABLE_HOST_SVC_CHECKS;<host_name> Description:

Enables active checks of all services on the specified host.

func EnableHostSvcNotifications

func EnableHostSvcNotifications(host_name string) lvst.CommandOpFunc

EnableHostSvcNotifications is generated from the nagios external command definition: Desfinition: ENABLE_HOST_SVC_NOTIFICATIONS;<host_name> Description:

Enables notifications for all services on the specified host.  Note that notifications will not be sent out if notifications are disabled on a program-wide basis.

func EnableHostgroupHostChecks

func EnableHostgroupHostChecks(hostgroup_name string) lvst.CommandOpFunc

EnableHostgroupHostChecks is generated from the nagios external command definition: Desfinition: ENABLE_HOSTGROUP_HOST_CHECKS;<hostgroup_name> Description:

Enables active checks for all hosts in a particular hostgroup.

func EnableHostgroupHostNotifications

func EnableHostgroupHostNotifications(hostgroup_name string) lvst.CommandOpFunc

EnableHostgroupHostNotifications is generated from the nagios external command definition: Desfinition: ENABLE_HOSTGROUP_HOST_NOTIFICATIONS;<hostgroup_name> Description:

Enables notifications for all hosts in a particular hostgroup.  This does not enable notifications for the services associated with the hosts in the hostgroup - see the ENABLE_HOSTGROUP_SVC_NOTIFICATIONS command for that.  In order for notifications to be sent out for these hosts, notifications must be enabled on a program-wide basis as well.

func EnableHostgroupPassiveHostChecks

func EnableHostgroupPassiveHostChecks(hostgroup_name string) lvst.CommandOpFunc

EnableHostgroupPassiveHostChecks is generated from the nagios external command definition: Desfinition: ENABLE_HOSTGROUP_PASSIVE_HOST_CHECKS;<hostgroup_name> Description:

Enables passive checks for all hosts in a particular hostgroup.

func EnableHostgroupPassiveSvcChecks

func EnableHostgroupPassiveSvcChecks(hostgroup_name string) lvst.CommandOpFunc

EnableHostgroupPassiveSvcChecks is generated from the nagios external command definition: Desfinition: ENABLE_HOSTGROUP_PASSIVE_SVC_CHECKS;<hostgroup_name> Description:

Enables passive checks for all services associated with hosts in a particular hostgroup.

func EnableHostgroupSvcChecks

func EnableHostgroupSvcChecks(hostgroup_name string) lvst.CommandOpFunc

EnableHostgroupSvcChecks is generated from the nagios external command definition: Desfinition: ENABLE_HOSTGROUP_SVC_CHECKS;<hostgroup_name> Description:

Enables active checks for all services associated with hosts in a particular hostgroup.

func EnableHostgroupSvcNotifications

func EnableHostgroupSvcNotifications(hostgroup_name string) lvst.CommandOpFunc

EnableHostgroupSvcNotifications is generated from the nagios external command definition: Desfinition: ENABLE_HOSTGROUP_SVC_NOTIFICATIONS;<hostgroup_name> Description:

Enables notifications for all services that are associated with hosts in a particular hostgroup.  This does not enable notifications for the hosts in the hostgroup - see the ENABLE_HOSTGROUP_HOST_NOTIFICATIONS command for that.  In order for notifications to be sent out for these services, notifications must be enabled on a program-wide basis as well.

func EnableNotifications

func EnableNotifications() lvst.CommandOpFunc

EnableNotifications is generated from the nagios external command definition: Desfinition: ENABLE_NOTIFICATIONS Description:

Enables host and service notifications on a program-wide basis.

func EnablePassiveHostChecks

func EnablePassiveHostChecks(host_name string) lvst.CommandOpFunc

EnablePassiveHostChecks is generated from the nagios external command definition: Desfinition: ENABLE_PASSIVE_HOST_CHECKS;<host_name> Description:

Enables acceptance and processing of passive host checks for the specified host.

func EnablePassiveSvcChecks

func EnablePassiveSvcChecks(host_name string, service_description string) lvst.CommandOpFunc

EnablePassiveSvcChecks is generated from the nagios external command definition: Desfinition: ENABLE_PASSIVE_SVC_CHECKS;<host_name>;<service_description> Description:

Enables passive checks for the specified service.

func EnablePerformanceData

func EnablePerformanceData() lvst.CommandOpFunc

EnablePerformanceData is generated from the nagios external command definition: Desfinition: ENABLE_PERFORMANCE_DATA Description:

Enables the processing of host and service performance data on a program-wide basis.

func EnableServiceFreshnessChecks

func EnableServiceFreshnessChecks() lvst.CommandOpFunc

EnableServiceFreshnessChecks is generated from the nagios external command definition: Desfinition: ENABLE_SERVICE_FRESHNESS_CHECKS Description:

Enables freshness checks of all services on a program-wide basis.  Individual services that have freshness checks disabled will not be checked for freshness.

func EnableServicegroupHostChecks

func EnableServicegroupHostChecks(servicegroup_name string) lvst.CommandOpFunc

EnableServicegroupHostChecks is generated from the nagios external command definition: Desfinition: ENABLE_SERVICEGROUP_HOST_CHECKS;<servicegroup_name> Description:

Enables active checks for all hosts that have services that are members of a particular hostgroup.

func EnableServicegroupHostNotifications

func EnableServicegroupHostNotifications(servicegroup_name string) lvst.CommandOpFunc

EnableServicegroupHostNotifications is generated from the nagios external command definition: Desfinition: ENABLE_SERVICEGROUP_HOST_NOTIFICATIONS;<servicegroup_name> Description:

Enables notifications for all hosts that have services that are members of a particular servicegroup.  In order for notifications to be sent out for these hosts, notifications must also be enabled on a program-wide basis.

func EnableServicegroupPassiveHostChecks

func EnableServicegroupPassiveHostChecks(servicegroup_name string) lvst.CommandOpFunc

EnableServicegroupPassiveHostChecks is generated from the nagios external command definition: Desfinition: ENABLE_SERVICEGROUP_PASSIVE_HOST_CHECKS;<servicegroup_name> Description:

Enables the acceptance and processing of passive checks for all hosts that have services that are members of a particular service group.

func EnableServicegroupPassiveSvcChecks

func EnableServicegroupPassiveSvcChecks(servicegroup_name string) lvst.CommandOpFunc

EnableServicegroupPassiveSvcChecks is generated from the nagios external command definition: Desfinition: ENABLE_SERVICEGROUP_PASSIVE_SVC_CHECKS;<servicegroup_name> Description:

Enables the acceptance and processing of passive checks for all services in a particular servicegroup.

func EnableServicegroupSvcChecks

func EnableServicegroupSvcChecks(servicegroup_name string) lvst.CommandOpFunc

EnableServicegroupSvcChecks is generated from the nagios external command definition: Desfinition: ENABLE_SERVICEGROUP_SVC_CHECKS;<servicegroup_name> Description:

Enables active checks for all services in a particular servicegroup.

func EnableServicegroupSvcNotifications

func EnableServicegroupSvcNotifications(servicegroup_name string) lvst.CommandOpFunc

EnableServicegroupSvcNotifications is generated from the nagios external command definition: Desfinition: ENABLE_SERVICEGROUP_SVC_NOTIFICATIONS;<servicegroup_name> Description:

Enables notifications for all services that are members of a particular servicegroup.  In order for notifications to be sent out for these services, notifications must also be enabled on a program-wide basis.

func EnableSvcCheck

func EnableSvcCheck(host_name string, service_description string) lvst.CommandOpFunc

EnableSvcCheck is generated from the nagios external command definition: Desfinition: ENABLE_SVC_CHECK;<host_name>;<service_description> Description:

Enables active checks for a particular service.

func EnableSvcEventHandler

func EnableSvcEventHandler(host_name string, service_description string) lvst.CommandOpFunc

EnableSvcEventHandler is generated from the nagios external command definition: Desfinition: ENABLE_SVC_EVENT_HANDLER;<host_name>;<service_description> Description:

Enables the event handler for the specified service.

func EnableSvcFlapDetection

func EnableSvcFlapDetection(host_name string, service_description string) lvst.CommandOpFunc

EnableSvcFlapDetection is generated from the nagios external command definition: Desfinition: ENABLE_SVC_FLAP_DETECTION;<host_name>;<service_description> Description:

Enables flap detection for the specified service.  In order for the flap detection algorithms to be run for the service, flap detection must be enabled on a program-wide basis as well.

func EnableSvcNotifications

func EnableSvcNotifications(host_name string, service_description string) lvst.CommandOpFunc

EnableSvcNotifications is generated from the nagios external command definition: Desfinition: ENABLE_SVC_NOTIFICATIONS;<host_name>;<service_description> Description:

Enables notifications for a particular service.  Notifications will be sent out for the service only if notifications are enabled on a program-wide basis as well.

func End

func End(c *lvst.Command, t time.Time)

func EventHandlerCommand

func EventHandlerCommand(c *lvst.Command, s string)

func FileName

func FileName(c *lvst.Command, s string)

func Fixed

func Fixed(c *lvst.Command, b bool)

func HostGroupName

func HostGroupName(c *lvst.Command, s string)

func Hostname

func Hostname(c *lvst.Command, s string)

func NotificationNumber

func NotificationNumber(c *lvst.Command, i int)

func NotificationTime

func NotificationTime(c *lvst.Command, t time.Time)

func NotificationTimePeriod

func NotificationTimePeriod(c *lvst.Command, s string)

func Notify

func Notify(c *lvst.Command, b bool)

func Options

func Options(c *lvst.Command, i int)

func Persistent

func Persistent(c *lvst.Command, b bool)

func PluginOutput

func PluginOutput(c *lvst.Command, s string)

func ProcessFile

func ProcessFile(file_name string, delete bool) lvst.CommandOpFunc

ProcessFile is generated from the nagios external command definition: Desfinition: PROCESS_FILE;<file_name>;<delete> Description:

Directs Nagios to process all external commands that are found in the file specified by the <file_name> argument.  If the <delete> option is non-zero, the file will be deleted once it has been processes.  If the <delete> option is set to zero, the file is left untouched.

func ProcessHostCheckResult

func ProcessHostCheckResult(host_name string, status_code int, plugin_output string) lvst.CommandOpFunc

ProcessHostCheckResult is generated from the nagios external command definition: Desfinition: PROCESS_HOST_CHECK_RESULT;<host_name>;<status_code>;<plugin_output> Description:

This is used to submit a passive check result for a particular host.  The "status_code" indicates the state of the host check and should be one of the following: 0=UP, 1=DOWN, 2=UNREACHABLE.  The "plugin_output" argument contains the text returned from the host check, along with optional performance data.

func ProcessServiceCheckResult

func ProcessServiceCheckResult(host_name string, service_description string, return_code int, plugin_output string) lvst.CommandOpFunc

ProcessServiceCheckResult is generated from the nagios external command definition: Desfinition: PROCESS_SERVICE_CHECK_RESULT;<host_name>;<service_description>;<return_code>;<plugin_output> Description:

This is used to submit a passive check result for a particular service.  The "return_code" field should be one of the following: 0=OK, 1=WARNING, 2=CRITICAL, 3=UNKNOWN.  The "plugin_output" field contains text output from the service check, along with optional performance data.

func ReadStateInformation

func ReadStateInformation() lvst.CommandOpFunc

ReadStateInformation is generated from the nagios external command definition: Desfinition: READ_STATE_INFORMATION Description:

Causes Nagios to load all current monitoring status information from the state retention file.  Normally, state retention information is loaded when the Nagios process starts up and before it starts monitoring.  WARNING: This command will cause Nagios to discard all current monitoring status information and use the information stored in state retention file!  Use with care.

func RemoveHostAcknowledgement

func RemoveHostAcknowledgement(host_name string) lvst.CommandOpFunc

RemoveHostAcknowledgement is generated from the nagios external command definition: Desfinition: REMOVE_HOST_ACKNOWLEDGEMENT;<host_name> Description:

This removes the problem acknowledgement for a particular host.  Once the acknowledgement has been removed, notifications can once again be sent out for the given host.

func RemoveSvcAcknowledgement

func RemoveSvcAcknowledgement(host_name string, service_description string) lvst.CommandOpFunc

RemoveSvcAcknowledgement is generated from the nagios external command definition: Desfinition: REMOVE_SVC_ACKNOWLEDGEMENT;<host_name>;<service_description> Description:

This removes the problem acknowledgement for a particular service.  Once the acknowledgement has been removed, notifications can once again be sent out for the given service.

func RestartProgram

func RestartProgram() lvst.CommandOpFunc

RestartProgram is generated from the nagios external command definition: Desfinition: RESTART_PROGRAM Description:

Restarts the Nagios process.

func ReturnCode

func ReturnCode(c *lvst.Command, i int)

func SaveStateInformation

func SaveStateInformation() lvst.CommandOpFunc

SaveStateInformation is generated from the nagios external command definition: Desfinition: SAVE_STATE_INFORMATION Description:

Causes Nagios to save all current monitoring status information to the state retention file.  Normally, state retention information is saved before the Nagios process shuts down and (potentially) at regularly scheduled intervals.  This command allows you to force Nagios to save this information to the state retention file immediately.  This does not affect the current status information in the Nagios process.

func ScheduleAndPropagateHostDowntime

func ScheduleAndPropagateHostDowntime(host_name string, start_time time.Time, end_time time.Time, fixed bool, trigger_id int, duration time.Duration, author string, comment string) lvst.CommandOpFunc

ScheduleAndPropagateHostDowntime is generated from the nagios external command definition: Desfinition: SCHEDULE_AND_PROPAGATE_HOST_DOWNTIME;<host_name>;<start_time>;<end_time>;<fixed>;<trigger_id>;<duration>;<author>;<comment> Description:

Schedules downtime for a specified host and all of its children (hosts).  If the "fixed" argument is set to one (1), downtime will start and end at the times specified by the "start" and "end" arguments.  Otherwise, downtime will begin between the "start" and "end" times and last for "duration" seconds.  The "start" and "end" arguments are specified in time_t format (seconds since the UNIX epoch).  The specified (parent) host downtime can be triggered by another downtime entry if the "trigger_id" is set to the ID of another scheduled downtime entry.  Set the "trigger_id" argument to zero (0) if the downtime for the specified (parent) host should not be triggered by another downtime entry.

func ScheduleAndPropagateTriggeredHostDowntime

func ScheduleAndPropagateTriggeredHostDowntime(host_name string, start_time time.Time, end_time time.Time, fixed bool, trigger_id int, duration time.Duration, author string, comment string) lvst.CommandOpFunc

ScheduleAndPropagateTriggeredHostDowntime is generated from the nagios external command definition: Desfinition: SCHEDULE_AND_PROPAGATE_TRIGGERED_HOST_DOWNTIME;<host_name>;<start_time>;<end_time>;<fixed>;<trigger_id>;<duration>;<author>;<comment> Description:

Schedules downtime for a specified host and all of its children (hosts).  If the "fixed" argument is set to one (1), downtime will start and end at the times specified by the "start" and "end" arguments.  Otherwise, downtime will begin between the "start" and "end" times and last for "duration" seconds.  The "start" and "end" arguments are specified in time_t format (seconds since the UNIX epoch).  Downtime for child hosts are all set to be triggered by the downtime for the specified (parent) host.  The specified (parent) host downtime can be triggered by another downtime entry if the "trigger_id" is set to the ID of another scheduled downtime entry.  Set the "trigger_id" argument to zero (0) if the downtime for the specified (parent) host should not be triggered by another downtime entry.

func ScheduleForcedHostCheck

func ScheduleForcedHostCheck(host_name string, check_time time.Time) lvst.CommandOpFunc

ScheduleForcedHostCheck is generated from the nagios external command definition: Desfinition: SCHEDULE_FORCED_HOST_CHECK;<host_name>;<check_time> Description:

Schedules a forced active check of a particular host at "check_time".  The "check_time" argument is specified in time_t format (seconds since the UNIX epoch).   Forced checks are performed regardless of what time it is (e.g. timeperiod restrictions are ignored) and whether or not active checks are enabled on a host-specific or program-wide basis.

func ScheduleForcedHostSvcChecks

func ScheduleForcedHostSvcChecks(host_name string, check_time time.Time) lvst.CommandOpFunc

ScheduleForcedHostSvcChecks is generated from the nagios external command definition: Desfinition: SCHEDULE_FORCED_HOST_SVC_CHECKS;<host_name>;<check_time> Description:

Schedules a forced active check of all services associated with a particular host at "check_time".  The "check_time" argument is specified in time_t format (seconds since the UNIX epoch).   Forced checks are performed regardless of what time it is (e.g. timeperiod restrictions are ignored) and whether or not active checks are enabled on a service-specific or program-wide basis.

func ScheduleForcedSvcCheck

func ScheduleForcedSvcCheck(host_name string, service_description string, check_time time.Time) lvst.CommandOpFunc

ScheduleForcedSvcCheck is generated from the nagios external command definition: Desfinition: SCHEDULE_FORCED_SVC_CHECK;<host_name>;<service_description>;<check_time> Description:

Schedules a forced active check of a particular service at "check_time".  The "check_time" argument is specified in time_t format (seconds since the UNIX epoch).   Forced checks are performed regardless of what time it is (e.g. timeperiod restrictions are ignored) and whether or not active checks are enabled on a service-specific or program-wide basis.

func ScheduleHostCheck

func ScheduleHostCheck(host_name string, check_time time.Time) lvst.CommandOpFunc

ScheduleHostCheck is generated from the nagios external command definition: Desfinition: SCHEDULE_HOST_CHECK;<host_name>;<check_time> Description:

Schedules the next active check of a particular host at "check_time".  The "check_time" argument is specified in time_t format (seconds since the UNIX epoch).  Note that the host may not actually be checked at the time you specify.  This could occur for a number of reasons: active checks are disabled on a program-wide or service-specific basis, the host is already scheduled to be checked at an earlier time, etc.  If you want to force the host check to occur at the time you specify, look at the SCHEDULE_FORCED_HOST_CHECK command.

func ScheduleHostDowntime

func ScheduleHostDowntime(host_name string, start_time time.Time, end_time time.Time, fixed bool, trigger_id int, duration time.Duration, author string, comment string) lvst.CommandOpFunc

ScheduleHostDowntime is generated from the nagios external command definition: Desfinition: SCHEDULE_HOST_DOWNTIME;<host_name>;<start_time>;<end_time>;<fixed>;<trigger_id>;<duration>;<author>;<comment> Description:

Schedules downtime for a specified host.  If the "fixed" argument is set to one (1), downtime will start and end at the times specified by the "start" and "end" arguments.  Otherwise, downtime will begin between the "start" and "end" times and last for "duration" seconds.  The "start" and "end" arguments are specified in time_t format (seconds since the UNIX epoch).  The specified host downtime can be triggered by another downtime entry if the "trigger_id" is set to the ID of another scheduled downtime entry.  Set the "trigger_id" argument to zero (0) if the downtime for the specified host should not be triggered by another downtime entry.

func ScheduleHostSvcChecks

func ScheduleHostSvcChecks(host_name string, check_time time.Time) lvst.CommandOpFunc

ScheduleHostSvcChecks is generated from the nagios external command definition: Desfinition: SCHEDULE_HOST_SVC_CHECKS;<host_name>;<check_time> Description:

Schedules the next active check of all services on a particular host at "check_time".  The "check_time" argument is specified in time_t format (seconds since the UNIX epoch).  Note that the services may not actually be checked at the time you specify.  This could occur for a number of reasons: active checks are disabled on a program-wide or service-specific basis, the services are already scheduled to be checked at an earlier time, etc.  If you want to force the service checks to occur at the time you specify, look at the SCHEDULE_FORCED_HOST_SVC_CHECKS command.

func ScheduleHostSvcDowntime

func ScheduleHostSvcDowntime(host_name string, start_time time.Time, end_time time.Time, fixed bool, trigger_id int, duration time.Duration, author string, comment string) lvst.CommandOpFunc

ScheduleHostSvcDowntime is generated from the nagios external command definition: Desfinition: SCHEDULE_HOST_SVC_DOWNTIME;<host_name>;<start_time>;<end_time>;<fixed>;<trigger_id>;<duration>;<author>;<comment> Description:

Schedules downtime for all services associated with a particular host.  If the "fixed" argument is set to one (1), downtime will start and end at the times specified by the "start" and "end" arguments.  Otherwise, downtime will begin between the "start" and "end" times and last for "duration" seconds.  The "start" and "end" arguments are specified in time_t format (seconds since the UNIX epoch).  The service downtime entries can be triggered by another downtime entry if the "trigger_id" is set to the ID of another scheduled downtime entry.  Set the "trigger_id" argument to zero (0) if the downtime for the services should not be triggered by another downtime entry.

func ScheduleHostgroupHostDowntime

func ScheduleHostgroupHostDowntime(hostgroup_name string, start_time time.Time, end_time time.Time, fixed bool, trigger_id int, duration time.Duration, author string, comment string) lvst.CommandOpFunc

ScheduleHostgroupHostDowntime is generated from the nagios external command definition: Desfinition: SCHEDULE_HOSTGROUP_HOST_DOWNTIME;<hostgroup_name>;<start_time>;<end_time>;<fixed>;<trigger_id>;<duration>;<author>;<comment> Description:

Schedules downtime for all hosts in a specified hostgroup.  If the "fixed" argument is set to one (1), downtime will start and end at the times specified by the "start" and "end" arguments.  Otherwise, downtime will begin between the "start" and "end" times and last for "duration" seconds.  The "start" and "end" arguments are specified in time_t format (seconds since the UNIX epoch).  The host downtime entries can be triggered by another downtime entry if the "trigger_id" is set to the ID of another scheduled downtime entry.  Set the "trigger_id" argument to zero (0) if the downtime for the hosts should not be triggered by another downtime entry.

func ScheduleHostgroupSvcDowntime

func ScheduleHostgroupSvcDowntime(hostgroup_name string, start_time time.Time, end_time time.Time, fixed bool, trigger_id int, duration time.Duration, author string, comment string) lvst.CommandOpFunc

ScheduleHostgroupSvcDowntime is generated from the nagios external command definition: Desfinition: SCHEDULE_HOSTGROUP_SVC_DOWNTIME;<hostgroup_name>;<start_time>;<end_time>;<fixed>;<trigger_id>;<duration>;<author>;<comment> Description:

Schedules downtime for all services associated with hosts in a specified servicegroup.  If the "fixed" argument is set to one (1), downtime will start and end at the times specified by the "start" and "end" arguments.  Otherwise, downtime will begin between the "start" and "end" times and last for "duration" seconds.  The "start" and "end" arguments are specified in time_t format (seconds since the UNIX epoch).  The service downtime entries can be triggered by another downtime entry if the "trigger_id" is set to the ID of another scheduled downtime entry.  Set the "trigger_id" argument to zero (0) if the downtime for the services should not be triggered by another downtime entry.

func ScheduleServicegroupHostDowntime

func ScheduleServicegroupHostDowntime(servicegroup_name string, start_time time.Time, end_time time.Time, fixed bool, trigger_id int, duration time.Duration, author string, comment string) lvst.CommandOpFunc

ScheduleServicegroupHostDowntime is generated from the nagios external command definition: Desfinition: SCHEDULE_SERVICEGROUP_HOST_DOWNTIME;<servicegroup_name>;<start_time>;<end_time>;<fixed>;<trigger_id>;<duration>;<author>;<comment> Description:

Schedules downtime for all hosts that have services in a specified servicegroup.  If the "fixed" argument is set to one (1), downtime will start and end at the times specified by the "start" and "end" arguments.  Otherwise, downtime will begin between the "start" and "end" times and last for "duration" seconds.  The "start" and "end" arguments are specified in time_t format (seconds since the UNIX epoch).  The host downtime entries can be triggered by another downtime entry if the "trigger_id" is set to the ID of another scheduled downtime entry.  Set the "trigger_id" argument to zero (0) if the downtime for the hosts should not be triggered by another downtime entry.

func ScheduleServicegroupSvcDowntime

func ScheduleServicegroupSvcDowntime(servicegroup_name string, start_time time.Time, end_time time.Time, fixed bool, trigger_id int, duration time.Duration, author string, comment string) lvst.CommandOpFunc

ScheduleServicegroupSvcDowntime is generated from the nagios external command definition: Desfinition: SCHEDULE_SERVICEGROUP_SVC_DOWNTIME;<servicegroup_name>;<start_time>;<end_time>;<fixed>;<trigger_id>;<duration>;<author>;<comment> Description:

Schedules downtime for all services in a specified servicegroup.  If the "fixed" argument is set to one (1), downtime will start and end at the times specified by the "start" and "end" arguments.  Otherwise, downtime will begin between the "start" and "end" times and last for "duration" seconds.  The "start" and "end" arguments are specified in time_t format (seconds since the UNIX epoch).  The service downtime entries can be triggered by another downtime entry if the "trigger_id" is set to the ID of another scheduled downtime entry.  Set the "trigger_id" argument to zero (0) if the downtime for the services should not be triggered by another downtime entry.

func ScheduleSvcCheck

func ScheduleSvcCheck(host_name string, service_description string, check_time time.Time) lvst.CommandOpFunc

ScheduleSvcCheck is generated from the nagios external command definition: Desfinition: SCHEDULE_SVC_CHECK;<host_name>;<service_description>;<check_time> Description:

Schedules the next active check of a specified service at "check_time".  The "check_time" argument is specified in time_t format (seconds since the UNIX epoch).  Note that the service may not actually be checked at the time you specify.  This could occur for a number of reasons: active checks are disabled on a program-wide or service-specific basis, the service is already scheduled to be checked at an earlier time, etc.  If you want to force the service check to occur at the time you specify, look at the SCHEDULE_FORCED_SVC_CHECK command.

func SendCustomHostNotification

func SendCustomHostNotification(host_name string, options int, author string, comment string) lvst.CommandOpFunc

SendCustomHostNotification is generated from the nagios external command definition: Desfinition: SEND_CUSTOM_HOST_NOTIFICATION;<host_name>;<options>;<author>;<comment> Description:

Allows you to send a custom host notification.  Very useful in dire situations, emergencies or to communicate with all admins that are responsible for a particular host.  When the host notification is sent out, the $NOTIFICATIONTYPE$ macro will be set to "CUSTOM".  The <options> field is a logical OR of the following integer values that affect aspects of the notification that are sent out: 0 = No option (default), 1 = Broadcast (send notification to all normal and all escalated contacts for the host), 2 = Forced (notification is sent out regardless of current time, whether or not notifications are enabled, etc.), 4 = Increment current notification # for the host (this is not done by default for custom notifications).  The comment field can be used with the $NOTIFICATIONCOMMENT$ macro in notification commands.

func SendCustomSvcNotification

func SendCustomSvcNotification(host_name string, service_description string, options int, author string, comment string) lvst.CommandOpFunc

SendCustomSvcNotification is generated from the nagios external command definition: Desfinition: SEND_CUSTOM_SVC_NOTIFICATION;<host_name>;<service_description>;<options>;<author>;<comment> Description:

Allows you to send a custom service notification.  Very useful in dire situations, emergencies or to communicate with all admins that are responsible for a particular service.  When the service notification is sent out, the $NOTIFICATIONTYPE$ macro will be set to "CUSTOM".  The <options> field is a logical OR of the following integer values that affect aspects of the notification that are sent out: 0 = No option (default), 1 = Broadcast (send notification to all normal and all escalated contacts for the service), 2 = Forced (notification is sent out regardless of current time, whether or not notifications are enabled, etc.), 4 = Increment current notification # for the service(this is not done by default for custom notifications).   The comment field can be used with the $NOTIFICATIONCOMMENT$ macro in notification commands.

func ServiceDescription

func ServiceDescription(c *lvst.Command, s string)

func ServiceGroupName

func ServiceGroupName(c *lvst.Command, s string)

func SetHostNotificationNumber

func SetHostNotificationNumber(host_name string, notification_number int) lvst.CommandOpFunc

SetHostNotificationNumber is generated from the nagios external command definition: Desfinition: SET_HOST_NOTIFICATION_NUMBER;<host_name>;<notification_number> Description:

Sets the current notification number for a particular host.  A value of 0 indicates that no notification has yet been sent for the current host problem.  Useful for forcing an escalation (based on notification number) or replicating notification information in redundant monitoring environments. Notification numbers greater than zero have no noticeable affect on the notification process if the host is currently in an UP state.

func SetSvcNotificationNumber

func SetSvcNotificationNumber(host_name string, service_description string, notification_number int) lvst.CommandOpFunc

SetSvcNotificationNumber is generated from the nagios external command definition: Desfinition: SET_SVC_NOTIFICATION_NUMBER;<host_name>;<service_description>;<notification_number> Description:

Sets the current notification number for a particular service.  A value of 0 indicates that no notification has yet been sent for the current service problem.  Useful for forcing an escalation (based on notification number) or replicating notification information in redundant monitoring environments. Notification numbers greater than zero have no noticeable affect on the notification process if the service is currently in an OK state.

func ShutdownProgram

func ShutdownProgram() lvst.CommandOpFunc

ShutdownProgram is generated from the nagios external command definition: Desfinition: SHUTDOWN_PROGRAM Description:

Shuts down the Nagios process.

func Start

func Start(c *lvst.Command, t time.Time)

func StartAcceptingPassiveHostChecks

func StartAcceptingPassiveHostChecks() lvst.CommandOpFunc

StartAcceptingPassiveHostChecks is generated from the nagios external command definition: Desfinition: START_ACCEPTING_PASSIVE_HOST_CHECKS Description:

Enables acceptance and processing of passive host checks on a program-wide basis.

func StartAcceptingPassiveSvcChecks

func StartAcceptingPassiveSvcChecks() lvst.CommandOpFunc

StartAcceptingPassiveSvcChecks is generated from the nagios external command definition: Desfinition: START_ACCEPTING_PASSIVE_SVC_CHECKS Description:

Enables passive service checks on a program-wide basis.

func StartExecutingHostChecks

func StartExecutingHostChecks() lvst.CommandOpFunc

StartExecutingHostChecks is generated from the nagios external command definition: Desfinition: START_EXECUTING_HOST_CHECKS Description:

Enables active host checks on a program-wide basis.

func StartExecutingSvcChecks

func StartExecutingSvcChecks() lvst.CommandOpFunc

StartExecutingSvcChecks is generated from the nagios external command definition: Desfinition: START_EXECUTING_SVC_CHECKS Description:

Enables active checks of services on a program-wide basis.

func StartObsessingOverHost

func StartObsessingOverHost(host_name string) lvst.CommandOpFunc

StartObsessingOverHost is generated from the nagios external command definition: Desfinition: START_OBSESSING_OVER_HOST;<host_name> Description:

Enables processing of host checks via the OCHP command for the specified host.

func StartObsessingOverHostChecks

func StartObsessingOverHostChecks() lvst.CommandOpFunc

StartObsessingOverHostChecks is generated from the nagios external command definition: Desfinition: START_OBSESSING_OVER_HOST_CHECKS Description:

Enables processing of host checks via the OCHP command on a program-wide basis.

func StartObsessingOverSvc

func StartObsessingOverSvc(host_name string, service_description string) lvst.CommandOpFunc

StartObsessingOverSvc is generated from the nagios external command definition: Desfinition: START_OBSESSING_OVER_SVC;<host_name>;<service_description> Description:

Enables processing of service checks via the OCSP command for the specified service.

func StartObsessingOverSvcChecks

func StartObsessingOverSvcChecks() lvst.CommandOpFunc

StartObsessingOverSvcChecks is generated from the nagios external command definition: Desfinition: START_OBSESSING_OVER_SVC_CHECKS Description:

Enables processing of service checks via the OCSP command on a program-wide basis.

func StatusCode

func StatusCode(c *lvst.Command, i int)

func Sticky

func Sticky(c *lvst.Command, b bool)

func StopAcceptingPassiveHostChecks

func StopAcceptingPassiveHostChecks() lvst.CommandOpFunc

StopAcceptingPassiveHostChecks is generated from the nagios external command definition: Desfinition: STOP_ACCEPTING_PASSIVE_HOST_CHECKS Description:

Disables acceptance and processing of passive host checks on a program-wide basis.

func StopAcceptingPassiveSvcChecks

func StopAcceptingPassiveSvcChecks() lvst.CommandOpFunc

StopAcceptingPassiveSvcChecks is generated from the nagios external command definition: Desfinition: STOP_ACCEPTING_PASSIVE_SVC_CHECKS Description:

Disables passive service checks on a program-wide basis.

func StopExecutingHostChecks

func StopExecutingHostChecks() lvst.CommandOpFunc

StopExecutingHostChecks is generated from the nagios external command definition: Desfinition: STOP_EXECUTING_HOST_CHECKS Description:

Disables active host checks on a program-wide basis.

func StopExecutingSvcChecks

func StopExecutingSvcChecks() lvst.CommandOpFunc

StopExecutingSvcChecks is generated from the nagios external command definition: Desfinition: STOP_EXECUTING_SVC_CHECKS Description:

Disables active checks of services on a program-wide basis.

func StopObsessingOverHost

func StopObsessingOverHost(host_name string) lvst.CommandOpFunc

StopObsessingOverHost is generated from the nagios external command definition: Desfinition: STOP_OBSESSING_OVER_HOST;<host_name> Description:

Disables processing of host checks via the OCHP command for the specified host.

func StopObsessingOverHostChecks

func StopObsessingOverHostChecks() lvst.CommandOpFunc

StopObsessingOverHostChecks is generated from the nagios external command definition: Desfinition: STOP_OBSESSING_OVER_HOST_CHECKS Description:

Disables processing of host checks via the OCHP command on a program-wide basis.

func StopObsessingOverSvc

func StopObsessingOverSvc(host_name string, service_description string) lvst.CommandOpFunc

StopObsessingOverSvc is generated from the nagios external command definition: Desfinition: STOP_OBSESSING_OVER_SVC;<host_name>;<service_description> Description:

Disables processing of service checks via the OCSP command for the specified service.

func StopObsessingOverSvcChecks

func StopObsessingOverSvcChecks() lvst.CommandOpFunc

StopObsessingOverSvcChecks is generated from the nagios external command definition: Desfinition: STOP_OBSESSING_OVER_SVC_CHECKS Description:

Disables processing of service checks via the OCSP command on a program-wide basis.

func TimePeriod

func TimePeriod(c *lvst.Command, s string)

func TriggerID

func TriggerID(c *lvst.Command, i int)

func Value

func Value(c *lvst.Command, s string)

func VarName

func VarName(c *lvst.Command, s string)

func VarValue

func VarValue(c *lvst.Command, s string)

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL