Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hey monks

i want to ask how to check the status of services such like (httpd , smtp ..etc ) on the same server

what is the best way to do it using perl ?

Cheers

Replies are listed 'Best First'.
Re: Services check
by shigetsu (Hermit) on Jan 10, 2007 at 07:57 UTC

    Albeit not exactly a pure Perl implementation, I'd recommend a monitoring daemon such as mon. It provides a common interface to its extensions which may be implemented as Perl scripts (among other languages).

    CPAN is rather sparse in terms of suitable modules (unless I have missed something obvious): Net::DHCP::Watch