Giter Site home page Giter Site logo

Comments (3)

jimbydamonk avatar jimbydamonk commented on July 16, 2024

Based on https://github.com/rabbitmq/rabbitmq-management-agent/blob/master/src/rabbit_mgmt_external_stats.erl#L160 it seems that rabbit is sending that string instead of the value.

Since disk_free is a gauge it must be a number. Not a string. We should probably handle that in the dispatch so the whole thing doesn't die.

It looks like something is not turned on from the Rabbit side.
What version of rabbit are you using ?
What OS/Platform are you running rabbitmq on ? I think the disk monitoring will only do that if it can't calculate disk space. Take a look at this. https://www.rabbitmq.com/disk-alarms.html

from collectd-rabbitmq.

mmissire avatar mmissire commented on July 16, 2024

Yes, you can see this with curl:

curl localhost:15672/api/nodes/<rabbit node>/ -u <rabbit user> | jq .

Look for the line: "disk_free_limit": "disk_free_monitoring_disabled",

I am using RabbitMQ 3.6.6 on CentOS 6.8. Following some advice from StackOverlow saying Rabbit made this decision at runtime based on the success or failure of "df -kP ," I tried that with various guesses as to what "directory" should be. Either I didn't get it right or the cause is something else, because the command worked fine.

Not finding a way of enabling disk free monitoring on this installation of Rabbit, I commented the "node stats" from the plugin as a workaround. I agree the only change needed on the plugin's part is probably anticipating and handling the string error response better (which is a general thing).

from collectd-rabbitmq.

jimbydamonk avatar jimbydamonk commented on July 16, 2024

Can you try running the df on your mnesia dir ?
sudo /bin/df -kP /var/lib/rabbitmq/mnesia/

and
rabbitmqctl eval 'rabbit_misc:os_cmd("/bin/df -kP
/var/lib/rabbitmq/mnesia/").'

from collectd-rabbitmq.

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.