John Zimmerman | 21 Aug 17:24 2014
Picon

Re: [Check_mk (english)] Set the \"from\" address in Check_MK?

:-)

Nice.  I'll look into upgrading.  Thanks Patrick.


On Thu, Aug 21, 2014 at 7:12 AM, Patrick Flaherty <pflaherty-kx56TfycDUc@public.gmane.org> wrote:
I run omd 1.0 upgraded to the  latest innovative check_mk (yes, there are a couple bugs). I promise you that RBN does it since I use that functionality. I've attached a screen shot. 


On Thu, Aug 21, 2014 at 1:55 AM, John Zimmerman <john.zimm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I'm not sure rule based notifications will allow for setting the from address in WATO, but haven't looked at it other than the documentation page.

I am eager to move to RBN, but am waiting until it is in a stable branch.

I've got a mix of omd 1.11 and nagios xi w/ check_mk installed along side.


~~ sent via mobile device ~~
On August 20, 2014 at 8:57:39 PM PDT, Patrick Flaherty <pflaherty-kx56TfycDUc@public.gmane.org> wrote:
The mailer way works, but it's not flexible. You want the newer versions of check_mk with Rule Based notifications. Depending on the notification method, you can set the from address. 




On Wed, Aug 20, 2014 at 5:08 PM, John Zimmerman <john.zimm-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Thanks Laura and Andreas,

I did end up doing it at the system mailer (postfix) using sender_canonical and regexp.  I was hoping there was a way to set it in the check_mk configuration but doing it at the postfix level works.

<at> Laura - I actually needed to change sender from "nagios-WI0L6dQK/Vp31WWMw7KoMmZHpeb/A1Y/@public.gmane.orgocal" to "sitecodenagios-9IKiO1iGCm/QT0dZR+AlfA@public.gmane.org".


On Wed, Aug 20, 2014 at 1:07 PM, Macchi, Laura <lmacchi-96EhB/3ibSFWk0Htik3J/w@public.gmane.org> wrote:
I noticed that the user nagios sends the email, so changing the gecos of the user should do the trick:

# getent passwd nagios
nagios:x:497:498:Check_MK:/home/nagios:/bin/bash

One of my emails:
________________________________________
From: Check_MK [nagios <at> ***]
Sent: Wednesday, August 20, 2014 9:12 AM
To: ***
Subject: ** RECOVERY Service Alert: box1/proc_JBoss is OK **

Cheers,

Laura Macchi
Linux Administrator

From: checkmk-en-bounces-qhrM8SXbD5JpaB0eVFyvwnWFp+d4uDoM@public.gmane.org [checkmk-en-bounces-qhrM8SXbD5JpaB0eVFyvwnWFp+d4uDoM@public.gmane.org] on behalf of Andreas Döhler [andreas.doehler-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]
Sent: Wednesday, August 20, 2014 2:53 PM
To: John Zimmerman
Cc: checkmk-en-qhrM8SXbD5JpaB0eVFyvwnWFp+d4uDoM@public.gmane.org
Subject: Re: [Check_mk (english)] Set the "from" address in Check_MK?

If you send your email with the system mailer then you can change the "from" with your system settings (postfix / sendmail).



2014-08-20 21:27 GMT+02:00 John Zimmerman <john.zimm <at> gmail.com>:
What is the best/recommended way to set the "from" address in Check_MK for all notification plugins?

_______________________________________________
checkmk-en mailing list
checkmk-en-qhrM8SXbD5JpaB0eVFyvwnWFp+d4uDoM@public.gmane.org
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en




_______________________________________________
checkmk-en mailing list
checkmk-en-qhrM8SXbD5JpaB0eVFyvwnWFp+d4uDoM@public.gmane.org
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en




--
 Patrick Flaherty  |
 w: 978 983 6597      e: patrick.flaherty-IGlZd6Xz+eBBDgjK7y7TUQ@public.gmane.org





--
 Patrick Flaherty  |
 w: 978 983 6597      e: patrick.flaherty-IGlZd6Xz+eBBDgjK7y7TUQ@public.gmane.org



_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Jordan Evans | 21 Aug 12:19 2014

[Check_mk (english)] Edit Jolokia Check Thresholds via WATO

Hi All,

Just a quick question about the extra checks that are picked up for JVM monitoring via Jolokia & the mk_jolokia plugin.

At the moment I can only edit the jolokia_metrics.mem metric through the WATO GUI. Any of the other checks that have thresholds (like threads) cannot have their metrics changed (theres no icon next to them to change the thresholds in the services view).

Am I missing something, or is this not in place yet? Is it available in a newer version?

Running OMD 1.00 with Check_MK 1.2.2p2

Many Thanks
Jordan
_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
murali | 21 Aug 11:59 2014
Picon

[Check_mk (english)] How to setup slave omd server.

Hi,

I have running OMD server has instance 'PROD', I have around 50 servers 
monitoring on prod instance.

Now i want to setup slave server, Please suggest your commands.

My needs,

1) If running PROD instance omd  running server crashed. I must able to 
restore all the pnp4nagios data.
Note: /omd/site/PROD on nfs

2) How to setup new slave omd server which can serve web access of all check 
result only by gathering info from running master omd server which has PROD 
running.

Thanks. 
John Zimmerman | 20 Aug 21:27 2014
Picon

[Check_mk (english)] Set the "from" address in Check_MK?

What is the best/recommended way to set the "from" address in Check_MK for all notification plugins?
_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Ram Prasad | 20 Aug 20:21 2014
Picon

[Check_mk (english)] OMD+Wato+Check_mk - Check_mk interval and disabling selective checks from inventory

Hi

I am setting up OMD, with check_mk and in the check_mk UI (wato ?), I am looking for some help on:
1. check_mk service alerts (that is, I get too many notifications on check_mk being down, but again, I get a notification that it is up, in the next min). I end up with too many of these emails, and I would like to have check_mk check check_mk say 3 or more times,and only then report if it is still down. (via UI)

2. I would like check_mk not check for certain things .. like ipmi or NTP. How do I ask check_mk not to inventorize these (via UI)
_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Derek David | 20 Aug 15:21 2014

[Check_mk (english)] adding linux procs

This has been beating me up for a while, does not throw any errors, but cant seem to get it to add to inventory list...eg.. main.mk

# Put your host names here
# all_hosts = [ 'localhost' ]
all_hosts = [ ]
inventory_processes = [ ( ['PPS-QA'], 'SSHD', "/usr/sbin/sshd", ANY_USER, 0, 0, 0, 0 ),]
diskstat_inventory  += [( ['physical', 'lvm',], [], ALL_HOSTS ),]
diskstat_inventory_mode = "single"
diskstat_default_levels = { "average" : 10 }
check_parameters += [
( { "levels" : (95.0, 99.0)}, ALL_HOSTS, [ "fs_/backup" ] ),
( { "levels" : (90.0, 95.0)}, ALL_HOSTS, [ "fs_" ] ),
]

SSHD does not show up on the webpage..:-(

Thx
--
Derek David
Sr Network Administrator
PitchPoint Solutions
276 King Street West
Suite 302
Toronto, Ontario
416-591-7476 ext #219
www.pitchpointsolutions.com
_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
daniel majela | 20 Aug 15:01 2014
Picon

[Check_mk (english)] Fwd: check_mk RMS


> RMS (ROOT MEAN SQUARE).
> Lords.
>
> My manager was not satisfied with the 95 percentile. Asked now I have to generate a graph with RMS (ROOT MEAN SQUARE).
>
>
> Opinion of you ..... that makes sense? Will bring some important information? In google I see nothing related between (RMS and Computer Networks).
>
> It is common ...
>
> What do you guys think?
>
> If is a coherent information .... is possible to obtain the check_mk?
>
> I appreciate any help.
>
> thanks.

_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Nicole Hähnel | 20 Aug 14:19 2014
Picon

[Check_mk (english)] Check_MK and Icinga2 again

Hi,

found no useful hints about check_mk and icinga2.
Is it possible to use check_mk with the new icinga version?
The main problem seems to be the new configuration format.
Are there any tips or tricks?

Thanks in advance!
Kind regards,
Nicole
_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Lars Michelsen | 20 Aug 08:25 2014
Picon

Re: [Check_mk (english)] [checkmk-commits] Check_MK Git: check_mk: #0647 FIX printer_input, printer_output: multiple fixes to algorithm for state determination and inventory function

Hallo Götz,

da schein ich mir ja etwas geleiestet zu haben ... ;-)

Was ich nur anmerken wollte: Der Check ist erst in der noch nicht 
releasten Version dazu gekommen, für solche Fixes legen wir keine Werks 
an. Könntest du das wieder löschen?

Grüße
Lars

On 19.08.2014 13:32, Goetz Golla wrote:
> Module: check_mk
> Branch: master
> Commit: 8df689b9c7122e78ebf5fba75b1d32fe12d3368f
> URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8df689b9c7122e78ebf5fba75b1d32fe12d3368f
>
> Author: Goetz Golla <gg@...>
> Date:   Tue Aug 19 13:32:05 2014 +0200
>
> #0647 FIX printer_input, printer_output: multiple fixes to algorithm for state determination and
inventory function
>
> The inventory function now considers the description of the unit if its name is not configured. This
should lead to
> more and more meaningful items. Still, all units with empty name and description will be merged into one single
> service with an empty item name.
>
> The algorithm to determine the states of a unit was plain wrong, so that a nonsense collection of states
were given.
> This has been corrected. Still several states may be derived, but they should now correctly describe the operational
> state of the unit.
>
> The inventory function also used the same algorithm to inventorize only units with meaningful states.
Therefore some
> changes may be expected in the inventory of a printer as well.
>
> ---
>
>   .werks/647                |   18 ++++++++++++++++++
>   ChangeLog                 |    1 +
>   checks/printer_io.include |   27 ++++++++++++++++++++-------
>   3 files changed, 39 insertions(+), 7 deletions(-)
>
> diff --git a/.werks/647 b/.werks/647
> new file mode 100644
> index 0000000..248eeed
> --- /dev/null
> +++ b/.werks/647
>  <at>  <at>  -0,0 +1,18  <at>  <at> 
> +Title: printer_input, printer_output: multiple fixes to algorithm for state determination and
inventory function
> +Level: 2
> +Component: checks
> +Compatible: compat
> +Version: 1.2.5i6
> +Date: 1408447192
> +Class: fix
> +
> +The inventory function now considers the description of the unit if its name is not configured. This
should lead to
> +more and more meaningful items. Still, all units with empty name and description will be merged into one single
> +service with an empty item name.
> +
> +The algorithm to determine the states of a unit was plain wrong, so that a nonsense collection of states
were given.
> +This has been corrected. Still several states may be derived, but they should now correctly describe the operational
> +state of the unit.
> +
> +The inventory function also used the same algorithm to inventorize only units with meaningful states.
Therefore some
> +changes may be expected in the inventory of a printer as well.
> diff --git a/ChangeLog b/ChangeLog
> index 1a75065..40d3a00 100644
> --- a/ChangeLog
> +++ b/ChangeLog
>  <at>  <at>  -38,6 +38,7  <at>  <at> 
>       * 1152 FIX: mk-job: The check now captures currently running jobs and their start time...
>       * 0198 FIX: cisco_temp_sensor: Removed dicey detection for temperature value....
>       * 0645 FIX: brocade_fcport: since in newer firmware (7.*) swFCPortSpeed is deprecated, we then
calculate port speed from IF-MIB::ifHighSpeed
> +    * 0647 FIX: printer_input, printer_output: multiple fixes to algorithm for state determination and
inventory function...
>
>       Multisite:
>       * 1066 Implemented Dashboard Designer...
> diff --git a/checks/printer_io.include b/checks/printer_io.include
> index 6d076e1..a95232c 100644
> --- a/checks/printer_io.include
> +++ b/checks/printer_io.include
>  <at>  <at>  -56,7 +56,7  <at>  <at>  printer_io_states = {
>       64: (0, 'Transitioning to intended state'),
>   }
>
> -factory_settings['printer_default_levels'] = {
> +factory_settings['printer_input_default_levels'] = {
>       'capacity_levels': (0.0, 0.0),
>   }
>
>  <at>  <at>  -66,11 +66,21  <at>  <at>  factory_settings['printer_output_default_levels'] = {
>
>   def inventory_printer_io(info):
>       for line in info:
> +        ignore = False
>           snmp_status = saveint(line[2])
> -        # Skip sub units where it does not seem to make sense to monitor them
> -        if snmp_status & 5 and snmp_status & 3 and snmp_status & 1:
> +        for state_val in sorted(printer_io_states,reverse=True):
> +            if state_val > 0 and snmp_status - state_val >= 0:
> +                snmp_status -= state_val
> +                # Skip sub units where it does not seem to make sense to monitor them
> +                if state_val in ( 1,3,5 ):
> +                    ignore = True
> +        if ignore == True:
>               continue
> -        yield (line[0], {})
> +        if line[0]:
> +            name = line[0]
> +        else:
> +            name = line[1]
> +        yield (name, {})
>
>   def check_printer_io(item, params, info, what):
>       for line in info:
>  <at>  <at>  -78,16 +88,19  <at>  <at>  def check_printer_io(item, params, info, what):
>           snmp_status, level, capacity_max = saveint(snmp_status), saveint(level), saveint(capacity_max)
>           capacity_unit = printer_io_units[capacity_unit]
>
> -        if name == item:
> +        if descr == item or name == item:
>               state_txt = []
>               state_state = 0
>               if snmp_status == 0:
>                   state_txt.append(printer_io_states[0][1])
>               else:
> -                for state_val, (mon_state, text) in printer_io_states.items():
> -                    if snmp_status & state_val:
> +                for state_val in sorted(printer_io_states,reverse=True):
> +                    if state_val > 0 and snmp_status - state_val >= 0:
> +                        mon_state, text = printer_io_states[state_val]
>                           state_state = max(mon_state, state_state)
>                           state_txt.append(text)
> +                        snmp_status -= state_val
> +
>               yield state_state, 'Status: %s' % ', '.join(state_txt)
>
>               if level in [-1, -2]:
>
> _______________________________________________
> checkmk-commits mailing list
> checkmk-commits@...
> http://lists.mathias-kettner.de/mailman/listinfo/checkmk-commits
>
Patrick Gavin | 19 Aug 20:44 2014

[Check_mk (english)] check-mk-agent rpm in epel

Hi-

I think the easiest, least invasive way for me to install the agent on a
host is with the check-mk-agent package on epel. Unfortunately, this
package seems to be a little bit behind with agent plugins.
Specifically, it would be nice to have mk_jolokia instead of
j4p_performance.

Is there any chance the package can be upgraded with newer plugins?

Thanks,

--

-- 
Patrick Gavin
Systems Administrator
Central IT Systems & Services
Humboldt State University
Kim-Han POON | 19 Aug 14:44 2014
Picon

Re: [Check_mk (english)] WATO : Get each VM's CPU load & Mem Charge directly from vCenter



<!-- .ExternalClass .ecxhmmessage P { padding:0px; } .ExternalClass body.ecxhmmessage { font-size:12pt; font-family:Calibri; } -->
All right I did it!

I've edit /opt/omd/sites/mysite/local/share/check_mk/checks/esx_vsphere_vm (see below)
and from now, in WATO CONFIGURATION and VIEWS, I can have my VM's memory usage with critical/warning alert
and without install agent on VM but only based on data from esx_vsphere_'s check.
Gonna do the same for CPU load.

#   --Memory-----------------------------------------------------
#   ------------------------------------------------------------------

def inventory_esx_vsphere_vm_mem(info):
    data = esx_vsphere_vm_convert(info).keys()
    if 'summary.quickStats.guestMemoryUsage' in data:
        return [(None, {})]

def check_esx_vsphere_vm_mem(_no_item, _no_params, info):
    data = esx_vsphere_vm_convert(info)

    # If the machine is powered of, we do not get data
    powerstate = data["runtime.powerState"][0]
    if powerstate != "poweredOn":
        raise MKCounterWrapped("", "VM is %s, skipping this check" % powerstate)

 try:
        #consumed host memory
        host_memory_usage   = savefloat(data["summary.quickStats.hostMemoryUsage"][0]) * 1024 * 1024
        #active guest memory
        guest_memory_usage  = savefloat(data["summary.quickStats.guestMemoryUsage"][0]) * 1024 * 1024
        #size of the balloon driver in the VM
        ballooned_memory    = savefloat(data["summary.quickStats.balloonedMemory"][0]) * 1024 * 1024
        #The portion of memory, in MB, that is granted to this VM from non-shared host memor(musst not be set)
        shared_memory       = savefloat(data["summary.quickStats.sharedMemory"][0]) * 1024 * 1024
        #The portion of memory, in MB, that is granted to this VM from host memory that is shared between VMs.
        private_memory      = savefloat(data.get("summary.quickStats.privateMemory",[0])[0]) * 1024 * 1024
    except:
        raise MKCounterWrapped("", "Hostsystem did not provide memory information (reason may be high load)")

    perf = [
        ("host",      host_memory_usage ),
        ("guest",     guest_memory_usage ),
        ("ballooned", ballooned_memory ),
        ("shared",    shared_memory ),
        ("private",   private_memory ),
    ]

###########################
## WHAT I'VE EDIT START HERE##
###########################

vm_mem_default_levels = ( 80, 90 )

def esx_vsphere_hostsystem_convert(info):
    data = {}
    for line in info:
        data[line[0]] = line[1:]
    return data

def inventory_vm_mem(info):
    data = esx_vsphere_hostsystem_convert(info).keys()
    if 'summary.quickStats.guestMemoryUsage' in data:
        return [(None, 'vm_mem_default_levels')]

def check_vm_mem(item, params, info):
    data = esx_vsphere_hostsystem_convert(info)

    memory_usage = savefloat(data['summary.quickStats.guestMemoryUsage'][0]) * 1024 *1024
    memory_size = savefloat(data['summary.quickStats.hostMemoryUsage'][0]) * 1024 *1024
    level = memory_usage / memory_size * 100

    warn, crit = params
    state = 0
    label = ''
    if level > crit:
        state = 2
        label = "(Niveaux d'alerte a %d%%/%d%%)" % (warn, crit)
    elif level > warn:
        state = 1
        label = "(Niveaux d'alerte a %d%%/%d%%)" % (warn, crit)

    message = "%d%% used %s - %s/%s" % \
    (level, label, get_bytes_human_readable(memory_usage), get_bytes_human_readable(memory_size))
    perf = [("usage", memory_usage, warn * memory_size / 100, crit * memory_size / 100, 0, memory_size)]
    return (state, message)

check_info['esx_vsphere_vm.mem_usage'] = {
  "inventory_function"  : inventory_vm_mem,
  "check_function"      : check_vm_mem,
  "service_description" : "ESX Memory",
  "group"               : "esx_host_memory",
  "has_perfdata"        : True,
}

(/'o')/ yeah!


[EDIT ]
Ok I've tried to did the same for CPU
but as I said, I'm absolute beginner on Python.
I've tried to define this time
VM's used cpu (hz) / total cpu (hz) * 100
in order to get a percent and set/define warning level
as I did for memory.

but this time
"VM's used cpu" information comes from esx_vsphere_vm.cpu 
and "total cpu" comes from esx_vsphere_hostsystem.cpu_usage

1) I didn't find a way to mix / import "total cpu" result in my definition
2) even if I did it, I have to be sure that "total cpu" comes from the right ESX

sorry  I didn't find better words to explain it simply.
If anybody has an idea...  :/
_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Gmane