Before I go into production with my Wildfire server I need to implement basic monitoring and metrics. I was contemplating a simple client that would connect to the server and use ad-hoc commands to request the stats I need. I’'ve given this a try with PSI but its not working for me. Example…
- Request* ***
<iq from="st0nkingbyte@domain.com/Psi" type=“get” id=“get-active-users-num-1” to=“domain.com” xml:lang=“en”>
<command xmlns=“http://jabber.org/protocol/commands”
node=“http://jabber.org/protocol/admin#get-active-users-num”
action=“execute”/>
</iq>
- Reply* ***
<iq from=“domain.com” type=“error” to="st0nkingbyte@domain.com/Psi" id=“get-active-users-num-1” >
<command xmlns=“http://jabber.org/protocol/commands”
node=“http://jabber.org/protocol/admin#get-active-users-num”
action=“execute” />
<error type=“modify” code=“400” >
<bad-request xmlns=“urn:ietf:params:xml:ns:xmpp-stanzas”/>
</error>
</iq>
I patterning my request after the example found here:
http://www.jabber.org/jeps/jep-0133.html#get-active-users-num
Should this work?