Ahmad Siddiq | 23 Jan 02:58 2015
Picon

[Check_mk (english)] Linux Free Memory - True Free Memory Monitoring?

Hi all,

Is there a way to monitor the actual linux free memory (not the one from free -m), but the one in free + buffer + cached in check_mk?


Any ideas on it? We need to be informed of the true free memory, and get informed when the true free memory gets into the warning and critical zone. We are thinking of writing a simple custom script, but thinking that we have the memory test in check_mk, I am exploring the possibility on having the true free memory only.

All ideas or suggestions will be much appreciated.

Thanks.

--

Best Regards,

Ahmad Siddiq b. Mohd Adnan
Senior System Engineer, Xchanging Malaysia Sdn Bhd
International Award for Young People, Gold Award
LPIC-3, Novell CLA, Novell DCTech, CCENT, Microsoft Certified Professional, MCTS Windows Server 2008
Mobile: +60 17 377-5007| Facebook: https://www.facebook.com/my.sidz

_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Chris Lindbergh | 22 Jan 17:25 2015
Picon

[Check_mk (english)] check_form_submit - The command defined for service FORM does not exist

Hello list,

I'm working to integrate a check that uses the active check "check_form_submit" and have run into an issue.

It seems that Check_MK is unable to find the command it defines for this check.

I tried simplifying as much as possible, but the same error persists.

Please see the attached screenshot of the service detail, showing the Service check command, and its output; also an attached screenshot of the rule's definition.

Running OMD 1.2.0 & Check_MK 1.2.4p5

How do I enable this check?

Thanks in advance!!
--
##### "The compassionate have no enemies, the wise have no worries."
#####                                          - Jing-si Aphorism
##### http://kso.cc
_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Stuart Green | 21 Jan 14:40 2015

[Check_mk (english)] Windows Task checks

Hello List,

I'm trying to monitor windows scheduled tasks, I found this page on the
subject.

https://mathias-kettner.com/checkmk_check_windows_tasks.html

I've copied the script from my omd share folder and placed it in the
plugins directory of the test windows client, I then restarted the
check_mk service on that client.

When I run an inventory though, nothing changes.  Does anyone know what
additional steps have to be taken?

Cheers,
Stuart

_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Raphael Thoma | 21 Jan 01:12 2015
Picon

[Check_mk (english)] Rule changes in WATO cannot be activated/deployed

Dear all

We're using check_mk since quite a while and ever since (with different production, innovation and git
versions) we're seeing this problem.

We have a setup of three monitoring hosts, 1 WATO master and 2 WATO slaves.

When someone edits rules in the WATO interface we're unable to distribute this configuration change to the
slaves. As soon as a rule was saved, the orange button indicating '1 Changes' pops up on top. When clicking
on this button you get to the page 'Pending changes to activate' - however there's no button to actually
deploy the new configuration. Instead the page says: There are no pending changes.

We're NOT seeing the same problem while deploying changes in the global settings or host tags.

Has anyone seen this problem before? Any suggestions on how to debug this further?

Best regards,
Raphael
Attachment (smime.p7s): application/pkcs7-signature, 5450 bytes
_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Chuck Payne | 20 Jan 22:00 2015

[Check_mk (english)] (no subject)

Guys, 

I am building a new server running Check_MK 1.2.6b6, and I need to know how can tell Check_MK not to run the following Check_MK Discovery  on host xxx-vip, we monitor some virtual ip that run on a ip, I don't need to know that there 25 checks that could be added for vop., 

I tried this, but no luck...

ignored_services = [
  ( "amsterdam-vip-1", "check-mk-inventory" )
]

--
================================

Chuck Payne
System Administrator
Performance Matters
http://www.performancematters.com
chuck.payne <at> performancematters.com

(770) 650-7753 ext. 138 ( Phone )
(404) 451-3579 ( Cell )
_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Robert Sander | 20 Jan 20:09 2015
Picon

[Check_mk (english)] dell_om_mem bug

Hi,

The check dell_om_mem included in check_mk has a logical
bug as the failure mode is a bitmask and not discrete values,
i.e. the value can be the sum of several errors.

From the MIB definition:

DellMemoryDeviceFailureModes                    ::= INTEGER {
    -- Note: These values are bit masks, so combination values are possible.
    -- If value is 0 (zero), memory device has no faults.
    eccSingleBitCorrectionWarningRate(1),       -- ECC single bit correction warning rate exceeded
    eccSingleBitCorrectionFailureRate(2),       -- ECC single bit correction failure rate exceeded
    eccMultiBitFault(4),                        -- ECC multibit fault encountered
    eccSingleBitCorrectionLoggingDisabled(8),   -- ECC single bit correction logging disabled
    deviceDisabledBySpareActivation(16)         -- device disabled because of spare activation
}

I have made this new version:

#!/usr/bin/python
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# +------------------------------------------------------------------+
# |             ____ _               _        __  __ _  __           |
# |            / ___| |__   ___  ___| | __   |  \/  | |/ /           |
# |           | |   | '_ \ / _ \/ __| |/ /   | |\/| | ' /            |
# |           | |___| | | |  __/ (__|   <    | |  | | . \            |
# |            \____|_| |_|\___|\___|_|\_\___|_|  |_|_|\_\           |
# |                                                                  |
# | Copyright Mathias Kettner 2013             mk@... |
# +------------------------------------------------------------------+
#
# This file is part of Check_MK.
# The official homepage is at http://mathias-kettner.de/check_mk.
#
# check_mk is free software;  you can redistribute it and/or modify it
# under the  terms of the  GNU General Public License  as published by
# the Free Software Foundation in version 2.  check_mk is  distributed
# in the hope that it will be useful, but WITHOUT ANY WARRANTY;  with-
# out even the implied warranty of  MERCHANTABILITY  or  FITNESS FOR A
# PARTICULAR PURPOSE. See the  GNU General Public License for more de-
# ails.  You should have  received  a copy of the  GNU  General Public
# License along with GNU Make; see the file  COPYING.  If  not,  write
# to the Free Software Foundation, Inc., 51 Franklin St,  Fifth Floor,
# Boston, MA 02110-1301 USA.

def inventory_dell_om_mem(info):
    return [ (x[0], None) for x in info ]

def check_dell_om_mem(item, _no_params, info):
    dell_status = {
        1: 'Other',
        2: 'Unknown',
        3: 'OK',
        4: 'Non-Critical',
        5: 'Critical',
        6: 'Non-Recoverable',
    }

    def failure_mode(sensor):
        sensor_state = {
            0  : 'No failure',
            1  : 'ECC single bit correction warning rate exceeded (!)',
            2  : 'ECC single bit correction failure rate exceeded (!!)',
            4  : 'ECC multibit fault encountered (!!)',
            8  : 'ECC single bit correction logging disabled (!)',
            16 : 'device disabled because of spare activation (!)',
        }
        res = []
        for bit, text in sensor_state.iteritems():
            if sensor & bit:
                res.append(text)
        return ", ".join(res)

    for location, status, size, failuremode in info:
        if location == item:
            status = saveint(status)
            failuremode = saveint(failuremode)
            state = 0
            msg = ""
            if status != 3:
                state = 2
                label = "(!!)"
                if status < 3:
                    state = 3
                    label = ""
                elif status == 4:
                    state = 1
                    label = "(!)"
                msg = "Module State is %s%s, " % (dell_status[status], label)

            size = get_bytes_human_readable(int(size)*1024)
            return state, msg + "Failuremode: %s, Size: %s" % \
            (failure_mode(failuremode), size)

    return 3, "Module not found in SNMP tree"

check_info["dell_om_mem"] = {
    "check_function"        : check_dell_om_mem,
    "inventory_function"    : inventory_dell_om_mem,
    "service_description"   : "Module %s",
    "has_perfdata"          : False,
    # There is no other way to find out that openmanage is present.
    "snmp_scan_function"    : lambda oid: oid('.1.3.6.1.4.1.674.10893.1.20.1.0'),
    "snmp_info"             : ( ".1.3.6.1.4.1.674.10892.1.1100.50.1", [
                                                "8.1", #Location
                                                "5.1", #Status
                                                "14.1", #Size
                                                "20.1", #FailureMode
                              ]),
}

# END OF SCRIPT

Regards
-- 
Robert Sander
Heinlein Support GmbH
Schwedter Str. 8/9b, 10119 Berlin

http://www.heinlein-support.de

Tel: 030 / 405051-43
Fax: 030 / 405051-19

Zwangsangaben lt. §35a GmbHG: 
HRB 93818 B / Amtsgericht Berlin-Charlottenburg,
Geschäftsführer: Peer Heinlein -- Sitz: Berlin

_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Jens Kuehnel | 20 Jan 13:48 2015

[Check_mk (english)] check_mk_agent rpm vs. check_mk-agent rpm

Hi,

apparently someone renamed the check_mk?agent rpm from using a - to
using a _ in the package name, but the Provides is missing.

To make updating to this new package easier, please follow [1]
and add Provides and Obsoletes. This way the new package can 100%
replaces the old package.

Here the patch that worked for me:

diff --git a/agents/check_mk_agent.spec b/agents/check_mk_agent.spec
index efd5610..da12649 100644
--- a/agents/check_mk_agent.spec
+++ b/agents/check_mk_agent.spec
 <at>  <at>  -34,6 +34,8  <at>  <at>  BuildRoot: %{_topdir}/buildroot
 AutoReq:   off
 AutoProv:  off
 BuildArch: noarch
+Provides:  check_mk-agent = %{_version}-1
+Obsoletes: check_mk-agent < %{_version}-1

 %description
 The Check_MK Agent uses xinetd to provide information about the system

Thanks a lot.

CU
Jens Kühnel

[1]:
https://fedoraproject.org/wiki/Packaging:Guidelines#Renaming.2FReplacing_Existing_Packages
_______________________________________________
checkmk-en mailing list
checkmk-en <at> lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Mark Anthony Delfin | 20 Jan 11:56 2015

[Check_mk (english)] Size, age and count of file groups via WATO

Hi All,

I have been trying to monitor a directory on a windows server to alert if there are more than 100 files.

On check_mk.ini

I have 

[fileinfo]
 path = c:\inetpub\mailroot\drop

I aslo created a rule via WATO but when I do a service inventory. the check didn't appear.

Any possible advice. Thanks!

Mark
_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Max Matslofva | 20 Jan 10:19 2015
Picon

[Check_mk (english)] check_mk_active-http! -I HOSTADDRESS is slow when missing -H

Hi,

Suddenly, I get slow response times and timeouts on an active http check.
It started a few days ago, it has worked well for over 7 months.
It has a 10 minute pattern, see attached image.
I've noticed that if I add -H <vhost> to the check it works fine.
What could have caused this?

Below is some test from prompt

[root <at> omd omd]# ./versions/1.10/lib/nagios/plugins/check_http -I 1.2.3.4
HTTP OK: HTTP/1.1 200 OK - 405 bytes in 1.934 second response time |time=1.933598s;;;0.000000 size=405B;;;0

[root <at> omd omd]# ./versions/1.10/lib/nagios/plugins/check_http -I 1.2.3.4
HTTP OK: HTTP/1.1 200 OK - 405 bytes in 3.086 second response time |time=3.086268s;;;0.000000 size=405B;;;0

[root <at> omd omd]# ./versions/1.10/lib/nagios/plugins/check_http -I 1.2.3.4
HTTP OK: HTTP/1.1 200 OK - 405 bytes in 5.082 second response time |time=5.081532s;;;0.000000 size=405B;;;0

[root <at> omd omd]# ./versions/1.10/lib/nagios/plugins/check_http -I 1.2.3.4
CRITICAL - Socket timeout after 10 seconds

[root <at> omd omd]# ./versions/1.10/lib/nagios/plugins/check_http -I 1.2.3.4 -H www.example.com
HTTP OK: HTTP/1.1 200 OK - 405 bytes in 0.003 second response time |time=0.002856s;;;0.000000 size=405B;;;0

[root <at> omd omd]# ./versions/1.10/lib/nagios/plugins/check_http -I 1.2.3.4 -H www.example.com
HTTP OK: HTTP/1.1 200 OK - 405 bytes in 0.003 second response time |time=0.003134s;;;0.000000 size=405B;;;0

[root <at> omd omd]# ./versions/1.10/lib/nagios/plugins/check_http -I 1.2.3.4 -H www.example.com
HTTP OK: HTTP/1.1 200 OK - 405 bytes in 0.003 second response time |time=0.003141s;;;0.000000 size=405B;;;0

( Check_mk 1.2.3i6 and OMD 1.10 )

/Max
_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
bob | 19 Jan 20:19 2015
Picon

[Check_mk (english)] Bug: windows agent - local check data truncation

Hi There,

 

We have been using the windows check_mk agent (1.2.4p2) to do local checks for SQL Server.

Local checks using all default configs, issue exists in all versions and architectures for windows.

 

With small sets of data from the local check output from a c# app there is no issue, when large sets of data is outputted it sometimes truncates.

From tests anything > 30000 characters replicates this behaviour, it’s also random when it truncates.

 

Looking at the source we have found two workarounds.

1). Adding a Sleep(10); before the PeekNamedPipe, this appears to give the threads better synchronisation, greatly reduces the occurrences of truncation (Peek show 0 bytes available when there actually is and exits the stream early).

2). Forcing the whole program to run on a single CPU stops the issue.

 

From these fixes its looks like a synchronisation issue between processes, cannot figure out where exactly this is occurring.

 

Thanks

 

Luka

 

_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Ralf Prengel | 19 Jan 13:33 2015
Picon

[Check_mk (english)] can we use the check_mk Solaris Client fpr Solaris 10 sparc and x86?


Hallo,

can we use the check_mk Solaris Client fpr Solaris 10 sparc and x86?

Thanks
Ralf

Gmane