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
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 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.