From: Di <denyago@rambler.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] nagios & check_oracle
Date: Wed, 21 May 2008 00:29:13 +0300
Message-ID: <483342A9.50500@rambler.ru> (raw)
In-Reply-To: <1162771211283520@webmail12.yandex.ru>
[-- Attachment #1: Type: text/plain, Size: 1185 bytes --]
unix9 пишет:
> Приветствую всех!
> необходимо проверять работу бд оракла
> из командной строки я проверяю все нормально
>
> ./check_oracle --tns db
> OK - reply time 0 msec from db
>
> но вот как прописать в конфиги нагиоса этот плагин я не знаю. кто настраивал связку подскажите какможно сделать?
Сначала регистрируем команду проверки (или плагин) в
/etc/nagios/commands.cfg:
define command {
command_name check_oracle
command_line $USER1$/check_oracle --tns '$ARG1$'
}
Затем, добавляем её какй-то машине (где они там у Вас описаны, у меня
тупо в /etc/nagios/localhost.cfg):
define service {
use local-service <- это может быть и не такое...в
зависимости от настроек
host_name SuperPuperOrakul <- это сервер (между прочем,
плагину можно передавать АйПи сервера через переменные)
service_description Try to kick DB - is it alive?
check_command check_oracle!db <- знаками "!" разделены аргументы
}
Перегружаем (не путать с рестартуем) сервис
service nagios reload
*hint* можно было просто посмотреть как описана команда пинг или ей
подобные в конфиге /etc/nagios/commands.cfg...
100% авельебилити Вам!
[-- Attachment #2: denyago.vcf --]
[-- Type: text/x-vcard, Size: 364 bytes --]
begin:vcard
fn:Denis Timurovich Yagofarov
n:Yagofarov;Denis Timurovich
org:ITGIS NASU
adr:room 615;;Chokolovski sqr., 13;Kiev;;03151;Ukraine
email;internet:denyago@rambler.ru
title:system administrator
tel;work:80442480755
tel;pager:diyago@jabber.te.ua
tel;home:80442434512
tel;cell:80662933760
note:diyago@jabber.te.ua
x-mozilla-html:FALSE
version:2.1
end:vcard
next prev parent reply other threads:[~2008-05-20 21:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-20 11:38 unix9
2008-05-20 21:29 ` Di [this message]
2008-05-23 8:36 ` unix9
2008-05-23 11:01 ` unix9
2008-05-23 19:31 ` Maks Re
2008-05-23 20:37 ` unix9
2008-05-23 21:01 ` Maks Re
2008-05-24 7:33 ` unix9
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=483342A9.50500@rambler.ru \
--to=denyago@rambler.ru \
--cc=sysadmins@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git