sorta-OT graph snmp values
First, please don't respond with "use mrtg, rrdtool, cricket, etc, etc." Silly 'layer 8' reasons are keeping me from being able to utilize these tools at this time. I have a need to graph SNMP values created by using a simple shell script on a Solaris box. I have output like this: 02-20-2009_08:00 39 19 20 18 23 19 18 18 ........ <snip 9 rows of data w/o the date> ........ 26 20 20 17 02-20-2009_09:00 23 20 22 18 I want to find a program that will allow me to graph the dates on the x-axis and the values on the y-axis, but I need it to be programmable such that I can run it from cron and send the graph to a directory as a jpeg, gif or png file. I tried using gnuplot, but I can't seem to make it work on outputting only to a file. Even using "set output graph.png". Can someone push me in the right direction? I'm not sure, but this should probably be discussed off-list... Thanks, scott
GD::Graph::lines does this easily, and there are plenty of examples to work from. (might be too much a pain if you don't have GD available) Ken Scott Weeks wrote:
First, please don't respond with "use mrtg, rrdtool, cricket, etc, etc." Silly 'layer 8' reasons are keeping me from being able to utilize these tools at this time.
I have a need to graph SNMP values created by using a simple shell script on a Solaris box. I have output like this:
02-20-2009_08:00 39 19 20 18 23 19 18 18 ........ <snip 9 rows of data w/o the date> ........ 26 20 20 17 02-20-2009_09:00 23 20 22 18
I want to find a program that will allow me to graph the dates on the x-axis and the values on the y-axis, but I need it to be programmable such that I can run it from cron and send the graph to a directory as a jpeg, gif or png file. I tried using gnuplot, but I can't seem to make it work on outputting only to a file. Even using "set output graph.png". Can someone push me in the right direction?
I'm not sure, but this should probably be discussed off-list...
Thanks, scott
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/20/2009 02:40 PM, Scott Weeks wrote: | a jpeg, gif or png file. I tried using gnuplot, but I can't seem to | make it work on outputting only to a file. Even using "set output | graph.png". Can someone push me in the right direction? Did you: set terminal png set output graph.png ... Thanks, ep - -- Brian Epstein <bepstein@ias.edu> +1 609-734-8179 Network and Security Officer Institute for Advanced Study Key fingerprint = 128A 38F4 4CFA 5EDB 99CE 4734 6117 4C25 0371 C12A -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFJnyAfYRdMJQNxwSoRAgblAJwN2B3v5zZWDYn6Jp5uB2JDcuj8JACfZZIF obBAWuNcmcEtTtvdVWWilU0= =lEJD -----END PGP SIGNATURE-----
participants (3)
-
Brian Epstein
-
Ken A
-
Scott Weeks