GithubHelp home page GithubHelp logo

Comments (4)

n27051538 avatar n27051538 commented on May 29, 2024

Hello,
This issue is driven by some changes is OS.
Max Solaris version on my hosts is 11.4.4, it works with Solaris_exporter v2021Mar01.
But this issue is the second, so I will install new test LDOM with 11.4.41 and try to improve code.
I hope that the fault is not in psutil library which I use, but which author has no time or HW to code for Solaris.

from solaris_exporter.

n27051538 avatar n27051538 commented on May 29, 2024

I investigated.
The old version of psutil fails due to changes in command output:
New variant:

# swap -l
swapfile                      dev            swaplo      blocks        free encrypted
/dev/zvol/dsk/bercutroot/swap 248,4               0     8388608     8388608       yes

Old variant:

$ swap -l
swapfile                    dev            swaplo      blocks        free
/dev/zvol/dsk/swapdump/swap 259,1              16   136314864   136314864

The latest version of psutil library 5.9.0 is adapted to this behavior, but the latest version of psutil not supports Python 2.7.
That is why I copied psutil code to local function psutil_local_swap_memory and adapted it.
Also I added support for Python3.7.

Please test new version v2022Feb05, I placed it into separate branch forPython3.

from solaris_exporter.

srdennis03 avatar srdennis03 commented on May 29, 2024

Just tested the python2.7 version - all working well

i will move on to test the python3.7 version

from solaris_exporter.

srdennis03 avatar srdennis03 commented on May 29, 2024

Tested and working on SPARC Solaris 11.4 (11.4.36.101) using python 3.7.10

Many thanks

from solaris_exporter.

Related Issues (10)

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.