Nocward
Nocward Monitoring
Nocward Monitoring How-to guides 4 min read

Service checks, business services and status pages

Check ports, web pages, multi-step web scenarios, DNS, certificates, databases and your own scripts, combine devices and checks into business services with an SLA, and publish a status page for your customers.

Last updated 11 November 2026

Service checks

The Add check form Add check: name, type, interval and the target - a URL for an HTTP(S) check.

Devices tell you how the hardware is. Service checks tell you whether the service on top works - the web page answers, the DNS name resolves, the certificate is valid. They run from the collector on their own schedule.

Service checks → Add check, choose the type:

Type Checks
TCP port The port accepts a connection
HTTP(S) The status code (empty = any 2xx or 3xx), optionally text the page must contain, the certificate
Web scenario Several HTTP steps in order, sharing cookies - so a login step keeps the session for the next ones. Fails at the first failing step.
DNS A record of a given type, optionally the text the answer must contain, from a chosen DNS server or the collector’s own resolver
TLS certificate Days until the certificate expires - fails below your threshold
PostgreSQL, MySQL Signs in and runs a query
Script (collector) Your own script or a bundled plugin, on the collector’s server
Script (agent) A script on a host with the Nocward Agent - appears by itself

For every check set Every (s), Timeout (s) and Alert after - how many failures in a row raise the service check failed alert. Optionally tie the check to a device: it then shows on the device page, and the device’s upstream dependency applies. With more than one collector, choose the one that runs it.

The list shows each check’s state, response time, 24-hour uptime and last run; open a check for its history chart and recent failures. Results are kept 92 days.

Script checks

Your own checks, and any existing monitoring plugin, without changing the product. The usual plugin convention applies:

  • exit code 0 OK, 1 WARNING, 2 CRITICAL, anything else UNKNOWN;
  • the first output line is the status text;
  • performance data after | ('label'=value[UOM];warn;crit;min;max) becomes device metrics (svc_perf.<check>.<label>) with graphs, Live Readings and threshold alerts.

OK and WARNING count as up (a warning is shown in orange); CRITICAL and UNKNOWN fail the check.

On the collector (administrators only): put the script into /opt/netmon/scripts on the collector’s server with mode 755. Within a minute it appears in the script list next to the bundled plugins (check_http, check_disk, check_ping, check_tcp and others). Scripts run as nobody, without a shell, with the check’s timeout. Arguments are passed as written; {host} and {port} are filled in from the check. The first comment line of a script is shown as its description. The web interface can only pick a script - it never uploads or edits one.

Example, /opt/netmon/scripts/check_backup_age.sh:

#!/bin/sh
# Age of the newest file in a backup folder
age=$(( ($(date +%s) - $(stat -c %Y "$(ls -t "$1"/* | head -1)")) / 3600 ))
if [ "$age" -ge 48 ]; then echo "CRITICAL - newest backup ${age}h old | age=${age};24;48"; exit 2; fi
if [ "$age" -ge 24 ]; then echo "WARNING - newest backup ${age}h old | age=${age};24;48"; exit 1; fi
echo "OK - newest backup ${age}h old | age=${age};24;48"

On a host with the agent: see Script checks on the host.

Business services

A business service is what your users rely on - E-mail, Branch North internet, Billing portal - built from devices, device groups and service checks.

Business services → Add service:

  1. Name it and add its components.
  2. Choose when it is up:
    • all components are up - a chain, for example firewall plus server;
    • at least one is up - redundant links;
    • at least N are up - a cluster.
  3. Set an SLA target in percent and save.

The state is re-checked every minute: up, degraded or down. A change raises the business service alert (degraded is sent as a warning). Availability comes from the state history - degraded counts as available - and is shown against the SLA target.

Public status pages

A status page shows your customers the state and 90 days of daily availability of the services you choose, and the incidents you post - without signing in and without showing the components behind them.

  1. Business services → Status pages: pick services and Publish. Share the link.
  2. Post incident when something happens: a title and what you are doing about it, with the stage - investigating, identified, monitoring, resolved.
  3. New link retires the old address, for example when a link was shared too widely.

Was this page helpful?

Have an idea for the product itself? Suggest an idea