ispapp-go-alarm

command module
v0.0.0-...-af4085f Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: GPL-2.0 Imports: 15 Imported by: 0

README

ispapp-go-alarm

Connects to the ISPApp server using your sessionKey and alarms with sound when hosts or specified hosts are offline.

Click your email address in the top right corner of the ISPApp Dashboard to get your Session Key.

Building

git clone https://github.com/ispapp/ispapp-go-alarm
cd ispapp-go-alarm

Modify the -hostKey and -domain arguments and run this command.

GO111MODULE=off go run ispapp-go-alarm.go -domain "dev.ispapp.co" -sessionKey "yoursessionkey"

Only alarm about specific hosts with the -alarmHosts argument.

GO111MODULE=off go run ispapp-go-alarm.go -domain "dev.ispapp.co" -sessionKey "yoursessionkey" -alarmHosts "host1,host2"

Ignore specific hosts with the -ignoreHosts argument.

GO111MODULE=off go run ispapp-go-alarm.go -domain "dev.ispapp.co" -sessionKey "yoursessionkey" -ignoreHosts "host1,host2"

Packaging a non-os bundled ca certificate in the program

Storing a ca-bundle file in ispapp-go-alarm.go for ease of distribution.

cd tools
go ca-bundle-to-hex-string.go -in /path/to/domain.ca-bundle

Then copy the text output with no newlines as the ca_bundle_hex variable data in /ispapp-go-alarm.go.

license

The project ispapp-go-alarm is licensed MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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