Using NRDP
NRDP (Nagios remote Data processor) is a php-bases passive result collector for Nagios.
Via NRDP any remote agents/applications etc. have capability to submit commands on Nagios server. Its capabilities can be extended by the use of more plugins available within Nagios exchange.
Installation-
Download tar ball via - https://github.com/NagiosEnterprises/nrdp/archive/2.0.2.tar.gz
untar it and then cd nrdp-*