This is a service to monitor availability of the IT infrastructure of the experiment systems, such as hosts, databases, web interfaces.
{
"PING": { <-- Section to specify hosts probed with ICMP ping
"server1": { <-- Test name used in notifications
"HOST": "192.168.65.116", <-- Host IP address or name resolvable with DNS
"NOTIFY": "mail1.jinr.ru" <-- Email or list of emails
},
"server2": { <-- Multiple test targets are supported
"HOST": "myserver.jinr.ru" <-- If you do not specify "NOTIFY" it takes it from the global level
}
},
"DATABASE": { <-- Section to specify hosts probed with database (PGSQL) request
"server1": { <-- Test name used in notifications
"SERVER": "192.168.65.116", <-- Host IP address or name resolvable with DNS
"DBMS": "PGSQL", <-- Databse type (currently, only PGSQL is supported)
"PORT": 5432, <-- TCP port
"DBNAME": "mydb1", <-- Database name to query
"USER": "user_reader1", <-- Username
"PASS": "user_pass1", <-- Password
"NOTIFY": "mail3.jinr.ru,mail5.jinr.ru" <-- Email or list of emails
},
"server2": { <-- Multiple test targets are supported
... <-- Use same parameter names as above
}
},
"WEB": { <-- Section to specify Web interfaces (sites) probed with HTTP (Get) request
"mywebsite": { <-- Test name used in notifications
"HTTP": "http://mywebsite.jinr.ru" <-- URL address with the protocol prefix (HTTP or HTTPS)
},
"mywebinter": { <-- Multiple test targets are supported
... <-- Use same parameter names as above
}
},
"OUTPUT": { <-- This optional section describes where to write data about service availability
(if this section is omitted, service works in 'standalone' mode and only email notifications are sent)
"DBMS": "INFLUXDB", <-- Currently, only InfluxDB is supported
"SERVER": "192.168.65.52", <-- InfluxDB server host
"PORT": 8086, <-- InfluxDB database port
"DBNAME": "myinfluxdbname", <-- InfluxDB database name
"USER": "influxdbuser", <-- InfluxDB username (optional), needed if authentication is required
"PASS": "influxdbpass", <-- InfluxDB password (optional), needed if authentication is required
"NOTIFY": "mail1.jinr.ru,mail2.jinr.ru" <-- Where to sent notifications about InfluxDB availability
},
"INTERVAL_SEC": 450, <-- Interval to wait between probe requests
"MAIL": { <-- Mail server parameters
"SERVER": "smtp.jinr.ru",
"PORT": 587,
"USER": "***",
"PASS": "***"
},
"LOG": "mail1.jinr.ru,mail2.jinr.ru", <-- Email adress(es) to send global notifications (service start and termination)
"NOTIFY": "mail-default@jinr.ru", <-- This email(s) will be used if NOTIFY is not specified at the test/output level
"NAME": "My Monitoring Service" <-- Service name used in notifications
}
JSON config file name must be provided. There is no default file name.