Update server/monitor-types/sip-options.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>
pull/5362/head
Eddie Fiorentine 4 months ago committed by GitHub
parent 7827033456
commit afa81fdef8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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);
}
/**

Loading…
Cancel
Save