Actually, a plugin is what I wrote. I guess I got the terminology mixed up. You can find it here: http://exchange.check-mk.org/index.php?option=com_remository&Itemid=59&func=fileinfo&id=153
It has a shell script to put in the agent’s plugins directory that outputs like this:
<<<linux_updates>>>
0 0 2 0
log4cpp.x86_64 1.0-13.el6_5.1 updates, nfs-utils-lib.x86_64 1.1.5-6.el6_5 updates
First row: Reboot_required (1=yes), missing_statusfile (1=yes), num_updates, num_securityupdates
Second row: List of all updates
And then a python script in ~/local/share/check_mk/checks that has this set at the top:
thresholds: updateswarn, updatescrit, secupdateswarn, secupdatescrit
linux_updates_defaults_params = (10, 75, 1, 1)
But I’m looking for a way to set those parameters above via the gui. When I look at the service in wato, there is no “check parameters” icon next to it.
Thanks,
Lance Tost
Sr. Network Administrator
Keystone Automotive Operations, Inc.
···
From: Jim Welch [mailto:jim.welch@oit.gatech.edu]
Sent: Tuesday, August 05, 2014 2:27 PM
To: Lance Tost
Cc: checkmk-en@lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] thresholds for custom checks
The first column in the output of a local check is the status (0,1,2 for OK,WARNING, CRITICAL) so the check must know
the thresholds in order to determine the status, so I know of no way to use rules on the monitoring server side for local checks.
You could write a plugin, then configure the server side to process the plugin output, but that’s more complicated.
From: “Lance Tost” Lance.Tost@key-stone.com
To: checkmk-en@lists.mathias-kettner.de
Sent: Tuesday, August 5, 2014 1:39:59 PM
Subject: [Check_mk (english)] thresholds for custom checks
I’ve written a custom check for Linux updates that lets you set a warning and critical threshold for either/both regular updates and security updates (ie., >= 1 security update is critical whereas we let other updates go to 10 or more).
I see on this page: https://mathias-kettner.de/checkmk_localchecks.html at the bottom under limitations it says: “WARNING and CRITICAL levels have to be configured and handled on the host itself.” Am I understanding that correctly that that means I cannot define these thresholds via rules ? Is that something that will change in the future?
Thanks,
Lance Tost
Please consider the environment before printing
checkmk-en mailing list
checkmk-en@lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en