RSS in Adagios via pynag

Posted 2014-12-13

This page describes use of pynag with Adagios to display RSS from a mote running OpenWSN.



I added the mg-rss branch to the OpenWSN firmware for this work. The rrss app retrieves the RSS data from the existing neighbor table in OpenWSN. It then encodes the data in JSON, and sends a CoAP message to the Adagios server.

Setting up pynag

pynag works with Adagios to submit Nagios checks via the nsca package. See the Using Adagios page for background.

Installed 'nsca' and 'nsca-client' packages.

Followed instructions in nagios3 Debian.README to run external commands:

  • Set 'check_external_commands=1' in nagios.cfg

Execute these commands to setup and maintain proper permissions:

/etc/init.d/nagios3 stop
dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw
dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3
/etc/init.d/nagios3 start


I created Nethead to listen for CoAP messages from OpenWSN, and then send a service check via pynag. Nethead uses the SOS CoAP library to read the message.

I had already created the m5 host in Adagios, manually. This approach does not scale, but pynag also provides programmatic access to Nagios configuration data. Use of that feature is a topic for future work.