Nagios NCPA 2.0.2 released

Submitted by ccztux on Mon, 02/06/2017 - 10:04

The new version 2.0.2 of Nagios NCPA was released on 19.01.2017:

http://nagios.org/ncpa/

Changelog

2.0.2 - 01/19/2017

  • Updated plugins list to be sorted alphabetically when returning plugin list
  • Updated plugins endpoint to use the debug URL parameter to have check also return the cmd line string
  • Fixed issue with the parsing of command-line arguments sent to plugins quoting spaces unnecessarily
  • Fixed default IP and Port definitions if either are not specified in ncpa.cfg
  • Fixed issue with / in arguments passed to plugins (via check_ncpa.py and the API)
  • Fixed output of check_ncpa.py in the "view alternative format" popup to use proper units argument
  • Fixed service status output to display proper messages when pid file exists but daemon is not running

2.0.1 - 01/03/2017

  • Updated popover info boxes so they auto-hide when no longer in focus (once you click anywhere but the ?)
  • Updated Windows service log file locations to var/log/win32service_ncpa<type>.log (logs for the services not NCPA)
  • Updated Mac OS X install to give information about whether the install/upgrade finished or not
  • Updated etc section to come with an ncpa.cfg.example version that shows new config values
  • Updated Windows install to no longer reset the service settings by uninstalling/reinstalling the services
  • Fixed issue with passive service when nrds was set (typically on upgrades) sending lots of errors to the log
  • Fixed issue on Top Processes page where warning and critical thresholds didn't highlighting values
  • Fixed issue with string encoding errors on certain systems in some API nodes
  • Fixed issue with upgrades on unix systems ncpa- tmp files caused checks to give 500 errors from permission denied
  • Fixed a 500 error in the admin section when no passive checks are defined
  • Fixed services check with different match options (regex, search) to work as a check
  • Fixed issue with services node not saving active check results
  • Fixed issue with libffi not being included due to it being a shared library on most systems
  • Fixed Windows threading issues with the win32service base

2.0.0 - 12/15/2016

Additions

  • Added SQLite3 DB backend for check results
  • Added a new tab in the GUI for viewing past check results
  • Added support for SSL protocols TLSv1.1 & TLSv1.2
  • Added ability to adjust units B and b with T, Ti, Gi, Mi, Ki to match windows disk sizes using untis=x
  • Added comments/help to the config file itself to help understand certain areas of the config that are confusing
  • Added API endpoints system/time and system/timezone with current timestamp and timezone information
  • Added plugin_timeout config option in ncpa.cfg [plugin directives] section
  • Added default __HOST__ passive check definition so it doesn't show up as unknown forever
  • Added delay_start option to listener and passive section of ncpa.cfg to actually run after a # of seconds
  • Added ability to relocate RPM install (ex: --prefix=/opt would install /opt/ncpa)
  • Added disk/mount for giving information on partitions that aren't currently accessible, such as cdroms
  • Added redirection when logging in if the user was trying to access a protected page
  • Added better output messages for multi-checks (ex: memory/virtual?check=true, disk/C:|?check=true)
  • Added API browser which allows going thorugh the API and creating checks, understanding units, etc
  • Added admin web GUI section for in-browser viewing of passive checks, process control, etc
  • Added admin_x config values into default ncpa.cfg for Web GUI admin section
  • Added information into api/logs node to explain how to get logs to be populated
  • Added '/s' onto the unit when using the delta argument outside of checks
  • Added all new documentation and examples for setting up NCPA on any type of system
  • Added in the Windows Event Log tail functionality that was never released
  • Added new config options for managing check result retention and if check results should be retained

Updates

  • Updated api/agent/plugin to just api/plugins (check deprecation to see more about api/agent/plugins)
  • Updated web UI with modern theme with better graph styling
  • Updated self-signed SSL certs to use 2048bit RSA and sha256 signature
  • Updated unit names that were set to c that weren't actually generic counters for better graphing
  • Updated top proceses to not show Idle process on Windows and added % / rounding
  • Updated default locations on fresh install for log files on windows and linux
  • Updated openssl and PyOpenSSL libraries which no longer accept SSLv2 & SSLv3
  • Updated API to round most values that had been calculated to 2 decimals including check results and perfdata
  • Updated default configuration for passive checks to be located in the ncpa.cfg.d/ folder
  • Updated RPM .spec file information for new locations and summary/description information
  • Updated API to now automatically update disk partitions and other static items except while websocket is open
  • Updated Linux and Mac OS X installs to use nagios group instead of nagcmd group like other Nagios products
  • Updated Windows installer to now have multiple sections that edit listener, passive, and passive check configs
  • Updated RPM, DEB, and DMG to allow upgrading from older versions without issues
  • Updated api/services check to default to running (currently leaving off status=x will always return critical)
  • Updated output of certain checks to have more information (api/services, api/memory/logical/percent)
  • Updated processes output to include 'mem_percent' since it can be used as a filter
  • Updated processes output of 'mem_rss' and 'mem_vms' to show units and respect the 'units' modifier
  • Updated filtering processes by 'name' and 'exe' field to also be able to use 'match' type (exact, search, or regex)
  • Updated filtering services by 'service' field to allow using the 'match' type too (exact, search, or regex)
  • Updated delta values to not cause weird issues when calling the same endpoint from different sources
  • Updated ncpa_listener and ncpa_passive init.d files to be more reliable
  • Updated the services ncpa_posix_type to now be ncpa_type on Unix systems to conform to init.d service names
  • Updated websocket endpoints to be /ws/top, /ws/tail, /ws/api instead of <name>-websocket
  • Updated the way that the init scripts work on Linux systems to give better output

Bug Fixes

  • Fixed single value objects that are given a conversion value via units from becoming lists (#250)
  • Fixed services list on el7 (and all systemctl systems)
  • Fixed registry key placement for fresh installs on Windows
  • Fixed using multiple values passed to nodes for filtering in API and active checks (ex. service=x&service=y)
  • Fixed units=x setting to only affecting b and B units not all unit types
  • Fixed API showing b instead of B for bytes in multiple locations
  • Fixed ncpa.cfg ssl_version option not actually working for Windows version
  • Fixed handlers config variable from throwing errors when empty or set to None
  • Fixed issue with large plugin output (4KB+ on windows and 64KB+ on linux) could crash NCPA
  • Fixed errors thrown by clients ending websocket connections by changing pages not being caught and handled properly
  • Fixed issue where having no passive NRDP checks would give errors in ncpa_passive.log
  • Fixed regex issue for warning and critical values
  • Fixed stdout and returncode swapped when doing checks on nodes that can't be checked (ex: user/list)
  • Fixed RPM uninstall to stop the NCPA processes before it removes the NCPA files
  • Fixed issue on OS X where plugin directory was not readable by nagios due to LaunchDaemon permissions
  • Fixed issue on Windows systems not having accurate network I/O if bytes > 4.3GB
  • Fixed issue with iptables showing up as stopped even while running in CentOS/RHEL 6 and 7
  • Fixed issue with multiple services always showing stopped in CentOS/RHEL 6 systems relying on initd
  • Fixed zombie process error in Mac OS X top websocket making the GUI top display nothing
  • Fixed graphs tab not displaying graphs of interfaces with multiple spaces in their names
  • Fixed passive service on Windows only able to successfully run a plugin-based check once after restarting
  • Fixed output of disk space on Linux servers not showing reserved root disk space as used
  • Fixed check output formatting on parent nodes when running multi-checks
  • Fixed device_name on api/disk/logical node when units passed giving an error
  • Fixed perfdata output for windows log checks
  • Fixed issue on Mac OS X where running as nagios (default) would cause process data not to show
  • Fixed issue where global config parser defaults caused issues with sections in separate files
  • Fixed issue where services in Unix systems ran as root no matter what the uid/gid specified in ncpa.cfg
  • Fixed delta value returning 0 the first time it's called even if there should be 1 second of data
  • Fixed Mac OS X plist to no longer set user/group (bug fix for Unix systems running as specified uid/gid is related)
  • Fixed processor type not showing up on all Linux distros on GUI dashboard
  • Fixed issue with relative plugin paths on Linux systems when they are built

Deprecated

  • Both API endoints api/service/<servicename> and api/process/<processname> will be removed in version 2.1.0 and should be replaced by api/services?service=<servicename> and api/processes?name=<processname> instead
  • The API endpoint api/agent/plugin/<pluginname> will be removed in version 2.1.0 in favor of api/plugins/<pluginame> which better matches the current API node naming conventions and is a less confusing name