Perl isn’t that bad
So, I had planned on doing some theme work on the old blog tonight, but I got sucked into something else. I sat down at my desktop, and realized that my server, which is using RRDtool to create graphs of its preformance/statistics, was only calculating the information for /dev/hda and not the two raid arrays which are mapped at /dev/sda and /dev/sdb respectively. So, I started looking into fixing that. Well, 2.5 hours later, I have done my first little bit of Perl scripting, just modifying a perl script that existed, but I added in the appropriate codes to expand the RRD database, get the data from the 4 new sources, and configured the system to draw the appropriate lines in the graphs. Now, because I had to reset the DB I lost all of my historical data, or I can’t see it at the moment. But, because its a realtime system I started copying all of my Bond Movies over from the server to the desktop, that should give me a spike in the Read on sda at least, and combined with the writes to sdb from my recording of The Colbert Report, I should be able to see some data on the graphs in the morning and know that I programmed it all in correctly. I can already see that the graphs are updated, with the legends, but thats the easy part, getting the correct data from the monitors and into the database correctly are the more tricky parts. Anyway, its getting late, so I am going to bed. Maybe I will post-pone my theme work until Friday, when I have the day off. It will feel like work, because that is a task I have been doing at work recently, as I am administering the new blog site, but it will be personal so it won’t be that bad.
No Comments, Comment or Ping
Reply to “Perl isn’t that bad”
You must be logged in to post a comment.