LPAR2RRD monitoring XCP-ng

Hello.

I made a new install of lpar2rrd 7.20 on a CentOS 7 VM to monitor XCP-ng, a Citrix Xenserver fork/derivative.

Had run the install.sh script and configured passwordless ssh access to the root user of the 7 XCP-ng servers of one pool.

But do not matter what I try, I can't have the web interface to show the left menu, where I could select XCP objects to graph (please see second picture).

I have seven XCP/Xen hosts of a pool configured (please see first picture)

What can I do to debug what is causing this lack of the expected menu forming below "Reporter" link at the left side of screen?

Thank you.

Antonio


Comments

  • David
    edited July 2021

    Hello,

    1. when you run the Connection test, does it succeed?
    2. corresponding menu folder appears only after (1) data have been fetched from the host (load_xenserver.sh) and then (2) the new menu has been created (load.sh or load.sh html respectively); these scripts are scheduled in crontab and so it may take a while before the changes take effect (about an hour or the next day at most).

    If the previous steps fail, we will investigate further.

  • Hello, David!

    All 7 connection testes give feedback similar to the picture below.



    --//--

    load_xenserver.sh appears to be collecting data, as the rrd files are being created, as the following directory listing example.

    [lpar2rrd@ohm lpar2rrd]$ ll -Rh data/XEN*
    data/XEN:
    total 28K
    drwxr-xr-x. 2 lpar2rrd lpar2rrd 4.0K Jul  1 16:55 1db36d96-41e3-4728-9015-f50cdef3a5f5
    drwxr-xr-x. 2 lpar2rrd lpar2rrd 4.0K Jul  1 16:55 1e4e0073-194e-4f76-92db-c7e6a77dff39
    drwxr-xr-x. 2 lpar2rrd lpar2rrd 4.0K Jul  1 14:20 6b424e4b-cfba-4b0a-a856-4ce0f04c027c
    drwxr-xr-x. 2 lpar2rrd lpar2rrd 4.0K Jul  1 16:55 7031970d-fa54-4b01-a42f-61dc4cedfc1f
    drwxr-xr-x. 2 lpar2rrd lpar2rrd 4.0K Jul  1 16:55 9b55def1-dd35-498b-8183-597bf5c6b040
    drwxr-xr-x. 2 lpar2rrd lpar2rrd 4.0K Jul  1 16:55 bcb6844e-311d-4f4e-9ac6-ea835ebbeae4
    drwxr-xr-x. 2 lpar2rrd lpar2rrd 4.0K Jul  1 16:55 cc20f424-9327-4684-bb7e-64a156894890

    data/XEN/1db36d96-41e3-4728-9015-f50cdef3a5f5:
    total 135M
    -rw-r--r-x. 1 lpar2rrd lpar2rrd  11M Jul  7 08:35 disk-099bc12c.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd  11M Jul  7 08:35 disk-108f25a1.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd  11M Jul  7 08:35 disk-14e4c435.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd  11M Jul  7 08:35 disk-213cf063.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd  11M Jul  7 08:35 disk-263bf264.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd  11M Jul  7 08:35 disk-3ecdad19.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd  11M Jul  7 08:35 disk-4b75ed35.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd  11M Jul  7 08:35 disk-62dda264.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd  11M Jul  7 08:35 disk-73fe8768.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd  11M Jul  7 08:35 disk-934429c1.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd  11M Jul  7 08:35 disk-d899f874.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd  11M Jul  7 08:35 disk-f5f88af2.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd 1.9M Jul  7 08:35 lan-bond0.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd 1.9M Jul  7 08:35 lan-eth0.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd 1.9M Jul  7 08:35 lan-eth1.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd 1.9M Jul  7 08:35 lan-eth2.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd 1.9M Jul  7 08:35 lan-eth3.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd 4.6M Jul  7 08:35 sys.rrd


    <some listings cut off to conserve space>

    data/XEN_iostats:
    total 4.0K
    -rw-r--r-x. 1 lpar2rrd lpar2rrd 3 Oct  8  2019 conf.json
    drwxr-xr-x. 2 lpar2rrd lpar2rrd 6 Jul  7 08:35 json
    drwxr-xr-x. 2 lpar2rrd lpar2rrd 6 Jul  2 00:15 metadata
    drwxr-xr-x. 2 lpar2rrd lpar2rrd 6 Jul  7 08:20 xml

    data/XEN_iostats/json:
    total 0

    data/XEN_iostats/metadata:
    total 0

    data/XEN_iostats/xml:
    total 0

    data/XEN_VMs:
    total 1.6G
    -rw-r--r-x. 1 lpar2rrd lpar2rrd 18M Jul  7 08:35 0388a3ac-d017-e38b-1ffe-48130d318c20.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd 18M Jul  7 08:35 06d4b63c-007c-cd45-7545-f560b56a08ef.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd 18M Jul  7 08:35 079d2582-f17b-315d-38f7-66d11ea2b2b4.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd 18M Jul  7 08:35 0c976578-f5a3-ea3c-e14c-9f40e7fb87e3.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd 18M Jul  7 08:35 0d9124ba-6ff7-ea91-08eb-879c951241a3.rrd
    -rw-r--r-x. 1 lpar2rrd lpar2rrd 18M Jul  7 08:35 0f9f2e70-7415-9b07-824f-430e86287480.rrd

    <some listings cut off to conserve space>

    --//--

    load.sh and load_xenserver.sh both are in crontab, but I had a manual run for each one now. Had to supress its full output to not exceed the characters limit of a post.

    [lpar2rrd@ohm lpar2rrd]$ ./load.sh

    timestamp      : Wed Jul  7 08:38:02 -03 2021
    Menu           : no menu refresh for power
    menu           : menu_xenserver.json is missing, force it to create a new one
    installing WWW : install-html.sh xenserver

    [lpar2rrd@ohm lpar2rrd]$

    --//--

    [lpar2rrd@ohm lpar2rrd]$ ./load.sh html

    Custom         : custom-genmenu.pl: OK
    menu           : menu_xenserver.json is missing, force it to create a new one
    installing WWW : install-html.sh xenserver
    Host identif   : Linux

    [lpar2rrd@ohm lpar2rrd]$

    --//--

    The menu is still not being created, unfortunally.

    Thank you for your help...
  • alfcruz
    edited July 2021
    Some data/info more...

    [lpar2rrd@ohm lpar2rrd]$ ll -a etc
    total 248
    drwxr-xr-x   4 lpar2rrd lpar2rrd  4096 Jul  6 15:48 .
    drwxr-xr-x. 20 lpar2rrd lpar2rrd  4096 Jul  6 16:00 ..
    -rw-r--r--   1 lpar2rrd lpar2rrd   930 Jun 10 09:54 alias.cfg
    -rw-r--r--   1 lpar2rrd lpar2rrd 26381 Jun 10 09:54 dbinit.sql
    -rw-r--r--   1 lpar2rrd lpar2rrd 22663 Jun 10 09:54 free_rperf_table.txt
    -rw-r--r--   1 lpar2rrd lpar2rrd   448 Jun 10 09:54 heatmap_exclude.cfg
    -rwxr-xr-x   1 lpar2rrd lpar2rrd  6600 Jun 10 09:54 links_aws.json
    -rw-r--r--   1 lpar2rrd lpar2rrd  3471 Jun 10 09:54 links_azure.json
    -rw-r--r--   1 lpar2rrd lpar2rrd  4769 Jun 10 09:54 links_cloudstack.json
    -rw-r--r--   1 lpar2rrd lpar2rrd  3522 Jun 10 09:54 links_gcloud.json
    -rw-r--r--   1 lpar2rrd lpar2rrd  5579 Jun 10 09:54 links_kubernetes.json
    -rw-r--r--   1 lpar2rrd lpar2rrd   674 Jun 10 09:54 links_linux.json
    -rw-r--r--   1 lpar2rrd lpar2rrd  7728 Jun 10 09:54 links_nutanix.json
    -rw-r--r--   1 lpar2rrd lpar2rrd  6029 Jun 10 09:54 links_openshift.json
    -rw-r--r--   1 lpar2rrd lpar2rrd 19940 Jun 10 09:54 links_oracledb.json
    -rw-r--r--   1 lpar2rrd lpar2rrd  2627 Jun 10 09:54 links_oraclevm.json
    -rw-r--r--   1 lpar2rrd lpar2rrd  4423 Jun 10 09:54 links_ovirt.json
    -rw-r--r--   1 lpar2rrd lpar2rrd  4510 Jun 10 09:54 links_postgres.json
    -rw-r--r--   1 lpar2rrd lpar2rrd  8952 Jun 10 09:54 links_power.json
    -rw-r--r--   1 lpar2rrd lpar2rrd  4984 Jun 10 09:54 links_proxmox.json
    -rw-r--r--   1 lpar2rrd lpar2rrd  2214 Jun 10 09:54 links_solaris.json
    -rw-r--r--   1 lpar2rrd lpar2rrd  9280 Jun 10 09:54 links_vmware.json
    -rw-r--r--   1 lpar2rrd lpar2rrd  2211 Jun 10 09:54 links_windows.json
    -rw-r--r--   1 lpar2rrd lpar2rrd  4774 Jun 10 09:54 links_xenserver.json
    -rw-r--r--   1 lpar2rrd lpar2rrd  7129 Jul  6 15:40 lpar2rrd.cfg
    -rw-r--r--   1 lpar2rrd lpar2rrd 12751 Jun 10 09:54 metrics.json
    -rw-r--r--   1 lpar2rrd lpar2rrd    50 Jun 10 09:54 reporter_email_body.cfg
    -rw-r--r--   1 lpar2rrd lpar2rrd    22 Jul  6 15:40 version.txt
    drwxr-xr-x   2 lpar2rrd lpar2rrd  4096 Jul  7 08:39 .web_config
    drwxrwxrwx   2 lpar2rrd lpar2rrd   161 Jul  6 15:53 web_config
    -rw-r--r--   1 lpar2rrd lpar2rrd  4050 Jun 10 09:54 XORUX-MIB.txt
    [lpar2rrd@ohm lpar2rrd]$ ll -a etc/.web_config/
    total 64
    drwxr-xr-x 2 lpar2rrd lpar2rrd 4096 Jul  7 08:39 .
    drwxr-xr-x 4 lpar2rrd lpar2rrd 4096 Jul  6 15:48 ..
    -rw-rw-rw- 1 lpar2rrd lpar2rrd    0 Jul  6 15:41 custom_groups.cfg
    -rw-rw-rw- 1 lpar2rrd lpar2rrd    0 Jul  6 15:41 custom_groups.cfg-2021-07-06_15:48
    -rw-rw-r-- 1 lpar2rrd lpar2rrd   20 Jul  6 15:41 dashboards.json
    -rw-rw-r-- 1 lpar2rrd lpar2rrd   20 Jul  6 15:41 dashboards.json-2021-07-06_15:48
    -rw-rw-r-- 1 lpar2rrd lpar2rrd 5963 Jul  6 16:00 hosts.json
    -rw-rw-r-- 1 lpar2rrd lpar2rrd 2110 Jul  6 15:41 hosts.json-2021-07-06_15:48
    -rw-rw-r-- 1 lpar2rrd lpar2rrd 5963 Jul  6 16:00 hosts.json-2021-07-07_08:39
    -rw-rw-rw- 1 lpar2rrd lpar2rrd   44 Jul  6 15:40 htusers.cfg
    -rw-rw-rw- 1 lpar2rrd lpar2rrd   44 Jul  6 15:40 htusers.cfg-2021-07-06_15:48
    -rw-r--r-- 1 lpar2rrd lpar2rrd   83 Jul  6 15:48 Readme.txt
    -rw-rw-r-- 1 lpar2rrd lpar2rrd  232 Jul  6 15:53 reporter.json
    -rw-rw-r-- 1 lpar2rrd lpar2rrd  232 Jul  6 15:53 reporter.json-2021-07-07_08:39
    -rw-rw-rw- 1 lpar2rrd lpar2rrd 1016 Jul  6 15:41 users.json
    -rw-rw-rw- 1 lpar2rrd lpar2rrd 1016 Jul  6 15:41 users.json-2021-07-06_15:48
    [lpar2rrd@ohm lpar2rrd]$
    [lpar2rrd@ohm lpar2rrd]$ ll -a etc/web_config/
    total 32
    drwxrwxrwx 2 lpar2rrd lpar2rrd  161 Jul  6 15:53 .
    drwxr-xr-x 4 lpar2rrd lpar2rrd 4096 Jul  6 15:48 ..
    -rw-rw-r-- 1 apache   apache   3640 Jul  7 08:21 config_check_apache.log
    -rw-rw-rw- 1 apache   apache      0 Jul  6 15:41 custom_groups.cfg
    -rw-rw-r-- 1 apache   apache     20 Jul  6 15:41 dashboards.json
    -rw-rw-r-- 1 apache   apache   5963 Jul  6 16:00 hosts.json
    -rw-rw-rw- 1 lpar2rrd lpar2rrd   44 Jul  6 15:40 htusers.cfg
    -rw-rw-r-- 1 apache   apache    232 Jul  6 15:53 reporter.json
    -rw-rw-rw- 1 apache   apache   1016 Jul  6 15:41 users.json
    [lpar2rrd@ohm lpar2rrd]$

  • [root@ohm logs]# tail -30 error.log-xen
    XenServer XAPI2JSON: 0 timeouted.
    Wed Jul  7 08:28:23 -03 2021: There is already running another copy of load_xenserver.sh, exiting ...""
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    XenServer XAPI2JSON: 0 timeouted.
    [root@ohm logs]# tail -30 load_xenserver.log
    menu           : menu_xenserver.json is missing, force it to create a new one
    installing WWW : install-html.sh xenserver
    Host identif   : Linux
    timestamp      : Wed Jul  7 09:00:03 -03 2021
    Menu           : menu refresh for xenserver
    [root@ohm logs]# tail -30 load_xenserver.prev
    menu           : menu_xenserver.json is missing, force it to create a new one
    installing WWW : install-html.sh xenserver
    Host identif   : Linux
    timestamp      : Wed Jul  7 08:39:42 -03 2021
    Menu           : menu refresh for xenserver
    [root@ohm logs]#

  • [root@ohm lpar2rrd]# find . -name menu_xenserver.json
    [root@ohm lpar2rrd]# find . -name menu*.json
    [root@ohm lpar2rrd]# find . -name *.json
    ./BACKUP-INSTALL/lpar2rrd-6.10/etc/metrics.json
    ./BACKUP-INSTALL/lpar2rrd-6.10/etc/web_config/users.json
    ./BACKUP-INSTALL/lpar2rrd-6.10/etc/web_config/hosts.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/metrics.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/web_config/users.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/web_config/dashboards.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/web_config/reporter.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/web_config/hosts.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/.web_config/hosts.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/.web_config/users.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/.web_config/dashboards.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/.web_config/reporter.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_openshift.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_nutanix.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_vmware.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_proxmox.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_linux.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_windows.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_cloudstack.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_kubernetes.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_ovirt.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_oraclevm.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_gcloud.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_xenserver.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_azure.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_aws.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_postgres.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_oracledb.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_solaris.json
    ./BACKUP-INSTALL/lpar2rrd-7.20/etc/links_power.json
    ./data/XEN_iostats/json/XEN_uaaxcpngp01h01.local.hcpa.ufrgs.br_perf_1625660401.json
    ./data/XEN_iostats/json/XEN_uaaxcpngp01h02.local.hcpa.ufrgs.br_perf_1625660401.json
    ./data/XEN_iostats/json/XEN_uaaxcpngp01h06.local.hcpa.ufrgs.br_perf_1625660401.json
    ./data/XEN_iostats/json/XEN_uaaxcpngp01h03.local.hcpa.ufrgs.br_perf_1625660401.json
    ./data/XEN_iostats/json/XEN_uaaxcpngp01h07.local.hcpa.ufrgs.br_perf_1625660401.json
    ./data/XEN_iostats/json/XEN_uaaxcpngp01h04.local.hcpa.ufrgs.br_perf_1625660401.json
    ./data/XEN_iostats/json/XEN_uaaxcpngp01h05.local.hcpa.ufrgs.br_perf_1625660401.json
    ./data/XEN_iostats/conf.json
    ./etc/web_config/users.json
    ./etc/web_config/dashboards.json
    ./etc/web_config/hosts.json
    ./etc/web_config/reporter.json
    ./etc/links_openshift.json
    ./etc/metrics.json
    ./etc/links_nutanix.json
    ./etc/links_vmware.json
    ./etc/links_proxmox.json
    ./etc/links_linux.json
    ./etc/links_windows.json
    ./etc/links_cloudstack.json
    ./etc/links_kubernetes.json
    ./etc/links_ovirt.json
    ./etc/links_oraclevm.json
    ./etc/links_gcloud.json
    ./etc/links_xenserver.json
    ./etc/links_azure.json
    ./etc/links_aws.json
    ./etc/links_postgres.json
    ./etc/links_oracledb.json
    ./etc/links_solaris.json
    ./etc/links_power.json
    ./etc/.web_config/dashboards.json
    ./etc/.web_config/hosts.json
    ./etc/.web_config/users.json
    ./etc/.web_config/reporter.json
    ./tmp/total-vm-count.json
    ./tmp/xenserver-uaaxcpngp01h04.local.hcpa.ufrgs.br-perf-last1.json
    ./tmp/xenserver-uaaxcpngp01h05.local.hcpa.ufrgs.br-perf-last1.json
    ./tmp/xenserver-uaaxcpngp01h06.local.hcpa.ufrgs.br-perf-last1.json
    ./tmp/xenserver-uaaxcpngp01h07.local.hcpa.ufrgs.br-perf-last1.json
    ./tmp/xenserver-uaaxcpngp01h01.local.hcpa.ufrgs.br-perf-last2.json
    ./tmp/xenserver-uaaxcpngp01h02.local.hcpa.ufrgs.br-perf-last2.json
    ./tmp/xenserver-uaaxcpngp01h03.local.hcpa.ufrgs.br-perf-last2.json
    ./tmp/xenserver-uaaxcpngp01h04.local.hcpa.ufrgs.br-perf-last2.json
    ./tmp/xenserver-uaaxcpngp01h05.local.hcpa.ufrgs.br-perf-last2.json
    ./tmp/xenserver-uaaxcpngp01h06.local.hcpa.ufrgs.br-perf-last2.json
    ./tmp/xenserver-uaaxcpngp01h01.local.hcpa.ufrgs.br-perf-last1.json
    ./tmp/xenserver-uaaxcpngp01h02.local.hcpa.ufrgs.br-perf-last1.json
    ./tmp/xenserver-uaaxcpngp01h03.local.hcpa.ufrgs.br-perf-last1.json
    ./tmp/xenserver-uaaxcpngp01h07.local.hcpa.ufrgs.br-perf-last2.json
    [root@ohm lpar2rrd]#

  • In this same CentOS VM, named Ohm, I run stor2rrd com great success. Many years now.
  • Thank you for the details. The crucial file for creating a XenServer menu is data/XEN_iostats/conf.json which exists; can you check if it isn't effectively empty? (No need to paste the contents here if it has necessary data, because it would be too large and contain details about your setup.) A backup copy should be tmp/xenserver-conf-last.json, but that is missing from your listing.

  • Hi David. You found it - the file is almost empty. Contains only {} on a line by itself.

    Do you know how I can properly config this file, please?
  • I suspect there is a problem with fetching or merging the configuration data (will post an update). For the record, what XCP-ng version do you use?

  • I use XCP-ng version 8.2 LTS. Thank you.
  • Please, let me know if I could be of any help, to test anything, or provide new data. Thank you.
  • Hello,

    can you try the following patch? It restructures some of the queries over SSH to reduce overhead.

    https://download.lpar2rrd.com/patch/7.21-2-9-g2336e/xen-xapi2json.pl.gz

    Gunzip it and copy to /home/lpar2rrd/lpar2rrd/bin (755, lpar2rrd owner)

    -rwxrwxr-x 1 lpar2rrd lpar2rrd 17453 19. čec 13.11 xen-xapi2json.pl

    If your web browser gunzips it automatically then just rename it: mv xen-xapi2json.pl.gz xen-xapi2json.pl

    Assure that file size is the same as on above example.

  • Hi David! The patch does work! Thanks!

    Some graphs do not show, and I'll try later in the day. One of interest to me is storage activity. That fails, I think, because the guest tools file in /opt/xensource/iso/guest-tools-8.2.0-2.xcpng8.2.iso

    [12:15 uaaxcpngp01h01 ~]# xe sr-list uuid=aba8434e-7608-f711-466b-be2cf2e1ac0b
    uuid ( RO)                : aba8434e-7608-f711-466b-be2cf2e1ac0b
              name-label ( RW): XCP-ng Tools
        name-description ( RW): XCP-ng Tools ISOs
                    host ( RO): <shared>
                    type ( RO): iso
            content-type ( RO): iso


  • Is there an easy way to avoid the guest tools ISO file to be entered into the storage resources data collection or in the graph data plot under pool's storage resources?
  • David
    edited July 2021

    Hello,

    does the XCP-ng Tools ISOs storage (or any storage in the menu whose graphs do not show like this) have a corresponding RRD file anywhere in data/XEN/? It might be that the storage is <shared> on the XAPI-side, but only some hosts actually report its performance metrics.

    More generally, it would be straightforward to skip storage of type iso altogether, it already works that way, for example, in the Configuration > Storage tables. Would you consider that better, or are there any ISOs whose performance data interests you?

  • Hi David, thank you for helping me. We consider iso performance of less interest than the storage resources that contain vms. We only use isos to install lguest utilities and store files used in the vm installation process, so is a little percent of use compared to production.

    I'll try to configure as you told me to do. Thank you.
  • Reporting back, the specific storage the gives the error in the above picture, have rrd files under some of the xcp-ng hosts directories (there are 7 hosts/dirs), but not all of them. Different files, with the same names.
  • Reporting again, the Configuration > Storage tab tables show greatly detailed information.

    For each xcp-ng host there is a line containing an particular xcp-ng storage resource and it contained VDI (volume).

    Since we use all the production vms into shared storage resources, I'd find more useful to group data for each storage resource, along with its contents.

    We have 01 local storage on each of the 07 hosts, and 14 SRs shared to the 7 hosts. So the table generation for the web page takes a long time to show. I included part of the long listing in that web page.


  • The particular SR that gives problems when graphing (disk-aba8434e), is not listed into the configuration > storage tab.
  • Hello,

    thank you for the information.

    If you use the following patch, any storages that are omitted in Configuration (mainly ISO) will be omitted from newly created menu too (file tmp/menu_xenserver.json; if you delete it, you can immediately force creating it anew by calling ./load.sh html in the lpar2rrd directory).

    https://download.lpar2rrd.com/patch/7.21-5-3-g22a3/xen-genmenu.pl.gz

    Gunzip it and copy to /home/lpar2rrd/lpar2rrd/bin (755, lpar2rrd owner)

    -rwxrwxr-x 1 lpar2rrd lpar2rrd 7974 29. čec 10.37 xen-genmenu.pl

    If your web browser gunzips it automatically then just rename it: mv xen-genmenu.pl.gz xen-genmenu.pl

    Assure that file size is the same as on above example.

  • Oh, thank  you for this patch. Only saw it today, as I had the news that lpar was updated to 7.30. Thank you!
Sign In or Register to comment.