Android Nagios Agent (NRPE)

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.
Locked
jocyvan
Posts: 3
Joined: Tue Aug 05, 2014 7:07 am

Android Nagios Agent (NRPE)

Post by jocyvan »

Anybody knows a way to monitoring a android using passive checks? A kind of NRPE for android. Anybody already saw a nagios agent or a way to do that?
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Android Nagios Agent (NRPE)

Post by eloyd »

I know of lots of Nagios apps that propose to let you see your Nagios monitoring installation from both IOS and Android devices, but I know of no Android (or IOS) native app that would act as an agent similar to NRPE to probe the device.

It's an interesting concept, and I do have the beginnings of a solution:

Install (or activate) an SSH server on the Android device and you could do rudimentary check_by_ssh checks, provided that you have the appropriate shell scripts or Android-native apps available to you on the device. IP address would be a pain to track unless you're in a DHCP wifi environment with MAC-based IP address assignment. But it could work without any extra "agent" running on the device.

Same basic idea goes for IOS but you'd have to jailbreak first.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
jocyvan
Posts: 3
Joined: Tue Aug 05, 2014 7:07 am

Re: Android Nagios Agent (NRPE)

Post by jocyvan »

To use SSH is a brilliant idea, but i need to check those androids by passive check. Those androids will be behind a firewall/proxy. I'm already doing passive check with windows hosts through NSClient++ and now I need do the same with androids.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Android Nagios Agent (NRPE)

Post by eloyd »

Then you don't want something like NRPE. The whole point behind NRPE is that the Nagios host can do active checks through the NRPE protocol to the client, which runs the NRPE agent and returns the results in real time.

You're most likely going to have to write an Android app that would send appropriate information to a Nagios server on a regular basis (you'd have to be able to configure the server) and then set up passive checks on the Nagios server to accept those checks.

I could see this being a VERY big (potentially commercial) opportunity, since I don't think anyone is doing any such thing now, but I think it's beyond the scope of this forum at this point.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
jocyvan
Posts: 3
Joined: Tue Aug 05, 2014 7:07 am

Re: Android Nagios Agent (NRPE)

Post by jocyvan »

eloyd wrote:I could see this being a VERY big (potentially commercial) opportunity, since I don't think anyone is doing any such thing now, but I think it's beyond the scope of this forum at this point.
Thanks you man. Now I know probably I need to try develop this agent and if a do, I'll post it here.

Thanks again.
lesnikov
Posts: 28
Joined: Sat Jan 19, 2013 10:40 pm
Location: Slovenia

Re: Android Nagios Agent (NRPE)

Post by lesnikov »

or you could write script that sends data with send_nsca and run that script in cron job (every hour or whatever you need..)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Android Nagios Agent (NRPE)

Post by tmcdonald »

lesnikov wrote:or you could write script that sends data with send_nsca and run that script in cron job (every hour or whatever you need..)
That is assuming send_nsca would compile. I think a NRDP agent would be *much* easier to develop.
Former Nagios employee
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Android Nagios Agent (NRPE)

Post by eloyd »

I'm not an Android developer (though I keep threatening to become one) but I think this would be a sweet ride. Imagine if you could sell a "corporate monitoring NRDP client" to places that deploy (or BYOB) Android-based devices? I'm thinking it would be a great commercial application and just might hire a few programmers to make it happen. :)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Locked