Ad Widget

Collapse

read and graph values from textfiles

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jvgenderen
    Member
    • Nov 2014
    • 37

    #1

    read and graph values from textfiles

    hi .

    i am looking for a way to read and graph the contens of this file .

    OK
    OK: 48007.699 8.666 6.332 9.825 | sr=48007.699 lt=8.666 pd=6.332 md=9.825 sd=-0.033081 dgrams 65514798 missing 184359 excessive 257 late 37423


    the content is from a Datum GPS timing 10Mhz/1pps unit.


    i found the item to check if the file on the remote client is present ..

    but i want to graph the values.

    the first value is a trigger is the device is OK/WARNING/CRITICAL
    the second line is first the same as the first line and after the "|" the values to be graphed..


    any one kan assist me to make this possible .

    grt Joost
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    http://stackoverflow.com/questions/2...42767#26342767
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • jvgenderen
      Member
      • Nov 2014
      • 37

      #3
      aha .. Nice . i wil give it a try ..
      that one i did not find ...

      grt Joost .

      Comment

      • jvgenderen
        Member
        • Nov 2014
        • 37

        #4
        Hi Jan .

        i played around with the parameter on the webpage you mentioned but it seems to read the content of the file. but i fail to capture the separate values in the file and graph them.

        the contents of the file is this :

        OK
        OK: 48007.699 8.666 6.332 9.825 | sr=48007.699 lt=8.666 pd=6.332 md=9.825 sd=-0.033081
        dgrams 65514798 missing 184359 excessive 257 late 37423


        i would like to capture the following values after the "="

        sr=48007.699
        lt=8.666
        pd=6.332
        md=9.825
        sd=-0.033081


        and the values behind the text

        dgrams 65514798
        missing 184359
        excessive 257
        late 37423



        could you spare me a couple of minutes of your time and guide me in the right direction?

        i am currently using the "vfs.file.regexp" method.


        /Joost

        many thanks

        Comment

        • jan.garaj
          Senior Member
          Zabbix Certified Specialist
          • Jan 2010
          • 506

          #5
          Unfortunately I don't have time. Please ask smart question (http://www.catb.org/esr/faqs/smart-questions.html). Show what did you do and what is problem. Don't ask me to do your work. Yes I can solve it for you, but it'll paid service.
          Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
          My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

          Comment

          • jvgenderen
            Member
            • Nov 2014
            • 37

            #6
            Oke jan.
            Sorry i wasted 2min of your time.
            Thanks for all you input.

            /joost

            Comment

            Working...