GithubHelp home page GithubHelp logo

Comments (4)

n27051538 avatar n27051538 commented on May 29, 2024

Hello,
Use the latest README.

pip2.7 install prometheus_client==0.7.1
# Note than current versions of prometheus_client (0.14.1 +) for some reasons not works with Python 2.7,
# that is why I fixed its version to 0.7.1, it is tested.

from solaris_exporter.

Umedha76 avatar Umedha76 commented on May 29, 2024

Hello, Use the latest README.

pip2.7 install prometheus_client==0.7.1 # Note than current versions of prometheus_client (0.14.1 +) for some reasons not works with Python 2.7, # that is why I fixed its version to 0.7.1, it is tested.

Thank you so much for the prompt respond
let me check

from solaris_exporter.

Umedha76 avatar Umedha76 commented on May 29, 2024

Hello, Use the latest README.
pip2.7 install prometheus_client==0.7.1 # Note than current versions of prometheus_client (0.14.1 +) for some reasons not works with Python 2.7, # that is why I fixed its version to 0.7.1, it is tested.

Thank you so much for the prompt respond let me check

Thank you its working now.
++++++++++++++++++++++++++++++++++
but when I tried to set it up as a service I get the following messages and do not see the output on web like I gout it earlier


> root@solaris-test:/opt/solaris_exporter# ./solaris_exporter_smf.sh install
> ./solaris_exporter_smf.sh Script for adding solaris_exporter.py to Solaris SMF as prometheus/solaris_exporter
>      r    Removing "Prometheus::solaris:cmd:::/usr/sbin/fmadm:uid=0" from  /etc/security/exec_attr
>      r    Removing "Prometheus::solaris:cmd:::/usr/sbin/nvmeadm:uid=0" from  /etc/security/exec_attr
>      r    Removing "Prometheus::solaris:cmd:::/usr/sbin/raidctl:uid=0" from  /etc/security/exec_attr
>      r    Removing "Prometheus::solaris:cmd:::/usr/sbin/zlogin:uid=0" from  /etc/security/exec_attr
>      r    Removing "Prometheus:::User could run some monitoring commands" from /etc/security/prof_attr
>      r    Current profiles of monitor user is:
> SMF prometheus/solaris_exporter removed
> Installing solaris_exporter.py as SMF prometheus/solaris_exporter
>     i
> [ 2022 Sep  4 02:24:04 svc.startd could not set context for method:  ]
> chdir: No such file or directory
> [ 2022 Sep  4 02:24:04 Stopping because all processes in service exited. ]
> [ 2022 Sep  4 02:24:04 Executing start method ("/usr/bin/python2.7 /opt/solaris_exporter/solaris_exporter.py"). ]
> [ 2022 Sep  4 02:24:04 Environment variable "LC_ALL=" already set. ]
> [ 2022 Sep  4 02:24:04 svc.startd could not set context for method:  ]
> chdir: No such file or directory
> online          2:24:04 svc:/prometheus/solaris_exporter:default
> root@solaris-test:/opt/solaris_exporter#
> root@solaris-test:/opt/solaris_exporter#
> root@solaris-test:/opt/solaris_exporter#
> root@solaris-test:/opt/solaris_exporter#
> root@solaris-test:/opt/solaris_exporter#
> root@solaris-test:/opt/solaris_exporter#
> root@solaris-test:/opt/solaris_exporter# svcs solaris_exporter
> STATE          STIME    FMRI
> online          2:24:48 svc:/prometheus/solaris_exporter:default

Kind regards,

from solaris_exporter.

Umedha76 avatar Umedha76 commented on May 29, 2024

after creating the /exporter/home/monitor directory and setting its permission to user monitor
the service configured and it is working.

BTW will this same setup work in solaris 11.3.35.6.0 (0.5.11)

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.