Hi Tony, That's a very good point. It wouldn't be difficult to make this support multiple simultaneous checks, but I currently have the checks running independently of one another and it works very well.
This was originally written with the intent to make it easy to take any single check and turn it passive without re-creating the wheel, simply by putting this script in front of it. If you grouped checks then this implies that they must all be run at the same time, which seems to reduce flexibility. Also, I think that for a lot of passive service checks it is advisable to not have them run at the same time. For example, I have check running at different intervals intentionally for staggering on the servers so that there is no performance degradation on the server performing the passive checks, although this could simply be one after the other which also should reduce performance in comparison, but watch out for multiple long running checks as this will may send the check result beyond the freshness threshold. If anyone really wants this feature I may look in to incorporating it, but I haven't seen any need for this "optimization" which would probably make very little difference until we start talking a massive number of passive service checks. I am open to ideas on this though. -h Anthony Montibello wrote: > Doesn't that method send the checks through seperate NSCA connection > (one per check)? > > While writing a custom NSCA script can send all the check results in a > single NSCA connection? > > TOny (Author of NC_NEt) > > On Fri, May 23, 2008 at 4:45 AM, Hari Sekhon <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Nair wrote: > > > > Can some one please help me in integrating send_nsca command with my > > Perl script for passive monitoring system. > > > > Say how can we integrate plugin output without writing to any > file and > > then piping thru send_nsca. > > > > Thank you, > > Nair > > > Don't waste your time Nair, I've written a generic nsca_wrapper which > will turn any plugin into a passive service check by just putting > nsca_wrapper in front of the plugin. You still need to have set up > nsca > of course, but this means that you do not have to write any > scripts for > passive service checks, just run it straight after nsca_wrapper with a > couple of switches. > > By the time you do your second passive service check, you start > thinking, "Hang on, this is a waste of time, I don't want to have > to put > in any effort to just set up another passive check". Enter > NSCA_Wrapper: > > http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2529.html;d=1 > > -h > > -- > Hari Sekhon > > -- Hari Sekhon ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null