[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
monit should be able to send alerts to a configurable nagios daemon
From: |
Claus Klein |
Subject: |
monit should be able to send alerts to a configurable nagios daemon |
Date: |
Tue, 25 Jul 2006 22:43:03 +0200 |
User-agent: |
KMail/1.9.1 |
Hi,
I want to extent monit with an interface to Nagios.
For passive monitoring many clients each running witth a monit procces
(see http://nagios.sourceforge.net/docs/2_0/passivechecks.html),
I need to be able to send an SNMP trap in every case when monit would send a
mail, or
or to use the cmdline interface below:
address@hidden:~/downloads/nsca-2.6> src/send_nsca -h
NSCA Client 2.6
Copyright (c) 2000-2006 Ethan Galstad (www.nagios.org)
Last Modified: 04-06-2006
License: GPL v2
Encryption Routines: NOT AVAILABLE
Usage: src/send_nsca -H <host_address> [-p port] [-to to_sec] [-d delim] [-c
config_file]
Options:
<host_address> = The IP address of the host running the NSCA daemon
[port] = The port on which the daemon is running - default is 5667
[to_sec] = Number of seconds before connection attempt times out.
(default timeout is 10 seconds)
[delim] = Delimiter to use when parsing input (defaults to a tab)
[config_file] = Name of config file to use
Note:
This utility is used to send passive check results to the NSCA daemon. Host and
Service check data that is to be sent to the NSCA daemon is read from standard
input. Input should be provided in the following format (tab-delimited unless
overriden with -d command line argument, one entry per line):
Service Checks:
<host_name>[tab]<svc_description>[tab]<return_code>[tab]<plugin_output>[newline]
Host Checks:
<host_name>[tab]<return_code>[tab]<plugin_output>[newline]
address@hidden:~/downloads/nsca-2.6>
After inspecting the code, I found handle_alert(Event_T E) in alert.c is the
right place
to extent this functionality.
Is it a bad idea to call system() with the right params to use the send_nsca
util?
Any suggestions?
claus
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- monit should be able to send alerts to a configurable nagios daemon,
Claus Klein <=