Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Missing vm on jobs #5

Closed
tristanwrona opened this issue Mar 19, 2022 · 1 comment
Closed

Missing vm on jobs #5

tristanwrona opened this issue Mar 19, 2022 · 1 comment

Comments

@tristanwrona
Copy link

Hello,

After running the template, I notice a No Data in the Backup VMJob Status. All other tables are good except this one.

veeam_em_vmjobs_sessions_state doesn't exist on the export. How can I access the backup status of VMs in jobs?

@peekjef72
Copy link
Owner

peekjef72 commented Mar 20, 2022

Theses metrics are based on backup_jobs ( cf: conf/metrics/vm_backup_jobs_sessions_metrics.yml ):

        - name: collect data
          url: "/backupSessions/{{ job.uid }}/taskSessions?format=entity"
          var_name: vmres

an those jobs are obtained by the defintion set in backup_jobs_sessions_metrics.yml
and filtered to restricted to jobs that are less than 1 day.

    - name: collect elements
      url: /backupSessions?format=Entity
      var_name: _root
      vars:
        timestart: "{{ 'now-1d' | to_timestamp() }}"
        jobs: {}

    - name: procceed elements
      with_items: "{{ BackupJobSessions }}"
      when:
        - " item.CreationTimeUTC | to_timestamp() > timestart "
      actions: [...]

What I can say is only several general remarks on how to debug :

  • activate somes messages trace ( add debug output by adding your own or uncomment the already defined :
               - name: debug item
                 debug:
                   msg: "item: {{ item| tojson(indent=2) }}"
  • run the export in "dry_mode" --n or --dry_mode from command line to see the debug message .
  1. you may also request the veeam server, like the exporter does, to check the replies:
    1.1. log to the server to obtain a token session: curl -u [user] https://[veeam_url]/api/sessionMngr/?v=latest
    1.2. collect the session token
    1.3 then use it in further request in header: -H "X-RestSvcSessionId: [token]"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants