tags:

views:

25

answers:

1

mongosniff is for looking at what's 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 mongod is running fine. Is there something that can make it work?

Update: thanks. after running it as root, for some reason it is not reporting any activities when a mongo is running with different queries on this same machine. One time I had an error and it reported once and that was it... was it to report each activity usually?

+2  A: 

Have you tried running it as root? I get that error when I don't have permission to monitor network traffic.

Edit in response to your update:

You have to specify the network interface to sniff. Run ifconfig to see what your local network name is and then use:

sudo mongosniff --source NET lo
kristina
A lot of mongosniff issues are pcap related. When I have some time I should find a page that explains all the usual pcap issues (as well as the extra-special winpcap fun) and link to it on the wiki.
Justin Dearing
please see Update in question. thanks.
動靜能量