Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed mongodb-10gen version 2.4.6 in Debian. This package does not include mongosniff.

How can I install a pre-built version of mongosniff in Debian ?

share|improve this question
up vote 4 down vote accepted

This is to do with a libpcap dependency that mongosniff has, to explain why this is the case, take a look here and here for the history.

At the moment, that means that you need to go to the MongoDB downloads page and get the mongosniff binary from one of the tarballs provided there. For 64-bit Linux, version 2.4.6 specifically, you would want this version, though there is no specific reason not to use a later version of the mongosniff tool with 2.4.6

I would also note that Wireshark has MongoDB dissectors built in, so you can also use that to read/view a standard tcpdump of MongoDB traffic as an alternative. For an example, take a look at my Q&A over on Serverfault related to filtering:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.