Unix Web Hosting for Developers

Unix - Unix Like Operating Systems

Figure 19-1: Sample MRTG graph Get MRTG measuring

Filed under: Guide To FreeBSD — webmaster @ 4:06 pm

Figure 19-1: Sample MRTG graph Get MRTG measuring traffic on one of your machines, and then we’ll measure some other interesting things by choosing our SNMP MIBs. Tracking Other System Values By default, MRTG measures network traffic, but you can use it to measure any information available via SNMP. All you need are the MIBs for the information you want to measure. To make MRTG monitor these MIBs instead of network traffic, add them to the Target entry like so: ………………………………………………………………………………………. Target[label]:mibnumber1&mibnumber2:GetLostLoser@localhost ………………………………………………………………………………………. For example, to measure system CPU time (MIB .1.3.6.1.4.1.2021.11.9.0) and user CPU time (MIB .1.3.6.1.4.1.2021.11.10.0), use this line: ………………………………………………………………………………………. Target[cpu]:1.3.6.1.4.1.2021.11.9.0&1.3.6.1.4.1.2021.11.10.0.:GetLostLoser@localhost ………………………………………………………………………………………. Remember, MRTG charts MIBs in pairs, so pick values to monitor accordingly. Sensible choices are things like “available swap and total swap” or “system CPU usage and user CPU usage.” Measuring combinations such as available swap versus the percentage of disk available would give you difficult-to-understand charts. How do we know which MIBs to use? Well, digging through the snmpwalk output, and translating the system and user CPU times (enterprises.ucdavis.systemStats.ssCpuUser.0 and enterprises.ucdavis.systemStats.ssCpuSystem.0, respectively), we find that they translate to .1.3.6.1.4.1.2021.11.9.0 and .1.3.6.1.4.1.2021.11.10.0. You don’t want to go digging through the MIB tree to find this sort of thing, however, so I’ll make it a little easier for you. Useful Net-snmp MIBs Here are some net-snmp MIBs worth monitoring by name, with their corresponding numerical values in parentheses. All of these can be found under .1.3.6.1.4.1.2021. For example, the Memory.MemTotalSwap MIB can be determined by querying 1.3.6.1.4.1.2021.Memory.MemTotalSwap. Note Before using any MIB, be sure to test it at snmpwalk. Each query should return a single line. If it returns multiple lines, there’s probably an index on the end of it that you should include before entering that MIB in MRTG. 445

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Linux Web Hosting services

35 Comments

  1. […] YouTube Link to Article linux Figure 19-1: Sample MRTG graph Get MRTG measuring » This excerpt is from an article posted at Unix Web Hosting for Developers on Saturday, August 18, 2007 Figure 19-1: Sample MRTG graph Get MRTG measuring traffic on one of your machines, and then we’ll measure some other interesting things by choosing our SNMP MIBs. Tracking Other System Values By default, MRTG measures network traffic, but you can use it to measure any information available via SNMP Summary Provided by Technorati.comView Original Article » 10 Most Recent News Articles About Linux […]

    Pingback by University Update - Linux - Figure 19-1: Sample MRTG graph Get MRTG measuring — August 18, 2007 @ 5:55 pm

  2. 170acc618d0eccdb6508…

    170acc618d0e…

    Trackback by 170acc618d0eccdb6508 — October 2, 2007 @ 4:59 am

  3. lamisil forum…

    news…

    Trackback by lamisil forum — October 18, 2007 @ 10:46 pm

  4. alprazolam from mexico…

    news…

    Trackback by alprazolam from mexico — October 19, 2007 @ 6:19 pm

  5. adderall side effects…

    news…

    Trackback by adderall side effects — October 19, 2007 @ 6:23 pm

  6. information on flexeril -muscle relaxer…

    news…

    Trackback by information on flexeril -muscle relaxer — October 20, 2007 @ 7:14 pm

  7. meridia side effects…

    news…

    Trackback by meridia side effects — October 21, 2007 @ 6:28 pm

  8. fioricet and blood work…

    news…

    Trackback by fioricet and blood work — October 21, 2007 @ 6:31 pm

  9. buy norco online…

    news…

    Trackback by buy norco online — October 21, 2007 @ 6:45 pm

  10. biotek ephedrine…

    news…

    Trackback by biotek ephedrine — October 23, 2007 @ 6:35 pm

  11. generic flomax…

    news…

    Trackback by generic flomax — October 23, 2007 @ 7:21 pm

  12. bupropion sr…

    news…

    Trackback by bupropion sr — October 23, 2007 @ 7:27 pm

  13. clomid fertility drugs…

    news…

    Trackback by clomid fertility drugs — October 23, 2007 @ 8:22 pm

  14. adderall xr side effects…

    news…

    Trackback by adderall xr side effects — October 23, 2007 @ 8:28 pm

  15. protonix side effects…

    news…

    Trackback by protonix side effects — October 24, 2007 @ 6:43 pm

  16. acyclovir iv meds program…

    news…

    Trackback by acyclovir iv meds program — October 24, 2007 @ 6:50 pm

  17. zocor eye…

    news…

    Trackback by zocor eye — October 24, 2007 @ 7:26 pm

  18. interactions between elavil and ephedrine…

    news…

    Trackback by interactions between elavil and ephedrine — October 24, 2007 @ 7:33 pm

  19. diflucan birth control pills…

    news…

    Trackback by diflucan birth control pills — October 24, 2007 @ 7:41 pm

  20. tramadol hcl…

    news…

    Trackback by tramadol hcl — October 25, 2007 @ 6:11 pm

  21. prednisone…

    news…

    Trackback by prednisone — October 25, 2007 @ 6:16 pm

  22. ativan without prescription…

    news…

    Trackback by ativan without prescription — October 25, 2007 @ 6:53 pm

  23. prozac use in dogs…

    news…

    Trackback by prozac use in dogs — October 25, 2007 @ 6:55 pm

  24. norvasc side affects…

    news…

    Trackback by norvasc side affects — October 25, 2007 @ 7:01 pm

  25. oxycodone stomach problems…

    news…

    Trackback by oxycodone stomach problems — October 25, 2007 @ 7:32 pm

  26. ativan side effects…

    news…

    Trackback by ativan side effects — October 25, 2007 @ 7:36 pm

  27. doxycycline side effects…

    news…

    Trackback by doxycycline side effects — October 25, 2007 @ 7:39 pm

  28. clomid…

    news…

    Trackback by clomid — October 26, 2007 @ 6:09 pm

  29. zyban depression…

    news…

    Trackback by zyban depression — October 26, 2007 @ 6:46 pm

  30. norco world…

    news…

    Trackback by norco world — October 26, 2007 @ 7:21 pm

  31. prednisone works…

    news…

    Trackback by prednisone works — October 26, 2007 @ 7:48 pm

  32. alprazolam without prescription…

    news…

    Trackback by alprazolam without prescription — October 26, 2007 @ 7:53 pm

  33. neurontin side effects…

    news…

    Trackback by neurontin side effects — October 27, 2007 @ 6:54 pm

  34. buy lorazepam…

    news…

    Trackback by buy lorazepam — October 27, 2007 @ 7:32 pm

  35. dangers of vicodin…

    news…

    Trackback by dangers of vicodin — October 27, 2007 @ 7:35 pm

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by Unix Web Hosting