Giter Site home page Giter Site logo

hpmsa_exporter's People

Contributors

lcaflc avatar naps avatar swacquie avatar tigre-bleu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hpmsa_exporter's Issues

Add metric unit

Hello,

It would be nice to add the metrics units in the Readme and also maybe in the HELP section of the result page.

Unauthorized error over time

Hello,

After around a week of use the exporter shows an "Unauthorized" error when trying to scrape the API. Nothing has changed since deployment and it doesn't look like there's some blacklist. The user has had "Monitoring" rights all the time and can get logged through SMU.

ene 21 20:50:16 monitor2-co systemd[1]: Started HP MSA Exporter.
ene 21 20:50:17 monitor2-co msa_exporter.py[14119]: /usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py:851: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
ene 21 20:50:17 monitor2-co msa_exporter.py[14119]: InsecureRequestWarning)
ene 21 20:50:17 monitor2-co msa_exporter.py[14119]: /usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py:851: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
ene 21 20:50:17 monitor msa_exporter.py[14119]: InsecureRequestWarning)
ene 21 20:50:17 monitor msa_exporter.py[14119]: Traceback (most recent call last):
ene 21 20:50:17 monitor msa_exporter.py[14119]: File "/root/prometheus-monitoring/hpmsa_exporter/msa_exporter.py", line 856, in <module>
ene 21 20:50:17 monitor msa_exporter.py[14119]: scrap_msa(metrics_store, args.hostname, args.login, args.password)
ene 21 20:50:17 monitor msa_exporter.py[14119]: File "/root/prometheus-monitoring/hpmsa_exporter/msa_exporter.py", line 829, in scrap_msa
ene 21 20:50:17 monitor msa_exporter.py[14119]: response.raise_for_status()
ene 21 20:50:17 monitor msa_exporter.py[14119]: File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 940, in raise_for_status
ene 21 20:50:17 monitor msa_exporter.py[14119]: raise HTTPError(http_error_msg, response=self)
ene 21 20:50:17 monitor msa_exporter.py[14119]: requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://[REDACTED]/api/show/host-port-statistics
ene 21 20:50:17 monitor systemd[1]: hpmsa_exporter.service: main process exited, code=exited, status=1/FAILURE
ene 21 20:50:17 monitor systemd[1]: Unit hpmsa_exporter.service entered failed state.
ene 21 20:50:17 monitoo systemd[1]: hpmsa_exporter.service failed

This is being done on an MSA 2050.

Prometheus job

HI
could you add the Prometheus configuration that you are using to connect to your service?

Thanks!

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.