{"id":330,"date":"2022-03-04T08:27:59","date_gmt":"2022-03-04T07:27:59","guid":{"rendered":"https:\/\/ptdb.ch\/?p=330"},"modified":"2022-03-04T08:27:59","modified_gmt":"2022-03-04T07:27:59","slug":"postgresql-how-to-upgrade-the-temboard-agent-to-version-7-10","status":"publish","type":"post","link":"https:\/\/ptdb.ch\/?p=330","title":{"rendered":"PostgreSQL: How To Upgrade The temBoard Agent To Version 7.10"},"content":{"rendered":"<p>8 days ago, Dalibo released temBoard version 7.10, and I wanted to take this opportunity to show you how to upgrade the temBoard Agent to version 7.10.\u00a0 You might think that simply running a yum localupdate will be enough, however, in case you want to unleash the full potential you need to do a few things more.<\/p>\n<p>There are a lot of features and fixes that went into the temBoard agent. Here I show you the most important ones that came with temBoard 7.10 and 7.9.<\/p>\n<h4>Agent features\/fixes with version 7.10<\/h4>\n<ul>\n<li>Fix database probes always executed on same database<\/li>\n<li>Reduce reconnexion in monitoring probes<\/li>\n<li>Explicitly requires psycopg2 2.7+ on debian<\/li>\n<li>Ignore loopback and tmpfs file systems<\/li>\n<li>Drop Python2 support<\/li>\n<li>Build RHEL8 package with RockyLinux 8<\/li>\n<\/ul>\n<h4>Agent features\/fixes with version 7.9<\/h4>\n<ul>\n<li>Monitor only local filesystem size<\/li>\n<li>Set umask 027 in auto_configure.sh<\/li>\n<li>Details components version in temboard-agent &#8211;version output<\/li>\n<li>Fix sysv init script shipped on systemd by debian package<\/li>\n<\/ul>\n<p>In case you want to know more, I recommend to check out the following links.<\/p>\n<p><a href=\"https:\/\/github.com\/dalibo\/temboard\/releases\">https:\/\/github.com\/dalibo\/temboard\/releases<\/a><\/p>\n<p><a href=\"https:\/\/temboard.readthedocs.io\/en\/latest\/CHANGELOG\/\">https:\/\/temboard.readthedocs.io\/en\/latest\/CHANGELOG\/<\/a><\/p>\n<p>But now lets get into the upgrade process of the agent itself. It is made of the following steps.<\/p>\n<ul>\n<li>Shut down all agents running<\/li>\n<li>Update the rpm package<\/li>\n<li>Adjust the temBoard agent systemd service<\/li>\n<li>Adjust the temBoard agent monitoring\/probes.py file<\/li>\n<li>Start all agents<\/li>\n<\/ul>\n<h3>Shutdown all agents<\/h3>\n<p>To shutdown all agents in one shot I use the following while loop.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ systemctl -l | grep temboard | grep -v system- | awk '{ print $1 }' | while read i\n   do\n     sudo systemctl stop $i\n   done\n\n<\/pre>\n<h3>Update the rpm package<\/h3>\n<p>Note: On RHEL 7 &#8211; Some python 3 components might be installed as well, depending if they are already installed or not<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ sudo yum -y localupdate --disableexcludes=main temboard-agent-7.10-1.el7.noarch.rpm\n\n<\/pre>\n<h3>Adjust the temBoard agent systemd service<\/h3>\n<p>Setting the Environment=&#8221;LD_LIBRARY_PATH=\/app\/lib\/postgres\/pgproduct\/pg-12.10\/lib&#8221; variable in the systemd file is a quite important step. By doing so, you can make sure that you can use the latest libpq features.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ sudo vi \/usr\/lib\/systemd\/system\/temboard-agent@.service\n\n$ cat \/usr\/lib\/systemd\/system\/temboard-agent@.service\n\n&#x5B;Unit]\nDescription=PostgreSQL Remote Control Agent %I\nAfter=network.target postgresql@%i.service\nAssertPathExists=\/etc\/temboard-agent\/%I\/temboard-agent.conf\n\n&#x5B;Service]\nType=simple\nUser=postgres\nGroup=postgres\nEnvironment=&quot;LD_LIBRARY_PATH=\/app\/lib\/postgres\/pgproduct\/pg-12.10\/lib&quot;\nExecStart=\/usr\/bin\/env SYSTEMD=1 temboard-agent -c \/etc\/temboard-agent\/%I\/temboard-agent.conf\n\n&#x5B;Install]\nWantedBy=multi-user.target\n\n\n$ sudo systemctl daemon-reload\n\n<\/pre>\n<h3>Adjust the temBoard agent monitoring\/probes.py file<\/h3>\n<p>There is a missing comma after upstream. Correct the probes.py file (Missing Comma), so that the SQL is executed correctly.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\n$ sudo vi \/usr\/lib\/python3.6\/site-packages\/temboardagent\/plugins\/monitoring\/probes.py\n\n-- search for upstream\n\nSELECT '{p_host}' AS upstream,  &lt;- This comma after upstream is missing\nCASE \n   WHEN COUNT(*) &gt; 0 THEN 1 \n   ELSE 0 \nEND AS connected\nFROM pg_stat_wal_receiver\nWHERE status='streaming' AND\nconninfo LIKE '%host={p_host}%';\n<\/pre>\n<h3>Start all agents<\/h3>\n<p>For starting all agents, I use the following script. It has a little sleep built-in, so that not all agents are firing at the same time.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\n$ \/app\/lib\/postgres\/pgbase\/local\/bin\/restart-agents.sh\n\n#!\/bin\/bash -eu\n#------------------------------------------------------------------------------------------------------------------------#\n#-- Author: William Sescu\n#--\n#-- Purpose: Restart Temboard Agents\n#--\n#--\n#--\n#--\n#-- History:\n#-- Date        Version         Who     What\n#-- 26.09.2019  Version: 0.1    SW0     Created initial version\n#-- 10.10.2019  Version: 0.2    SW0     Rewrote Restart Agent Procedure\n#-- 14.02.2020  Version: 0.3    SW0     Added sleep 3, so that the agents are not fired at the same time\n#--\n#------------------------------------------------------------------------------------------------------------------------#\n#-- Debugging\n\n# set -x\n\n#------------------------------------------------------------------------------------------------------------------------#\n\n\nif ! hash sudo systemctl &amp;&gt;\/dev\/null; then\n        echo &quot;ERROR: You must restart manually temboard-agent services&quot; &gt;&amp;2\n        exit 0\nfi\n\necho &quot;INFO: Running systemctl reset-failed and daemon-reload&quot;\nsudo systemctl reset-failed\nsudo systemctl daemon-reload\nsudo systemctl is-system-running\n\nif ! sudo systemctl is-system-running &amp;&gt;\/dev\/null ; then\n        echo &quot;ERROR: You must restart manually temboard-agent services&quot; &gt;&amp;2\n        echo &quot;ERROR: Check with sudo systemctl list-units --state=failed&quot;\n        echo &quot;ERROR: Correct it, and run afterwards sudo systemctl reset-failed&quot;\n        exit 0\nfi\n\n\n#------------------------------------------------------------------------------------------------------------------------#\n\nprefix=temboard-agent@\n\n# search for files in the \/etc\/systemd\/ directory\n\necho &quot;INFO: Search for temboard-agent files in the \/etc\/systemd\/ directory&quot;\nsudo find \/etc\/systemd\/system\/multi-user.target.wants\/ -name &quot;${prefix}*&quot;\n\nactive_units=&quot;$(sudo systemctl --all --plain list-units ${prefix}* | grep -Po ${prefix}.*\\\\.service ||:)&quot;\n\nif &#x5B; -z &quot;${active_units}&quot; ] ; then\n        echo &quot;ERROR: No units found for temboard-agent&quot; &gt;&amp;2\n        exit 0;\nfi\n\nexit_code=0\nfor unit in ${active_units} ; do\n        echo &quot;INFO: Restarting $unit&quot; &gt;&amp;2\n        sudo systemctl stop $unit\n        sleep 3\n        sudo systemctl start $unit\n        # if ! sudo systemctl restart $unit ; then\n        #               echo &quot;ERROR: Failed to restart $unit&quot; &gt;&amp;2\n        #       exit_code=1\n        # fi\ndone\n\nexit $exit_code\n\n#------------------------------------------------------------------------------------------------------------------------#\n\n<\/pre>\n<h3>Check that the agent has loaded the correct libpq<\/h3>\n<p>Red Hat 7.x comes with a quite old version per default (libpq 9.2.24), however, if you want to use all features, you need to make sure, that the systemd service shows &#8220;INFO: Using libpq 12.10&#8221;<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ temboard-agent --version\n INFO: Starting temboard-agent 7.10.\ntemBoard agent 7.10\nSystem Red Hat Enterprise Linux Server 7.9 (Maipo)\nPython 3.6.8 (\/usr\/bin\/python3)\npsycopg2 2.7.7 (dt dec pq3 ext) libpq 9.2.24  &lt;-- this is the old libpq\n\n$ sudo systemctl status temboard-agent@12-pg55007.service\n\u25cf temboard-agent@12-pg55007.service - PostgreSQL Remote Control Agent 12\/pg55007\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/temboard-agent@.service; enabled; vendor preset: disabled)\n   Active: active (running) since Fri 2022-03-04 07:44:12 CET; 2s ago\n Main PID: 6928 (temboard-agent)\n   CGroup: \/system.slice\/system-temboard\\x2dagent.slice\/temboard-agent@12-pg55007.service\n           \u251c\u25006928 temboard-agent: 12\/pg55007: main process\n           \u251c\u25006947 temboard-agent: 12\/pg55007: worker pool\n           \u2514\u25006948 temboard-agent: 12\/pg55007: scheduler\n\nMar 04 07:44:12 host01 systemd&#x5B;1]: Started PostgreSQL Remote Control Agent 12\/pg55007.\nMar 04 07:44:13 host01 env&#x5B;6928]: INFO: Starting temboard-agent 7.10.\nMar 04 07:44:13 host01 env&#x5B;6928]: INFO: Running on Red Hat Enterprise Linux Server 7.9 (Maipo).\nMar 04 07:44:13 host01 env&#x5B;6928]: INFO: Using Python 3.6.8 (\/usr\/bin\/python3).\nMar 04 07:44:13 host01 env&#x5B;6928]: INFO: Using libpq 12.10, Psycopg2 2.7.7 (dt dec pq3 ext).  &lt;-- this is the new libpq\n\n<\/pre>\n<h3>Conclusion<\/h3>\n<p>Upgrading the temBoard agent looks like an easy step. However, if you want to use its full potential you might want to switch to a more recent libpq version. In regards to the issue with the typo in the SQL statements. That one should be fixed in the next temBoard agent release.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>8 days ago, Dalibo released temBoard version 7.10, and I wanted to take this opportunity to show you how to upgrade the temBoard Agent to version 7.10.\u00a0 You might think that simply running a yum localupdate will be enough, however, in case you want to unleash the full potential you need to do a few [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[6],"tags":[17,21,24],"class_list":["post-330","post","type-post","status-publish","format-standard","hentry","category-postgresql","tag-monitoring","tag-postgresql","tag-temboard","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PostgreSQL: How To Upgrade The temBoard Agent To Version 7.10 - ptdb - Platinum DB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ptdb.ch\/?p=330\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PostgreSQL: How To Upgrade The temBoard Agent To Version 7.10 - ptdb - Platinum DB\" \/>\n<meta property=\"og:description\" content=\"8 days ago, Dalibo released temBoard version 7.10, and I wanted to take this opportunity to show you how to upgrade the temBoard Agent to version 7.10.\u00a0 You might think that simply running a yum localupdate will be enough, however, in case you want to unleash the full potential you need to do a few [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ptdb.ch\/?p=330\" \/>\n<meta property=\"og:site_name\" content=\"ptdb - Platinum DB\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-04T07:27:59+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ptdb.ch\/?p=330\",\"url\":\"https:\/\/ptdb.ch\/?p=330\",\"name\":\"PostgreSQL: How To Upgrade The temBoard Agent To Version 7.10 - ptdb - Platinum DB\",\"isPartOf\":{\"@id\":\"https:\/\/ptdb.ch\/#website\"},\"datePublished\":\"2022-03-04T07:27:59+00:00\",\"author\":{\"@id\":\"https:\/\/ptdb.ch\/#\/schema\/person\/0b7baf52d23e71d85e1c95442306090b\"},\"breadcrumb\":{\"@id\":\"https:\/\/ptdb.ch\/?p=330#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ptdb.ch\/?p=330\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ptdb.ch\/?p=330#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ptdb.ch\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PostgreSQL: How To Upgrade The temBoard Agent To Version 7.10\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ptdb.ch\/#website\",\"url\":\"https:\/\/ptdb.ch\/\",\"name\":\"ptdb - Platinum DB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ptdb.ch\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ptdb.ch\/#\/schema\/person\/0b7baf52d23e71d85e1c95442306090b\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ptdb.ch\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ptdb.ch\"],\"url\":\"https:\/\/ptdb.ch\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PostgreSQL: How To Upgrade The temBoard Agent To Version 7.10 - ptdb - Platinum DB","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ptdb.ch\/?p=330","og_locale":"en_US","og_type":"article","og_title":"PostgreSQL: How To Upgrade The temBoard Agent To Version 7.10 - ptdb - Platinum DB","og_description":"8 days ago, Dalibo released temBoard version 7.10, and I wanted to take this opportunity to show you how to upgrade the temBoard Agent to version 7.10.\u00a0 You might think that simply running a yum localupdate will be enough, however, in case you want to unleash the full potential you need to do a few [&hellip;]","og_url":"https:\/\/ptdb.ch\/?p=330","og_site_name":"ptdb - Platinum DB","article_published_time":"2022-03-04T07:27:59+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ptdb.ch\/?p=330","url":"https:\/\/ptdb.ch\/?p=330","name":"PostgreSQL: How To Upgrade The temBoard Agent To Version 7.10 - ptdb - Platinum DB","isPartOf":{"@id":"https:\/\/ptdb.ch\/#website"},"datePublished":"2022-03-04T07:27:59+00:00","author":{"@id":"https:\/\/ptdb.ch\/#\/schema\/person\/0b7baf52d23e71d85e1c95442306090b"},"breadcrumb":{"@id":"https:\/\/ptdb.ch\/?p=330#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ptdb.ch\/?p=330"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ptdb.ch\/?p=330#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ptdb.ch\/"},{"@type":"ListItem","position":2,"name":"PostgreSQL: How To Upgrade The temBoard Agent To Version 7.10"}]},{"@type":"WebSite","@id":"https:\/\/ptdb.ch\/#website","url":"https:\/\/ptdb.ch\/","name":"ptdb - Platinum DB","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ptdb.ch\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ptdb.ch\/#\/schema\/person\/0b7baf52d23e71d85e1c95442306090b","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ptdb.ch\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/ptdb.ch"],"url":"https:\/\/ptdb.ch\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/posts\/330","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ptdb.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=330"}],"version-history":[{"count":0,"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/posts\/330\/revisions"}],"wp:attachment":[{"href":"https:\/\/ptdb.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ptdb.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ptdb.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}