in reply to swap space monitor script
Ok, it would seem that you and I know about as much as each other about how to do this. Presumably you know something about swap space, where I do not, and clearly you do not know any perl whereas I do. So that makes us even. :-)
So, where to start? Well presumably there are some tools that you use routinely to monitor and manage your swapspace. Get em out and start figuring out how to parse them. That would mean using regexes, which are documented in perlre. You mention a config file. Well, personally I use Config::Inifile or plain oldData::Dumper to do this type of stuff, but a lot of people seem to be quite keen on YAML. Of course you'll want to exec the tools from the perl side of things so you should have a look at backticks, system and perlopentut.
Hopefully thats a good starting point?
• Update:
Conversation in the CB has lead to me hunting down the following link How (Not) To Ask A Question which is the (IMO) canonical PM node about how to get the best out of the talents that hang out here. My node is a bit tongue in cheek because theres no code for us to help you on. Beyond what Abigail-II and I have said theres not much anybody can say. Try to reply or ask your question again with a better question and im sure youll get something that you can work with. :-)
|
|---|