Perl update rrd


















Only one data source name can be added at a time. You must also specify the data source type. This method can be called internally by the update method to automatically add missing data sources. The number of image files that are created depends on the retention period of the RRD file. Hourly, 6 hourly, 12 hourly, daily, weekly, monthly, annual and 3year graphs will be created if there is enough data in the RRD file to accomodate them.

The image filenames will start with either the basename of the RRD file, or whatever is specified by the basename parameter. The second part of the filename will be "-hourly", "-6hourly", "hourly", "-daily", "-weekly", "-monthly", "-annual" or "-3year" depending on the period that is being graphed. Specifying this value will force the resulting graph images to be written to this path location. The specified path must be a valid directory with the sufficient permissions to write the graph images.

The basename parameter is optional. This parameter specifies the basename of the graph image files that will be created. If not specified, it will default to the name of the RRD file.

For example, if you specify a basename name of mygraph , the following graph image files will be created in the destination directory:. The default file format is png , but this can be explicitly specified using the standard RRDs options.

See below. The timestamp parameter is optional, but will default to "graph". This parameter specifies which "last updated" timestamps should be added to the bottom right hand corner of the graph.

Valid values are: "graph" - the timestamp of when the graph was last rendered will be used, "rrd" - the timestamp of when the RRD file was last updated will be used, "both" - both the timestamps of when the graph and RRD file were last updated will be used, "none" - no timestamp will be used. The periods parameter is an optional list of periods that graphs should be generated for. If omitted, all possible graphs will be generated and not restricted to any specific subset.

See the create method for a list of valid time periods. The sources parameter is optional. This parameter should be an array of data source names that you want to be plotted. How I can install RRD module in perl? Ask Question. Asked 9 years, 5 months ago. Active 3 years ago. Viewed 30k times. How I can install that? Thanks in advance. Improve this question. Have you tried RRDtool? Mitch: Ya i have tried that one. But still that plugin say's the package RRD is missing under perl module.

Add a comment. Active Oldest Votes. Improve this answer. Braiam Jason Fesler Jason Fesler 81 1 1 silver badge 2 2 bronze badges. Try installing RRDtool. With the retrieved values it draws graphs as defined by the parameters supplied on the command line.

A single graph can show different DS Data Sources from a database. It is also possible to show the values from more than one database in a single graph. Often, it is necessary to perform some math on the values retrieved from the database before plotting them. For example, in SNMP replies, memory consumption values are usually specified in KBytes and traffic flow on interfaces is specified in Bytes. Graphs for these values will be more meaningful if values are represented in MBytes and mbps.

The RRDtool graph command allows one to define such conversions. RRDtool looks at several things when making its choice. First it makes sure that the RRA covers as much of the graphing time frame as possible. Second it looks at the resolution of the RRA compared to the resolution of the graph. It tries to find one which has the same or higher better resolution. With the "-r" option you can force RRDtool to assume a different resolution than the one calculated from the pixel width of the graph.

AREA is represented by a solid colored area with values as the boundary of this area. Another important thing to note is that variables are plotted in the order they are defined in the graph command. It is also possible to put formatted comments within the graph. Detailed instructions can be found in the graph manual. Tasks involved in network management are data collection, data storage, and data retrieval. In the following example, the previously created target.

Data collection and data storage is done using Shell scripts. Data retrieval and report generation is done using Perl scripts. These scripts are shown below:. NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. It may also be that you are looking at a mirror page which did not copy the CSS for this page. Or if some pictu res are missing, then the mirror may not have picked up the contents of the inc directory.

What makes RRDtool so special? Though it is a database, there are distinct differences between RRDtool databases and other databases as listed below: RRDtool stores data; that makes it a back-end tool. The RRDtool command set allows one to create graphs; that makes it a front-end tool as well. Other databases just store data and can not create graphs. In case of linear databases, new data gets appended at the bottom of the database table. Thus its size keeps on increasing, whereas the size of an RRDtool database is determined at creation time.

Imagine an RRDtool database as the perimeter of a circle.



0コメント

  • 1000 / 1000