[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Patch] Port as number or as service name/alias

From: Christian Hopp
Subject: [Patch] Port as number or as service name/alias
Date: Wed, 17 Jul 2002 14:19:28 +0200 (CEST)


This patch is against version 2.5 and it introduces the ability to enter
network ports (for checks and for the http server) as service

If you have e.g.: the following entry in your /etc/services:

foo             12349/tcp
monit           2812/tcp        superlecker

You have the possibilities to enter the http server settings like

#set httpd port monit
#set httpd port 2812
set httpd port superlecker
        address localhost
        allow localhost
        allow admin:********

and those to enter a service,

check foo with pidfile /var/run/
    start program = "/etc/init.d/foo start"
    stop program = "/etc/init.d/foo stop"
    group foo
#    host iei1 port 12349
    host iei1 port foo
    alert address@hidden
    checksum /opt/sbin/

It works with Solaris 2.7.


Christian Hopp

Christian Hopp                                email: address@hidden
Institut für Elektrische Informationstechnik             fon: +49-5323-72-2113
Technische Universität Clausthal                         fax: +49-5323-72-3197
  pgpkey:  (2001-11-22)

Attachment: monit_service.patch
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]