mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 09:13:21 +00:00
Update server/monitor-types/sip-options.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
co-authored by
Frank Elsinga
parent
7827033456
commit
afa81fdef8
@@ -15,12 +15,8 @@ class SIPMonitorType extends MonitorType {
|
||||
* @throws Will throw an error if the command execution encounters any error.
|
||||
*/
|
||||
async check(monitor, heartbeat, _server) {
|
||||
try {
|
||||
let sipsakOutput = await this.runSipSak(monitor.hostname, monitor.port, 3000);
|
||||
this.parseSipsakResponse(sipsakOutput, heartbeat);
|
||||
} catch (err) {
|
||||
throw new Error(`Error checking Sipsak: ${err} ${err.message} ${err.stack}`);
|
||||
}
|
||||
let sipsakOutput = await this.runSipSak(monitor.hostname, monitor.port, 3000);
|
||||
this.parseSipsakResponse(sipsakOutput, heartbeat);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user