Monitoring via Direct TCP/IP (No External Commands/Plugins)

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Monitoring via Direct TCP/IP (No External Commands/Plugi

Post by eloyd »

I still think it's a development effort either way and the OP must decide what's going to be the best bang for the buck and how many minute hand sweeps he wants to watch go by while waiting for it to get done.

Either way, I think it's beyond the scope of this forum. :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Monitoring via Direct TCP/IP (No External Commands/Plugi

Post by abrist »

True enough. My suggestion will still be to use check_jmx as I would rather have my servers do more work than myself :P
OP: Can I lock this?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
janaka
Posts: 4
Joined: Mon Nov 03, 2014 3:30 am
Location: Colombo, Sri Lanka

Re: Monitoring via Direct TCP/IP (No External Commands/Plugi

Post by janaka »

Thanks @eloyd, @tmcdonald, @abrist!
eloyd wrote:Write a daemon that does your checking by maintaining an established connection. Run this thing on your Nagios host. Give IT the ability to respond to HTTP requests which you can then query from Nagios in the usual manner. So in essence, you're monitoring a monitoring process.
I finally ended up implementing something similar; a TCP client that maintains a persistent connection to a JMX query handling agent on my remote server, and writes back the query responses as passive monitoring commands into the Nagios external command file (pipe). Currently I can live with that implementation, at the expected level of performance and monitoring detail.

I will catch up with you guys if I happen to need to dig deeper.
Thanks again!
janaka
Posts: 4
Joined: Mon Nov 03, 2014 3:30 am
Location: Colombo, Sri Lanka

Re: Monitoring via Direct TCP/IP (No External Commands/Plugi

Post by janaka »

abrist wrote:OP: Can I lock this?
Sure, thanks!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Monitoring via Direct TCP/IP (No External Commands/Plugi

Post by eloyd »

Love the implementation!
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitoring via Direct TCP/IP (No External Commands/Plugi

Post by tmcdonald »

Going to lock this now, but please PM one of the moderators if you want it re-opened.
Former Nagios employee
Locked