Check infomaniak-events

Overview

Informs you about open events at Infomaniak via the Infomaniak API. To use this check, you have to create a Bearer Token with scope „event“ at Infomaniak first.

„Services“ (service categories) that we know about and that can be filtered:

  • certificate

  • cloud

  • email_hosting

  • hosting

  • housing

  • jelastic

  • public_cloud

  • radio

  • swiss_backup

  • web_hosting

  • webmail

Links:

Fact Sheet

Check Plugin Download

https://github.com/Linuxfabrik/monitoring-plugins/tree/main/check-plugins/infomaniak-events

Check Interval Recommendation

Every minute

Can be called without parameters

No

Compiled for

Linux, Windows

Help

usage: infomaniak-events [-h] [-V] [--always-ok] [--insecure] [--no-proxy]
                         [--service SERVICE] [--timeout TIMEOUT] --token TOKEN
                         [--test TEST]

Informs you about open events at Infomaniak.

options:
  -h, --help         show this help message and exit
  -V, --version      show program's version number and exit
  --always-ok        Always returns OK.
  --insecure         This option explicitly allows to perform "insecure" SSL
                     connections. Default: False
  --no-proxy         Do not use a proxy. Default: False
  --service SERVICE  Only report this service category (repeating). Example:
                     `--service=swiss_backup --service=public_cloud`. Default:
                     none (so report all)
  --timeout TIMEOUT  Network timeout in seconds. Default: 8 (seconds)
  --token TOKEN      Infomaniak API token
  --test TEST        For unit tests. Needs "path-to-stdout-file,path-to-
                     stderr-file,expected-retc".

Usage Examples

./infomaniak-events --token=TOKEN --service=public_cloud --service=swiss_backup

Output:

information: Wave of fraudulent e-mails () - see https://infomaniakstatus.com/en/

Type        ! Title                                ! Services      ! Start               ! End                             ! Duration
------------+--------------------------------------+---------------+---------------------+---------------------------------+----------
impacting   ! Swiss Backup: planned Acronis update ! swiss_backup  ! 2023-05-22 20:30:55 ! 2023-05-23 00:31:10 (1M 2W ago) ! 4h 15s
impacting   ! Public Cloud: service disruption     ! public_cloud  ! 2023-05-10 19:30:15 ! 2023-05-10 20:12:02 (1M 3W ago) ! 41m 47s

States

  • WARN if an event is not in state „terminated“

Perfdata / Metrics

Name

Type

Description

event

Number

0 = no event, 1 = event in progress

Credits, License