Re: admin newbie seeking script assistance
From: Michael Heiming (michael+USENET_at_www.heiming.de)
Date: 08/02/04
- Next message: Chris Fortune: "how to detect and block repetitive attacks"
- Previous message: Dave Hinz: "Re: admin newbie seeking script assistance"
- In reply to: Brian Bouchard: "admin newbie seeking script assistance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 2 Aug 2004 17:21:58 -0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message
In comp.unix.admin Brian Bouchard <bbouch@mcio.org> suggested:
[..]
> 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
Perl might be OTT for that.
> I started working on this by isolating what I wanted to look for with
> the following command:
> ps -efl | grep "httpd -k start"
ps -C httpd > /dev/null && echo "apache up" || echo "no apache"
Should AFAIK work with a UNIX95 compliant ps in bash/ksh. Adjust
to your needs.
-- Michael Heiming (GPG-Key ID: 0xEDD27B94) mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/' -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBDng1AkPEju3Se5QRAvCVAKCQWEzYgPhjZsdSbAD6qFJDoyIpvwCdGHZB 4lvw9S2PWmzwPOeifYdPQTU= =zIe4 -----END PGP SIGNATURE-----
- Next message: Chris Fortune: "how to detect and block repetitive attacks"
- Previous message: Dave Hinz: "Re: admin newbie seeking script assistance"
- In reply to: Brian Bouchard: "admin newbie seeking script assistance"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|