Re: admin newbie seeking script assistance

From: Dave Hinz (DaveHinz_at_spamcop.net)
Date: 08/02/04

  • Next message: Michael Heiming: "Re: admin newbie seeking script assistance"
    Date: 2 Aug 2004 17:15:45 GMT
    
    

    On 2 Aug 2004 09:05:46 -0700, Brian Bouchard <bbouch@mcio.org> wrote:
    > I just recently joined a group of system administrators, after working
    > for about 5 years in programming on OS/390.
    >
    > I have been asked to write a perl script to monitor httpd daemons over
    > time, initially worried about the Size field in a ps -efl

    Well, I'd actually suggest using something like wget, lynx, or curl to
    fetch the http served by the webserver, rather than the output of ps.
    You can have processes that have gone stupid and still show up in
    ps, but not be actually doing anything useful.
     
    > ps -efl | grep "httpd -k start"
    >
    > which seems to be getting what I wanted, but while I was getting this
    > started, it occurred to me, there must be a billion other similar
    > scripts out there as to what I am about to start writing.

    Yup. Depending on what other things you want to do, you might consider
    using a program that's already written and spend your time adapting
    it. Big Brother comes to mind - http://bb4.org/

    > Does anyone have anything like this? I realize it would actually be a
    > good learning for me to start this from scratch, but the script is
    > needed ASAP for aid in troubleshooting some production problems, and I
    > would rather not have to do this from scratch if someone else has
    > something that would work for our purposes and is relatively simple so
    > I could modify as needed.

    In that case, definately look at BigBrother. About a half day to install
    and config, assuming you have access to compilers.

    > Credit would be given to whomever helped me out. I'm not looking to
    > impress anyone by getting it done faster than anticipated... I just
    > want to have something soon so the guys working on the problem aren't
    > being held up by me trying to learn the ins and outs of a new
    > language/system.
     
    It'll be good to write a script well and quickly, maybe setting up a system
    that can be extended for more than just that purpose would be even more
    helpful to your organization and your reputation. Worth considering,
    anyway. But, if you want to roll your own, condider the wget, curl, or
    lynx approach rather than the ps approach.

    Dave Hinz


  • Next message: Michael Heiming: "Re: admin newbie seeking script assistance"

    Relevant Pages

    • Re: Script to change "Adjust for Best Performance"
      ... WinXP to "Adjust for Best Performance" ... Has anybody got a script for this? ... Google.. ... A system administrators best friend.. ...
      (microsoft.public.scripting.wsh)
    • Re: WScript.Sleep for HTA?
      ... >>> which is fine for my purposes! ... > Here's a test script; ... > Dim objWSS ... Dropping the final True seems to give a shorter delay. ...
      (microsoft.public.scripting.vbscript)
    • Re: More Bloody Cheek
      ... In message, Richard Robinson writes ... time for their purposes according to all these "suck people people into ... script, there's a script. ...
      (uk.rec.sheds)
    • admin newbie seeking script assistance
      ... I have been asked to write a perl script to monitor httpd daemons over ... good learning for me to start this from scratch, ... needed ASAP for aid in troubleshooting some production problems, ...
      (comp.unix.admin)
    • Re: More Bloody Cheek
      ... Peter Thomas said: ... time for their purposes according to all these "suck people people into ... Just say something that isn't in the script. ...
      (uk.rec.sheds)