Update server/monitor-types/sip-options.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user