![]() Step Five: Now we can let MRTG do it’s first run. The file ‘mrtg.cfg’ has been generated in your home directory. Fill in your IP address (ensure the community string and the IP address are separated by just a and let it do its job. It’s possibly also listed in the trusty Airport Utility. 192.168.2.5 is my router’s IP address in this case you should check what yours is, either by doing a ‘port scan’ with the Network Utility on your Mac, or by checking with your network preferences in System Preferences. As described in the last step, this is most likely either your base station password (-not- the network password) or just ‘public’. Don’t sweat, it’s very painless.Įnsure that ‘public’ is your community string. In the terminal, we will have to generate such a configuration. Step Four: Along with MRTG, we installed a utility called ‘cfgmaker’, that will generate MRTG configuration files for us. Working? Great, let’s go to the next step. You should get a whole lot of output in your terminal. If it gives an error about missing something, download the Airport MIB from Apple and copy it to “/usr/share/snmp/mibs” (you can ‘Go to folder’ with CMD+Shift+G in Finder to reach this directory), then try again. If it times out, check if SNMP is enabled or restart your Airport (also remember to check if the community string you set with the -c flag is either ‘public’ or your password). Done filling the blanks? Press enter, and let it roll. Also replace ‘Base station name’ with your base station name, as I told you to note in the first step. Try both it will either time out or spit out a huge amount of information. In this case, replace ‘-c public’ with either the community string you set in the Airport Utility (‘-c thestringyouentered’) – if you left this blank in the Airport Utility, it either defaults to ‘public’ or your base station password. Snmpwalk -v 2c -c public -M /usr/share/snmp/mibs:$HOME/share/mibs -m+AIRPORT-BASESTATION-3-MIB (Base station name).local 1.3.6.1.4.1.63.501Īll on one line. Step Three: Now, before we start setting up MRTG to use the SNMP services of your router, let’s test if it actually works. It should, given you don’t have other utilities installed beginning with ‘mr’, autocomplete to ‘mrtg’. Test it by typing ‘mr’ at the command line followed by pressing the ‘tab’ key. If all goes well, you now have ‘mrtg’ installed. ![]() You can get an easy-to-use binary from here follow the basic instructions, namely Ĭd (directory containing )mrtg-2.9.4-mosx.tgz Step Two: Now we’re going to set up MRTG. Check ‘allow SNMP’ (it doesn’t have to be over WAN, as this will allow you to monitor statistics over the internet, exposing a possible security hole). The first tab, “Logging & SNMP”, is the tab we need. This is the selection of tabs you will find under “Advanced”. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |