[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


I want to extent monit with an interface to Nagios.

For passive monitoring many clients each running witth a monit procces
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 (
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 

 <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

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 Checks:


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 

Any suggestions?


reply via email to

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