VisorMon User Guide
  1. 1Welcome to VisorMon
  2. 2Getting started
  3. 3The dashboard
  4. 4Nodes
  5. 5Guests
  6. 6Working with a guest
  7. 7Storage
  8. 8Search, tasks and alerts
  9. 9Settings
  10. 10Security and privacy
  11. 11VisorMon Pro
  12. 12Troubleshooting
  13. 13Quick reference

Download the PDF

Chapter 8

Search, tasks and alerts

Searching the cluster, following tasks and their logs, notifications and alerts.

8.2Cluster tasks

Proxmox runs longer jobs, such as backups, migrations and starting a guest, as tasks, and keeps a log of each one. The task list shows the cluster's recent tasks, from every node.

The Tasks screen: vzdump 102 on pve2 marked running in orange, then finished tasks such as qmsnapshot 100 and vzdump 100 marked OK in green, and qmstop 103 with VM quit/powerdown failed in red
The cluster's recent tasks.

To open the list, tap the clock button, Cluster tasks, at the top right of any main tab. When tasks are running, a number on the button shows how many.

The newest tasks are at the top. Each task shows:

Name
The task type, followed by what it is for, usually a guest's VMID. For example, vzdump 102 is a backup of guest 102. See Reading task names.
Details
The node it ran on, the user who started it, and how long ago it started, for example pve2 • root@pam • 1m.
Status
running while it runs, OK when it finished without problems, or the message Proxmox recorded, in red, such as VM quit/powerdown failed. Warnings are shown in red too.

The list refreshes on its own while VisorMon is open, as often as Settings › Data refresh says: about every 5 seconds, 30 seconds or 5 minutes (see Settings). It also refreshes right after you start some tasks from VisorMon, such as a backup, a restore, a migration or a clone. To refresh it now, tap Refresh at the top right, or pull down on the list. If there are no tasks, it says No cluster tasks.

The list has no filter or search. To see the tasks of one node, open the node's Tasks (see Nodes). A guest's page lists that guest's recent tasks (see Working with a guest).

With Sys.Audit on /, you see every task in the cluster. Without it, Proxmox shows only the tasks started by your own account.

Reading task names

Proxmox names tasks with short codes. Names that start with qm are for VMs and names that start with vz are for containers, except vzdump, which backs up both. Some common ones:

TaskWhat it does
vzdumpBacks up a VM or container
qmstart, qmshutdown, qmstop, qmrebootStarts, shuts down, stops or reboots a VM
vzstart, vzshutdown, vzstop, vzrebootThe same for a container
qmsnapshot, vzsnapshotTakes a snapshot
qmigrate, vzmigrateMigrates a guest to another node
qmclone, vzcloneClones a guest
qmrestore, vzrestoreRestores a backup
aptupdateRefreshes a node's list of available updates

A task's log

The vzdump 100 task: vzdump, ID 100 • pve • root@pam and OK at the top, then the Log of the backup, ending with Backup job finished successfully and TASK OK
A backup task's log.

Tap a task to open it. At the top are the task type, its details (for example ID 100 • pve • root@pam) and its status. Below, under Log, are the lines Proxmox recorded, in a fixed-width font. Touch and hold the log to select and copy text. A task with an empty log says No log lines.

Good to know:

  • VisorMon shows the first 50 lines of the log. For a longer log, such as a large backup's, read the rest in the Proxmox web interface.
  • The log is read once, when you open the task. For a task that is still running, go back and open it again to see newer lines.
  • The status at the top is the one the task had when you opened it.
  • You can always read the logs of your own tasks. For other people's tasks, Proxmox asks for Sys.Audit on the node (/nodes/<node>). Without it, VisorMon shows No permission where the log would be.

Stopping a running task

A task that was running when you opened it has an Abort button at the top right.

  1. Open the running task from the list.
  2. Tap Abort.
  3. VisorMon asks Abort task?, naming the task, and reminds you that Work already finished stays as it is. Tap Abort to stop it, or Cancel.

VisorMon asks Proxmox to stop the task, then reloads the log and the task list. The open task page keeps its old status and its Abort button, so go back to the list to see how the task ended.

  • Privileges. You can stop your own tasks. To stop someone else's, Proxmox asks for Sys.Modify on the node (/nodes/<node>). If Proxmox turns the request down, VisorMon shows No permission where the log would be.
  • Read-only mode. Stopping a task is a change, so read-only mode blocks it. VisorMon shows Read only is on. Turn it off in Settings to make this change. where the log would be. See Security and privacy.
  • Audit log. VisorMon records the request in its audit log, or records that read-only mode blocked it (see Security and privacy).
  • Demo mode. Nothing is sent. VisorMon shows This is sample data. Nothing was sent.

8.3Alerts and notifications

VisorMon has one alert: it tells you when it can't refresh the dashboard from your server. It shows the alert in the app and, if you allow it, as a notification on your phone.

When VisorMon raises the alert

The dashboard refreshes on its own as often as Settings › Data refresh says, even while you are on another tab, and when you pull down on it. If a refresh fails, for example because the server is off, your phone has left the network the server is on, or the server does not answer in time, VisorMon does the following, as long as it has loaded the dashboard successfully on this device at least once before:

  • A banner at the top of the main tabs reads Showing saved data from, followed by the date and time of the last successful refresh.
  • A Needs attention bar appears below it, reading Could not refresh. Tap it to open the Alerts screen, which lists Could not refresh: Showing the last saved dashboard.
  • The dashboard keeps showing the figures from its last successful refresh, and Last updated stays at that time. If nothing has loaded since you opened VisorMon, the dashboard shows the error instead (see The dashboard).
  • If Enable notifications is on, your phone shows a notification titled Could not refresh, with the text Showing the last saved dashboard.

You get one notification each time the connection is lost, not one per failed refresh. When a refresh succeeds again, the banner and the Needs attention bar go away, and the next failure raises the alert again.

The banner and the bar show on the five main tabs, not on the screens you open from them. For help with the connection itself, see Troubleshooting.

Turning notifications on or off

Phone notifications are controlled by Enable notifications in Settings, which is on until you turn it off (see Settings). Turning it off stops only the phone notification. The banner and the Needs attention bar still appear in the app.

Your phone must also allow VisorMon to send notifications:

  • iPhone. VisorMon asks for permission the first time it starts. If you said no, allow notifications for VisorMon in the iPhone's Settings app. The switch in VisorMon can't override the phone's setting.
  • Android. VisorMon asks for permission when you turn Enable notifications on. The switch starts out on, so if you have never been asked, turn it off and on again. The notifications use a channel called VisorMon Alerts, which you can also manage in Android's settings for the app.

What the alert can't do

  • It only covers the connection. VisorMon does not notify you when a guest stops, a node goes offline, a task fails, storage fills up or a reading is high. In a cluster, if one node goes down but the server VisorMon connects to still answers, the refresh succeeds and there is no alert. You see these things when you open the dashboard, the task list or the Storage tab (see The dashboard).
  • It only works while VisorMon is running. VisorMon does not use push notifications. The app itself does the checking, on your phone, so once your phone suspends or closes VisorMon, nothing is checked and no alert arrives.
  • It needs a first successful load. Until VisorMon has loaded the dashboard from a server on this device, a failed refresh raises no alert.

To be told about problems around the clock, set up notifications in Proxmox VE itself, under Datacenter › Notifications in the web interface.