Android Nagios Agent (NRPE)
Android Nagios Agent (NRPE)
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)
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.
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.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Android Nagios Agent (NRPE)
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)
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.
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.
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Android Nagios Agent (NRPE)
Thanks you man. Now I know probably I need to try develop this agent and if a do, I'll post it here.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 again.
Re: Android Nagios Agent (NRPE)
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)
That is assuming send_nsca would compile. I think a NRDP agent would be *much* easier to develop.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..)
Former Nagios employee
Re: Android Nagios Agent (NRPE)
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. 
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!