Detects hostname/interface ip

- Hostname is monitor's id. Incidents will be created with the monitor id.
This commit is contained in:
Matej Kramny
2015-03-21 11:44:52 +01:00
parent bdb426c232
commit dce1978b51
4 changed files with 50 additions and 12 deletions

View File

@@ -78,7 +78,7 @@ func (monitor *Monitor) AnalyseData() {
fmt.Println("Creating incident...")
monitor.Incident = &Incident{
Name: monitor.Name,
Name: monitor.Name + " - " + Config.SystemName,
Message: monitor.Name + " failed",
}