Giter Club home page Giter Club logo

Comments (6)

czerwonk avatar czerwonk commented on June 1, 2024 1

Ok, the original storage module does not handle the multi-routing-engine-result Tag. I will fix this accordingly.

from junos_exporter.

pgporada avatar pgporada commented on June 1, 2024

@AngelFreak What is the output from your device when you call show system storage ?

from junos_exporter.

AngelFreak avatar AngelFreak commented on June 1, 2024

Here you go:

fpc0:
--------------------------------------------------------------------------
Filesystem              Size       Used      Avail  Capacity   Mounted on
/dev/gpt/junos          1.3G       809M       448M       64%  /.mount
tmpfs                   542M        44K       542M        0%  /.mount/tmp
tmpfs                   324M       540K       324M        0%  /.mount/mfs

from junos_exporter.

pgporada avatar pgporada commented on June 1, 2024

Aha, I suspect it's the following lines throwing off the parsing for your device.

fpc0:
--------------------------------------------------------------------------

On my test boxes I receive this output

> show system storage 
Filesystem              Size       Used      Avail  Capacity   Mounted on
/dev/da0s1a             610M       179M       382M       32%  /
...
...

from junos_exporter.

czerwonk avatar czerwonk commented on June 1, 2024

Here you go:

fpc0:
--------------------------------------------------------------------------
Filesystem              Size       Used      Avail  Capacity   Mounted on
/dev/gpt/junos          1.3G       809M       448M       64%  /.mount
tmpfs                   542M        44K       542M        0%  /.mount/tmp
tmpfs                   324M       540K       324M        0%  /.mount/mfs

Can you please provide the XML output of:

show system storage | display xml

Thanks in advance.

from junos_exporter.

AngelFreak avatar AngelFreak commented on June 1, 2024

Sure here you go:

<rpc-reply xmlns:junos="http://xml.juniper.net/junos/18.2R1/junos">
    <multi-routing-engine-results>
        
        <multi-routing-engine-item>
            
            <re-name>fpc0</re-name>
            
            <system-storage-information junos:style="brief">
                <filesystem>
                    <filesystem-name>/dev/gpt/junos</filesystem-name>
                    <total-blocks junos:format="1.3G">2796512</total-blocks>
                    <used-blocks junos:format="814M">1667792</used-blocks>
                    <available-blocks junos:format="442M">905000</available-blocks>
                    <used-percent> 65</used-percent>
                    <mounted-on>/.mount</mounted-on>
                </filesystem>
                <filesystem>
                    <filesystem-name>tmpfs</filesystem-name>
                    <total-blocks junos:format="537M">1099008</total-blocks>
                    <used-blocks junos:format="44K">88</used-blocks>
                    <available-blocks junos:format="537M">1098920</available-blocks>
                    <used-percent>  0</used-percent>
                    <mounted-on>/.mount/tmp</mounted-on>
                </filesystem>
                <filesystem>
                    <filesystem-name>tmpfs</filesystem-name>
                    <total-blocks junos:format="324M">663776</total-blocks>
                    <used-blocks junos:format="540K">1080</used-blocks>
                    <available-blocks junos:format="324M">662696</available-blocks>
                    <used-percent>  0</used-percent>
                    <mounted-on>/.mount/mfs</mounted-on>
                </filesystem>
            </system-storage-information>
        </multi-routing-engine-item>
        
    </multi-routing-engine-results>
    <cli>
        <banner>{master:0}</banner>
    </cli>
</rpc-reply>

from junos_exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.