Skip to content

Monitor (always-on watch) ​

The always-on watch is a PBX watch that never ends. Switch it on once for a profile and PBXsight records what FreeSWITCH sees around the clock — real users' calls, outcomes, post-dial delay, audio quality, registrations, idle CPU — over ESL only, without placing a call. Every trend window gets its own verdict, a failed window sends one e-mail alert, and the Monitor page shows the live state and compares the days.

It answers: is the PBX fine right now, when did it last have a problem, and how do today and last week compare? — without starting or restarting anything.

First step: open your profile (Profiles → the profile) and switch Always-on watch on; the Monitor page fills from the first window.

Switch it on ​

On the profile page (Profiles → a profile) the Always-on watch card has the switch and the window size (1 min … 60 min, default 5 min). Operators and admins can change it; viewers see it read-only. The setting is stored apart from the profile's other settings, so it can be switched while a test runs on the profile (the rest of the profile form stays locked then) and switching it never reconnects ESL.

It needs the profile's ESL connection and a valid licence when a day's segment starts (see Pauses). It starts again by itself when PBXsight starts.

Run load tests beside it ​

The always-on watch is not a run in the one-at-a-time sense: load tests, limit runs, schedules and hand-started watches start while it runs, and it never blocks one.

While a load test runs on the same profile, the events PBXsight's test-traffic filter tags as test traffic (the run tag, the pbxsight/<run> User-Agent, the test extensions incl. B-legs to test callees) are left out of calls, outcomes, registrations, post-dial delay, audio and tenants, so the watch shows your users' traffic. Between tests the same extensions count like any other user.

What the PBX reports for the whole box can't be split and includes the test's load: FreeSWITCH idle CPU, the calls / channels / registrations counts, sessions per second, Kamailio and rtpengine counters, stuck calls. Windows that overlapped a load test are shaded on the chart; their idle CPU check is skipped (load test running), and the day's lowest idle CPU leaves them out.

Known gap

A B-leg towards an outside number with a rewritten caller ID carries none of the tags and can still be counted as user traffic.

One segment per day ​

The history is stored as one PBX watch run per profile per local day (server time zone), called a segment. A segment starts when the watch is switched on (or the app starts) and ends at the next local midnight; the next one starts at once. Windows fall on clock boundaries (10:00, 10:05, …; a first window shorter than half a window is merged into the next).

Each segment is an ordinary run: it is in Results with an Always-on badge, has a run page titled Always-on watch, 2026-11-30, a verdict over the day, the HTML report and JSON / CSV export, and can be compared like any watch. It has no Stop button and is never a baseline. A running segment can't be deleted.

While a segment runs, its run page shows the windows and totals of the last checkpoint (stored after every window: in progress, updates each window); the Monitor page has the live view.

The data retention removes a segment's per-second data (about 86 400 samples per profile per day) and watch.log after the retention period like any run; the windows, verdicts and totals stay forever, so the Monitor page still compares days weeks later.

A segment ends withNote on the run
local midnightday ended
switched offmonitor turned off
the window size changedwindow size changed (the next segment uses the new size)
the profile savedprofile saved (the next segment uses the new settings)
the profile deletedprofile deleted
PBXsight stoppedPBXsight stopped
a crash (kill, power loss)interrupted at 14:05, data up to the last window — completed with the last checkpoint

Window verdict ​

When a window closes it is checked against the profile's watch criteria (Profiles → criteria → PBX watch):

CheckCriterionNeeds
Call successmin_window_call_success_rate10 decided calls (answered, busy / no answer, failed)
Dropped callsmax_dropped_pct10 answered calls
Post-dial delay p95max_setup_p95_ms10 calls that reached ringing
MOS (FreeSWITCH, all legs)min_mos3 legs with audio
Registration successmin_success_rate10 REGISTERs
Registration failures/minmax_reg_failures_per_min—
Idle CPU, lowestmin_idle_cpuFreeSWITCH reports it; no load test in the window
ESL data coveragemin_coverage_pct—
Internal legs, peakmax_internal_legs—

With less data a check is skipped; with nothing checked the window has no verdict. The day's verdict is the PBX watch verdict over the whole segment (overall call success, MOS drop over time, …); the optional Kamailio / rtpengine criteria are not applied to segments.

Alerts ​

With e-mail alerts set up and an always-on watch window fails switched on (default):

  • one problem e-mail when the profile goes from OK to a failed window: the window's clock time, each failed check (value vs limit) and a link to the Monitor page (with the App URL set);
  • no more e-mails while windows keep failing;
  • one recovered e-mail at the first passing window after that.

At most one problem e-mail per profile per hour (a flapping guard); the next one says how many incidents were not mailed. The end of a day sends no run failed e-mail.

Read the Monitor page ​

Monitor in the top bar, for the profile selected there.

The Monitor page: always-on watch status, history chart and the day-by-day table
Monitor: the always-on watch of the selected profile — state, the history chart over a date range and one row per day.
PartWhat it shows
Headerthe state (watching, problem while windows fail, paused with the reason, off), Watching since …, the window size, today's segment, the last window's verdict, the last problem
Problem boxwhile windows fail: since when, how many windows, the failed checks with value and limit
Load test notea load test runs on the profile: its calls are left out, the CPU check is skipped
Current windowprogress bar and tiles from the live connection: calls up now, calls, failed and REGISTER failures in the open window, the last window's verdict
HistoryToday / 7 days / 30 days or a from–to range (at most 31 days); one point per window for Calls & success, PDD p95, MOS, Idle CPU, REG failures on a clock-time axis; red dots = failed windows, shaded = a load test ran. Long ranges with short windows merge neighbouring windows into one point.
Day by dayone row per segment: calls, success, answered, dropped, PDD p95, MOS avg · min, REGISTER failures, lowest idle CPU (windows without a load test), coverage, failed windows · load-test windows; the day links to its run page

When the watch is off the page says Always-on watch is off for this profile, with a link to the profile's card for operators.

The Dashboard shows a one-line card whenever the selected profile's watch is on.

Pauses ​

StateWhenWhat happens
paused: ESL disabled in profile Xthe profile has no ESLwaits; starts once ESL is enabled
paused: no valid licenceno valid licence when a segment would startchecked every minute; resumes by itself. A running segment finishes its day when the licence ends meanwhile
running, with gapsESL disconnectednot a pause: seconds without data are gaps (coverage), watch.log notes ESL connection lost

Control it over the API ​

RequestRole
GET /api/monitor?profile=IDanystate, reason, since, window, current segment, last window with verdict + failed checks, open incident
PUT /api/monitor/ID {"enabled": true, "window_s": 300}operatorwindow 60 … 3600 s (else 400); activity log monitor.on / monitor.off / monitor.window
GET /api/monitor/history?profile=ID&from=YYYY-MM-DD&to=YYYY-MM-DDanyone row per segment and the windows (from summaries only, works for pruned days); ≤ 31 days, default the last 7

The live /ws tick carries monitor for the watched profile (state, last second, open window).

PBXsight — load testing and monitoring for FreeSWITCH PBXes. Only test systems you own or may test.