Page 1 of 1

Android Nagios Agent (NRPE)

Posted: Tue Aug 05, 2014 7:20 am
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?

Re: Android Nagios Agent (NRPE)

Posted: Tue Aug 05, 2014 8:54 am
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.

Re: Android Nagios Agent (NRPE)

Posted: Tue Aug 05, 2014 9:14 am
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.

Re: Android Nagios Agent (NRPE)

Posted: Tue Aug 05, 2014 9:23 am
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.

Re: Android Nagios Agent (NRPE)

Posted: Tue Aug 05, 2014 9:54 am
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.

Re: Android Nagios Agent (NRPE)

Posted: Tue Aug 05, 2014 1:38 pm
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..)

Re: Android Nagios Agent (NRPE)

Posted: Wed Aug 06, 2014 10:00 am
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.

Re: Android Nagios Agent (NRPE)

Posted: Wed Aug 06, 2014 11:40 am
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. :)