diff --git a/uwsgicc/templates/index.html b/uwsgicc/templates/index.html
index 2cd429ba..6d69804c 100644
--- a/uwsgicc/templates/index.html
+++ b/uwsgicc/templates/index.html
@@ -138,7 +138,7 @@ a:hover{
uWSGI {{uwsgi.version}} Control Center
{% with messages = get_flashed_messages() %}
@@ -225,6 +225,21 @@ a:hover{
+
+RPC
+
+
{% if uwsgi.cluster() %}
diff --git a/uwsgicc/uwsgicc.py b/uwsgicc/uwsgicc.py
index 3f9561f7..fa441469 100644
--- a/uwsgicc/uwsgicc.py
+++ b/uwsgicc/uwsgicc.py
@@ -21,3 +21,21 @@ def log():
uwsgi.log(request.form['message'])
flash("log message written")
return redirect(url_for('index'))
+
+@app.route("/rpc", methods=['POST'])
+def log():
+ node = str(request.form['node'])
+ if node == '':
+ node = None
+
+ fargs = str(request.form['args'])
+
+ args = fargs.split()
+
+ if len(args) > 0:
+ ret = uwsgi.rpc(str(node), str(request.form['func']), *map(str, args))
+ else:
+ ret = uwsgi.rpc(str(node), str(request.form['func']))
+
+ flash("rpc \"%s\" returned: %s" % (request.form['func'], ret) )
+ return redirect(url_for('index'))