[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

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

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

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

It is possible to add WATO configuration for own plugins but it is not so easy for the first try.

If i want to write a small check what is running as a script from the agent then i take the local check with automatic calculation of return code.

It is descripted here - https://mathias-kettner.de/checkmk_localchecks.html - on the bottom under “local: New state type P for state computation based on perfdata” this is very nice for small scripts to return a valid check without any configuration inside check_mk system.

Disadvantage - you must configure the tresholds on the agent side.

br

Andreas

···

2014-08-05 20:44 GMT+02:00 Jim Welch jim.welch@oit.gatech.edu:

I ran across this a while back:

http://lists.mathias-kettner.de/pipermail/checkmk-en/2013-February/008626.html

but I haven’t had time to follow up on it. Maybe there has been improvements in

later versions to allow adding plugin configuration to WATO.


From: “Lance Tost” Lance.Tost@key-stone.com
To: “Jim Welch” jim.welch@oit.gatech.edu
Cc: checkmk-en@lists.mathias-kettner.de
Sent: Tuesday, August 5, 2014 2:34:29 PM
Subject: RE: [Check_mk (english)] thresholds for custom checks

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


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en