Unix Web Hosting for Developers

Unix - Unix Like Operating Systems

Options[label]: option-names Options allow you to handle special

Filed under: Guide To FreeBSD — webmaster @ 4:13 am

Options[label]: option-names Options allow you to handle special cases. All options are specified on one line, after the target. Some good examples follow: growright By default, MRTG draws graphs from right to left. Use this option to make it draw graphs from left to right. bits This changes the graphs from measuring bytes to bits. Bits are not only more impressive, but they may also be more accurate, depending on what you’re measuring. For example, many people measure bandwidth in bits, not kilobytes. gauge SNMP generally retains information in counter form. MRTG subtracts the previous reading from the current reading to get the change in the last five minutes. Use the gauge option for SNMP MIBs that don’t change, such as disk capacity. unknaszero When a target is not reachable for any reason (including power failure or network problems), the system will assume the last known value for the charts. Whether or not this is more accurate is a matter of some controversy. This option causes MRTG to assume a value of zero when it cannot reach a target. MRTG Index Page The last bit of configuration we’ll need to do is to create a single HTML index page for our MRTG setup. MRTG includes an indexmaker tool that automagically does this for us. Just run this: ………………………………………………………………………………………. # indexmaker mrtg.cfg > index.html ………………………………………………………………………………………. You’ll probably want to edit this, but it’s a nice starting place. Sample MRTG Configurations This section contains some sample MRTG configurations. To use them, insert the correct hostname and community name. Also, note that the Target statements are supposed to be all on one line; the printed page simply isn’t wide enough to handle this at a type size you can see without a magnifying glass. In each example, you will need to edit the Target statement to give the proper hostname and community name, and you’ll probably want to edit the PageTop setting so your graph displays the correct information for your host. User and System CPU Usage This first sample compares user CPU usage with system CPU usage as percentages. (Note that we use the gauge option.) ………………………………………………………………………………………. Title[myhost.AbsoluteBSD.com.cpu]: myhost.AbsoluteBSD.com CPU usage YLegend[myhost.AbsoluteBSD.com.cpu]: CPU usage WithPeak[myhost.AbsoluteBSD.com.cpu]: wmy MaxBytes[myhost.AbsoluteBSD.com.cpu]: 100 Target[myhost.AbsoluteBSD.com.cpu]:.1.3.6.1.4.1.2021.11.9.0&.1.3.6.1.4.1.2021.11.10. 0:public@myhost.AbsoluteBSD.com ShortLegend[myhost.AbsoluteBSD.com.cpu]: CPU LegendI[myhost.AbsoluteBSD.com.cpu]: User CPU 448

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

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by Unix Web Hosting