Documentation
¶
Overview ¶
Package cmd commands
Package cmd commands
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = configName Version = "not set" Commit = "snapshot" Date = "undefined" )
Version, Build Commit and Date are filled in during build by the Makefile noinspection GoUnusedGlobalVariable
View Source
var ( // RootCmd entry point to start RootCmd = &cobra.Command{ Use: "hmcli", Short: "hmcli – Homematic Command Line and Icinga compatible Monitoring Tool", Long: `Query Tool and Nagios/Icinga check plugin for Homematic/Raspberrymatic with XMLAPI`, SilenceErrors: true, } )
Functions ¶
func GetPlugin ¶
func GetPlugin() *nagios.Plugin
GetPlugin returns the nagios plugin for the library
func GetVersion ¶
GetVersion extract compiled version info
func NagiosResult ¶
func NagiosResult(status string, output string, longOutput string, perfdata []nagios.PerformanceData) *nagios.Plugin
NagiosResult is a helper function to return a nagios plugin result
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.