[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) |
Hi!
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
names/aliases.
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
this,
#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/foo_daemon.pid
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/foo.py
It works with Solaris 2.7.
Bye,
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: https://www.iei.tu-clausthal.de/pgp-keys/chopp.key.asc (2001-11-22)
monit_service.patch
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Patch] Port as number or as service name/alias,
Christian Hopp <=