Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Proxmox CPU Mhz auslesen und in Datenpunkt schreiben

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Proxmox CPU Mhz auslesen und in Datenpunkt schreiben

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas 18147
      Thomas 18147 last edited by

      Liebe Community,

      Ich möchte die Cpu Geschwindigkeit vom Server auslesen und dann in einen Datenpunkt einpflegen lassen, damit es mit Grafana oder Flot grafisch darstellt werden kann.

      code für die MHz Abfrage : cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq

      root@media:~# cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq
      801208
      799929
      799897
      800005
      800000
      800000
      799918
      800060
      800000
      801287
      800001
      799993

      Einen Datenpunkt wird damit erstellt : curl "http://192.168.2.187:8087/set/0_userdata.0.cpu?value=55"

      Nur wie muss ein funktionierendes Skript aussehen?

      Gruß Thomas

      Thomas 18147 1 Reply Last reply Reply Quote 0
      • Thomas 18147
        Thomas 18147 @Thomas 18147 last edited by

        #!/bin/bash
        tempi= cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
        curl "http://192.168.2.187:8087/set/0_userdata.0.tempi?value=$tempi"

        funktioniert wohl

        1 Reply Last reply Reply Quote 1
        • First post
          Last post

        Support us

        ioBroker
        Community Adapters
        Donate

        887
        Online

        31.8k
        Users

        80.0k
        Topics

        1.3m
        Posts

        1
        2
        159
        Loading More Posts
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes
        Reply
        • Reply as topic
        Log in to reply
        Community
        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
        The ioBroker Community 2014-2023
        logo