Repository navigation
0.28.0 #1823
mickem
announced in
Announcements
0.28.0
#1823
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
A web UI page for every module, an agent that suggests what to monitor, and new checks for drives, GPUs, SMB shares and Java
0.28.0 makes the agent easier to set up. Every module with settings now has its own page in the web UI, and a new discovery API looks at the host and suggests which modules to enable. It adds
check_smart,check_gpu,check_smb_client,check_jvmandcheck_csv, brings five Windows checks to Linux, and lets every filter check take-wand-c. It also tightens how SQL checks and client targets handle credentials.✨ Highlights
nscp discovery --suggestdoes the same from the command line on a fresh install (feature: add discovery API for querying host capabilities #1807, feature: route a discovery probe by module, and refuse to guess between several #1808, feature: discovery probes and pickers for SQL databases, instances and scripts #1814, feature: discovery phase 3 - presence probes, module recommendations, found-on-host mark #1817, feature: nscp discovery - probes and suggested modules from the command line #1820).check_smartreads SMART health natively on Windows and Linux, with nosmartctl. On Windows,check_gpureports GPU load and memory andcheck_smb_clientreports latency to remote shares.check_jvmreads Java applications over Jolokia, andcheck_csvruns a filter over the rows of a CSV file. All are experimental (feature: check_gpu for GPU load and memory on Windows #1760, feature: add check_csv to CheckLogFile #1767, feature: add check_smart for native SMART health monitoring #1768, feature: add check_jvm for Java application metrics over JMX via Jolokia #1769, feature: add check_smb_client for Windows SMB client share monitoring #1770).check_local_accounts,check_group_members,check_secureboot,check_pending_rebootandcheck_hardwareuse the same keywords and output, so one policy works on both platforms (feature: check_secureboot on Linux #1771–feature: check_hardware on Linux #1775).-w,-candshow-query. Every filter check takes the short thresholds other plugins use (check_cpu -w 80 -c 90,check_drivesize -w 20%).show-queryprints the query a check would run instead of running it. Units such as500ms,30minand4GBparse in full, and every duration keyword accepts them (feature: accept -w and -c short thresholds in the filter checks #1738, feature: read units whole in filter expressions and give duration keywords their units #1754, feature: add show-query to print the query a filter check would run #1757).disabled checks. Enabling a module no longer has to mean offering every check it has. Names listed under[/settings/core] disabled checksare gone for every caller and transport, and answer as if they never existed (feature: remove single checks with [/settings/core] disabled checks #1813).🔍 Detailed changes
🧭 Discovery
GET /api/v2/discoverylists the probes andPOST /api/v2/discovery/<probe>runs one.nscp testgainsdiscoveranddiscover <probe> [module].pdh.counters/api/v2/metadata/counters.host.services,host.softwaremssql.instancesmssql.databases,mysql.databasesscripts.external,scripts.python,scripts.luaGET /api/v2/discovery/recommendationsturns the presence probes into suggestions: SQL Server, MySQL/MariaDB, Docker, IIS and Hyper-V to begin with, each with the checks that apply and the reason, followed by the basic health modules. The web UI uses the probes for the Discovery and Suggestions pages, a Found on this host mark in the module list, Pick a counter oncheck_pdh, and suggestions in the SQL and script fields.From the command line.
nscp discoveryneeds no web server, login or running service, and loads CheckSystem for the run when the configuration does not enable it, so a fresh install gets suggestions straight away:--jsonprints what the REST API answers. The recommendations answer gains anenabledfield besideloaded: whether the module is enabled in the configuration and so survives a restart (#1820).A probe takes no host, path or credential. It reads only what the module's saved settings say, keeps nothing it returns, and runs only over REST and the local console. Every endpoint needs the new
discovery.rungrant, which only the built-infullrole holds.🖥️ Web UI — a page for every module
[/settings/default], and the page lists the exact changes before saving them. The page says what weakens the setup (no encryption, a password sent in clear, anonymous web access, an Icinga parent trusted unverified) and will not save a configuration the agent would refuse to start. The web server's roles get an editor of their own.target=.check,database,container,server,client,script,scheduling,tool) and have icons. Queries is renamed Checks, with tags and an icon per check, and the menu is regrouped. The dashboard graphs keep 30 minutes of history across page changes. The Linux real-time filters use the same editor as the Windows ones.💽 New checks
check_smartwear,temperature. Needs an elevated agent. A drive it cannot read is UNKNOWN, not healthy.check_gpucheck_smb_clientcheck_jvmattribute=alias=mbean/attribute).check_csvcolumns=or read from the header. It sharescheck_logfile'sfile accessgate and is capped bymax csv size.🐧 Linux — account, boot and inventory checks
check_local_accounts/etc/passwd,/etc/shadowuid,shell,interactive,is_extra_uid0,password_state,password_age, ... UNKNOWN when/etc/shadowis unreadable, unlessallow-unreadable-shadowis passed.check_group_members/etc/group,/etc/passwdsudoorwheeland includes primary-group members.check_secureboot/sys/firmware/efisetup_modekeyword.check_pending_rebootcheck_hardware/sys/class/dmi/id, SMBIOSgather_errorskeyword says what could not be read (#1809). Experimental.🎚️ Filters — short thresholds,
show-queryand unitsEach check knows which keyword a bare number bounds. Monitoring-plugins ranges (
10:,~:10,@10:20) work, andhelpnames the keyword for each command.show-querymasks credential options as***.Units are read whole (
500ms,30min,4GB,1GiB). Keywords that count milliseconds now take durations, keywords that count days takedandw, and a unit a keyword does not take is an error instead of a bare number. The filter wordsand,or,in,not,like,regexpand the comparison words only match as whole words, so a column namedNotAfterororderparses as itself.🚫 Core —
disabled checksA module used to be all or nothing: enabling CheckSystem for
check_cpualso offeredcheck_process,check_serviceand everything else it registers. The permission policy could limit who runs a check, but the check stayed in place for whoever was granted it.disabled checkstakes named checks out of the agent altogether:nscp test, the REST API or the web UI. Running it over NRPE, REST, the scheduler, a script ornscp clientanswersUnknown command(s): ..., exactly as for a command nothing provides. Only the agent's log says it was disabled.*and?. Disabling a command also disables its alternative names, and it covers commands from modules, external scripts, aliases and scripts alike.🛡️ Core — client targets
default.retriesnow reaches NRPE and NRDP, and its default is 3 (Client targets inherit all settings from their parent #1804). Aparentcycle no longer overflows the stack (Prevent stack overflow from circular parent inheritance cycles #1805).timeouttakes effect in the Syslog, SMTP, Check_MK, NSCA and NSCA-NG clients, which always used 30 seconds (Fix timeout configuration in Syslog, SMTP, Check_MK, NSCA clients #1806).🔒 Security
check_mssql*orcheck_mysql*request that namedserver=orhost=kept the configured credentials. With the default CheckMSSQL setup, that sent the agent's machine account to a server the caller chose. A request now either uses the configured connection or brings its own server, user and password, and the two never mix. Other servers for the configured login go under[/settings/mssql/targets]/[/settings/mysql/targets]and are picked withtarget=(fix: SQL checks use the configured connection or the request's own, never a mix #1803).filter,warningorcriticalexpression now leaves its record without a verdict. A WARNING or CRITICAL the other records reached stands; otherwise the check is UNKNOWN withFilter evaluation failed: ...(fix: end a check UNKNOWN when its expression fails on a record #1721).allow host override,verify mode,caand credentials set ondefaultto targets that do not set their own.🐛 Bug fixes
check_httpjson-pathcompares decimals (100.5no longer truncates to100), and a missing ornullvalue ismissinginstead of0(fix: treat JSON path values as decimals, missing values as no-value #1781).check_apache_status,check_nginx_status,check_phpfpm_status,check_tomcat_statusanswer UNKNOWN with no perfdata when they get no data, instead of CRITICAL with zeros (Status page checks return UNKNOWN without data, not CRITICAL #1788).NSCAServerloads without a key and opens no port, so its settings can still be fixed from the web UI (NSCAServer: load module even when listener is refused #1793).scriptkey. Thescriptssection still works, with a deprecation warning (CheckMKServer: replace scripts section with script key #1792).services.installed(fix: HEAD on kept connections with older mongoose, service facts with a locked-down service, MSSQL threshold test race #1752).check_hardwareleaves non-system memory arrays out of the SMBIOS inventory (Filter non-system memory arrays from SMBIOS inventory #1797).📦 Packaging
VCRuntime. Where Microsoft's redistributable is already installed,REMOVE=VCRuntimekeeps the installer from replacing the shared runtime and closing programs that use it. The installer refuses the install when the redistributable is missing or too old (feature: let the Windows MSI leave the Visual C++ runtime out #1810).The full list is on the upgrading page, and the security fixes are on the security notices page.
server=,host=,port=,driver=,encrypt=,trust-cert=ortls=must also nameuser=andpassword=.connection-string=is no longer a request option, and an emptyuser=and named-pipe servers are refused. To reach another server with the configured login, list it undertargetsand passtarget=.defaultnow reaches every target that does not set its own. Checkallow host override,verify mode,caand credentials ondefault. NRPE now tries an unreachable server 4 times; setretries = 2to keep the old count.Filter evaluation failed:a check that now reports this was not evaluating the expression as written before. Fix the unit, keyword or regular expression it names. A threshold that used a unit on a millisecond, seconds or bytes keyword compared against 0 before, so it may stop firing where it always fired.check_httpjson-path: replaceqlen < 1used to catch a missing field withqlen = 'missing'./api/v2/metadata/counters(metadata.get.counters) to the discovery API, which needsdiscovery.run.VCRuntimetoADDLOCAL=, or the install is refused on a machine without the redistributable.[/settings/check_mk/server/scripts]toscript =.check_local_accounts: UNKNOWN under the packagednsclientuser until it can read/etc/shadow(Debian: theshadowgroup), or passallow-unreadable-shadow.Full Changelog: 0.27.0...0.28.0
This discussion was created from the release 0.28.0.
All reactions