Monitoring (nagios) Proxmox Cluster logs

Gabor Szel

Active Member
Nov 8, 2018
8
0
41
44
Hi!

We make monitoring tools for Proxmox.
We want to monitor the status of the logs.
it's simple using an API.

example: pvesh get /cluster/log

But no documentation was found for the output:
┌─────────┬───────────────────────────────────────────────────────────────────────────────────────────────┬──────┬───────┬─────┬───────────┬────────────┬──────┬──────────┐ │ id │ msg │ node │ pid │ [B]pri[/B] │ tag │ time │ uid │ user │ ╞═════════╪═══════════════════════════════════════════════════════════════════════════════════════════════╪══════╪═══════╪═════╪═══════════╪════════════╪══════╪══════════╡ │ 1441:n1 │ starting task UPID:n1:00007590:36366A42:61E89A4A:vzdump::root@pam: │ n1 │ 30006 │ 6 │ vzdump │ 1642633803 │ 1441 │ root@pam │ ├─────────┼───────────────────────────────────────────────────────────────────────────────────────────────┼──────┼───────┼─────┼───────────┼────────────┼──────┼──────────┤ │ 1442:n1 │ starting task UPID:n1:00007644:36366B2B:61E89A4D:qmshutdown:111:root@pam: │ n1 │ 30104 │ 6 │ qm │ 1642633805 │ 1442 │ root@pam │ ├─────────┼───────────────────────────────────────────────────────────────────────────────────────────────┼──────┼───────┼─────┼───────────┼────────────┼──────┼──────────┤ │ 1443:n1 │ end task UPID:n1:00007644:36366B2B:61E89A4D:qmshutdown:111:root@pam: VM quit/powerdown failed │ n1 │ 30104 │ [B]3[/B] │ qm │ 1642634405 │ 1443 │ root@pam │

I think, "pri" is the status code:
- 6 - OK
- 3 - Error
but other values are conceivable.

Are these codes available somewhere?
 
  • Like
Reactions: Gabor Szel