Message archiving not working

I have the monitoring plugin installed. But if I request the archiving preferences from the server with:

 <pref xmlns='urn:xmpp:archive'/>

I’ll get this error response:

 <error code="501" type="cancel"><feature-not-implemented xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error>