* [Sysadmins] collectd threshold monitoring
@ 2011-02-24 20:10 Michael Shigorin
0 siblings, 0 replies; only message in thread
From: Michael Shigorin @ 2011-02-24 20:10 UTC (permalink / raw)
To: sysadmins
Здравствуйте.
По мотивам настройки предупреждалок о выходе собираемых collectd(8)
значений за разумные/опасные границы (требуется версия >= 4.3):
http://collectd.org/wiki/index.php/Notifications_and_thresholds
http://collectd.org/documentation/manpages/collectd.conf.5.shtml#threshold_configuration
http://collectd.org/documentation/manpages/collectd-exec.5.shtml#notification_data_format
http://collectd.org/wiki/index.php/Plugin:Exec#Synopsis
---
<Threshold>
<Plugin "ipmi">
<Type "temperature">
WarningMax 40
FailureMax 50
</Type>
</Plugin>
</Threshold>
<Plugin "exec">
NotificationExec "collectd" "/usr/local/bin/notify.sh"
# won't work, either all to argv[0] or parser chokes -- mike on 20110224
# NotificationExec "collectd" /bin/mail -s "[trouble] collectd notification" me@example.com
</Plugin>
--- /etc/collectd.conf
---
#!/bin/sh
/bin/mail -s "[trouble] collectd notification" me@example.com him@example.com
--- /usr/local/bin/notify.sh
PS: отправил в 5.1/branch сборку collectd с поддержкой IPMI.
PPS: в сизиф надеюсь успеть до отбранчёвывания отправить 5.0.0,
там будет несколько (документированных) несовместимых
изменений разумного толка -- посмотрим, что из collectd-5.0
и branch/6.0 раньше появится.
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-02-24 20:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-24 20:10 [Sysadmins] collectd threshold monitoring Michael Shigorin
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