User Tools

Site Tools


NEMS 1.2 Changelog

NEMS 1.2 was released May 6, 2017. NEMS 1.2.1 was released May 22, 2017 to fix bugs with the migrator and improve the overall release following significant user feedback.

NEMS 1.2.1 Changelog

Here is a list of the changes I recorded during development.

  • NEMS now requires you to run nems-init when you first deploy. This tool takes care of some of those “first boot” prerequisites like setting passwords and expanding your filesystem.
  • Underlying OS upgraded to Raspbian Stretch.
  • Kernel upgraded to 4.9.28.
  • PHP upgraded to 7.0.19.
  • Reworking of nConf to make compatible with modern software (ie. PHP7.0, mySQLi).
  • Maintenance and info scripts moved to /home/pi/nems-scripts.
  • NEMS MOTD upon login now shows local IP address. Also improved how it determines some of the info (see in nems-scripts) and fixes a few bugs. Also set it up to rollover to wlan0 if no response on eth0, in case the user is on wifi.
  • Temporary files and Monitorix image cache moved to RAM.
  • Added RPi-Monitor as per Hesh’s comment. Reworked the Memory and CPU Frequency modules to correct the accuracy.
  • Added nagios-api (JSON on Port 8090) as per Timothy Seibert’s request. License
  • Added Webmin as per Hesh’s comment. Login as pi user with the password you created when initializing NEMS with the nems-init program.
  • Added support for agentless Windows checks using WMI (big thanks to Ryan Siegel who originally authored NagiosPi and pitched in for NEMS 1.2 release).
  • Changed Apache log rotation to weekly (was previously daily).
  • Upgraded nagvis to 1.9b16.
  • Fixed sendemail paths in nConf to ease out-of-the-box email notifications (as they should just work now). Thanks so much to Jim for pointing this typo out!
  • Enabled CPU governing (package cpufrequtils). On NEMS 1.0-1.1, NEMS was locked to 600MHz, but now it will automatically go up to 1200 MHz as needed.
  • force resolver to generate new DNS resolv.conf at first boot (to ensure the detected DNS servers will be used rather than our development DNS servers which may not work for you).
  • NEMS Migrator upgraded to allow direct migration from nagiospi to NEMS.
  • Added Monitorix 3.9.0.
  • Removed MySQL, replaced with MariaDB 10.1.22.
  • Improve quality of Monitorix graphs used on NEMS Dashboard slideshow.
  • Minor improvements to Monitorix page based on priority of service and image quality.
  • Removed some old (obsolete) kernel modules, InnoDB logs and other bloat to reduce size of stock image.
  • Added /var/www/nconf/temp to tmpfs. This way if someone breaks their nCONF (eg., pressing “Back” while generating config) they can just reboot to fix it 😀
  • nems-init and nems-migrator restore significantly reworked to correct initialization bugs from NEMS 1.2. Now, both initialization of a new NEMS deployment and an import from an old one should work without a hitch.
  • nConf and NEMS-Migrator backups now require your password (as set with nems-init).
  • NEMS-Migrator no longer replaces the MySQL database with backup. Instead, it now clears the database completely, reconciles your backup with the current set of available commands and services and then imports everything together into the fresh database and activates the hosts. This way, if you restore your NEMS 1.1 settings to NEMS 1.2.1, you don’t miss out on all the WMIC features (which your 1.1 backup would overwrite), for example.
  • Documentation updated to reflect changes in commands and versioning.
  • I built a quick but lovely interface for Monitorix to make it mobile responsive and a little more dynamic in its functionality.
  • Distribution now available via BitTorrent (thanks to our partnership with The Category5 TV Network.

Bug fixes

  • number of online users count on MOTD fixed.
  • undefined constant in apache error log every 5 minutes leading to a bloated error log.
  • added missing icons in check_mk.
  • NEMS Migrator mail settings fixed when importing backup.nems from NEMS 1.0/nagiospi.
  • Fixed MySQL Initialization Bug - was causing NEMS to lose configuration and no longer work.
  • Wifi (wlan0) restored after it broken in 1.2 (due to Debian Stretch upgrade and incompatible firmwares for the Pi).
  • Fixed nems-init user creation. In NEMS 1.2 it was not adding the new user to the “admin” group correctly in NEMS nCONF, so upon config generation, user would lose access to Nagios Core and other features requiring admin user.
  • many miscellaneous bug fixes.

Rolling Updates - NEMS 1.2.2 Changelog

  • May 23, 2017 - Created rolling fixes system to automatically patch NEMS systems as needed.
  • May 25, 2017 - Monitorix cronjob now detects which network connection is being used (ie., eth0/wlan0) and begins monitoring the correct one if it changes. Requires NEMS 1.2.1 or higher.
  • May 26, 2017 - NEMS Migrator updated to fix bug in host presets. Was causing these two errors: “[ERROR] Failed to get host-alive check for host ‘NEMS’. Make sure the host is linked with a host-preset. Aborting.” and “Error: Cannot open main configuration file ‘/var/www/html/nconf/temp/test/Default_collector.cfg’ for reading!” - Thanks to Rick for giving me access to his affected system so I could fix this. Requires NEMS 1.2.1 or higher.
  • May 27, 2017 - NEMS web interface has been updated to git repository so I can fix issues with it on the fly without forcing users to reinstall. Requires NEMS 1.2.2 or higher.
  • May 30, 2017 - Monitorix graphs clear when rebooting the Pi. This is by design. However, they were meant to regenerate upon boot. Hesh found a bug that was causing the graphs not to generate since the service was not yet loaded. I rewrote the back-end to wait for a network connection, and for the service to respond, before moving on. Requires NEMS 1.2.1 or higher.
  • June 1, 2017 - MOTD was displaying the disk usage as what was being used in the home folder. I realized this was absolutely pointless information, so rewrote this section to instead tell you the current % usage of your entire SD card (/dev/root). Requires NEMS 1.2.2 or higher.
  • June 6, 2017 - NEMS-Init bug fixed: new user is not authorized_for_system_information, authorized_for_all_hosts, authorized_for_configuration_information, authorized_for_system_commands … and so-on. Wrote this into nems-init. Had caused users to not have access to all screens in Nagios Core. Also added the config to the NEMS Migrator backup. I also added the patch to so users don’t have to re-initialize to get the fix. It will retroactively fix the file, automatically. Requires NEMS 1.2.1 or higher.
  • June 7, 2017 - Check_MK Multisite reports “user not found” on some screens. Similar issue to what was happening with Nagios Core: nems-init user was not being migrated correctly to Check_MK as pointed out by Rick. This has been fixed and a retroactive patch added to correct existing deployments. Requires NEMS 1.2.1 or higher.
  • June 8, 2017 - Updated nems-migrator to support NEMS 1.2.2. Built nems-upgrade, which will roll NEMS 1.2.1 up to NEMS 1.2.2 without needing to reinstall. You can do this (backup first please) by typing: sudo nems-upgrade
  • June 9, 2017 - Email notification service changed to automatically detect TLS. Changes will take effect immediately for new deployments, but if yours is already deployed (before June 9, 2017) please add the following to your service definitions in NEMS-nConf for notify-host-by-email and notify-service-by-email: -o tls=auto - add it immediately after /usr/bin/sendemail so it looks like this: /usr/bin/sendemail -o tls=auto -s $USER7$ ….
  • June 21, 2017 - Created nems-benchmark and nems-mailtest.
  • June 23, 2017 - Disabled swapfile.
  • September 5, 2017 - Add keyboard locale setting to nems-init. As per Steve.
  • September 5, 2017 - Force more secure bcrypt encryption on htpasswd generation. As per Steve.

Rolling Updates - NEMS 1.2.3 Changelog

  • September 8, 2017 - Removed dead “help” links in Nagios Core as per kd4pyr.
  • September 8, 2017 - Secure Connectivity as per Steve:
    • nems-init now creates self-signed server, client and CA certificates during initialization of NEMS.
    • SSL (https) access now available on most NEMS features, using your new custom certs.
  • September 18, 2017 - Add anonymous stats logging retroactively to NEMS 1.2.1+.
nems/changelog_1.2.txt · Last modified: 2017/09/18 17:21 by robbie