MongoDB mongosniff won't start?

mongosniff designed to see what is sent to the MongoDB server, but on a Mac with OS X Snow Leopard it says:

error finding device: no suitable device found

this is when it mongodworks fine. Is there anything that can make it work?

Update: . after running it as root, for some reason it does not report any actions when it mongoworks with different requests on the same machine. Once I had a mistake, and she reported once, and that was ... was it usual to report every event?

+3
source share
2 answers

Have you tried running it as root? I get this error when I do not have permission to monitor network traffic.

Edit in response to your update:

. ifconfig, , , :

sudo mongosniff --source NET lo
+2

root :

bobk-mbp: ~ bobk $sudo mongosniff --source NET lo0
... 27017
10.78.4.213:14303 → > 10.78.4.213:27017 admin. $Cmd 58 bytes id: 2447 9287
  query: {ismaster: 1} ntoreturn: -1 ntoskip: 0

10.78.4.213:27017 < - 10.78.4.213:14303 87 bytes id: 2789 10121 - 9287
   n: 1 cursorId: 0
  {ismaster: true, maxBsonObjectSize: 16777216, ok: 1.0}

... ifconfig , LOOPBACK lo0 .

0

Source: https://habr.com/ru/post/1762373/


All Articles