Niklas Mattisson | 17 Oct 11:48 2014
Picon

[Check_mk (english)] mk-job read fail - check_mk 1.2.4p5

Hello,

I have an issue where I run chroot with mk-job so that they write to 
jobs but check_mk_agent can't read it.

According to the agent it should use:

su "$username" -c "head -n 0 -v *"

However since the user does not have a real login shell this gives 
nothing. If I however use:

sudo -u username [command]

it does show information but in this case there is a nohup.out that 
can't be read because its owned by root.

Anyone got this same problem and managed to solve it so that the read is 
user based with the correct job user etc?

Also I noticed that if the job is non root. Then the directory is not 
created by default. Instead it has to be create on user base level. That is:

cd /var/lib/check_mk_agent/job/
mkdir [username]
chown [username]:[usergroup]

and then run the cronjob. Only then will the job run properly. Is there 
a way around this?

(Continue reading)

Markus.Weber | 17 Oct 10:32 2014
Picon

[Check_mk (english)] Help with WATO Plugin

Hey Guys,

I am fighting with my wato plugins. They don't do what I want them to.
Can someone pls guide me to make a wato plugin that does the following:

Takes:
1 string  (or list of strings) that’s textbox can be enabled with a checkbox
4 float values

Returns:
Either the string or a default value. Lets say a string called "levels"
The 4 float values 

I want to use all of this in my dictionary based parameters.

Best regards
Markus 


_______________________________________________
checkmk-en mailing list
checkmk-en <at> lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Mathias Kettner | 16 Oct 10:28 2014
Picon

[Check_mk (english)] Support for RedHat 5 and Debian 5 (lenny)

Dear users of Check_MK,

while it is our philosophy to be most convervative about
the requirements in software as a prerequisite for Check_MK,
supporting the platforms RedHat 5 und Debian 5 becomes more
and more difficult.

One new example: the current GIT version of RRDTool won't
compile on these systems. The reason is probably too old
versions of lots of fancy libraries, which is really hard
to tackle.

So my question here:

Could you please give us feedback if these platforms
are still in use as a Check_MK *Server* at your origanizations?

Regards,

Mathias

--

-- 

Mathias Kettner

KOMMEN SIE ZUR 1. CHECK_MK KONFERENZ IN MÜNCHEN!
19. bis 21.10.2014
http://mathias-kettner.de/check_mk_konferenz.html

---
(Continue reading)

Tony | 15 Oct 21:56 2014
Picon

[Check_mk (english)] Help using WATO to config fileinfo.groups (alert if count of files in some dir > some threshold)

Greetings, we are facing a problem trying to configure the following in OMD version 1.1.0 using WATO.

We have a windows server with example path of d:\some\path\here where *.xml and *.pdf files will come into existence at random times.

We expect that those files never accumulate beyond some defined threshold (say never more than 100 files).

We wish to define a fileinfo group service check against d:\some\path\here\*.* to alert us if the number of files in that directory exceeds some threshold.

The same problem was described at http://lists.mathias-kettner.de/pipermail/checkmk-en/2014-April/011994.html where the suggestion was:

-------------------------------1. create a rule in "Parameters for inventorized checks -> File grouping patterns", name the gro up e.g. "David" and use regexp "C:\inetpub\mailroot\Badmail\". 2. create a rule in "Manual checks -> Size, age and count of file groups" using your chosen group name and parameters.
-------------------------------

What we've done so far:

Under Hosts & Service Parameters>Manual Checks>Storage, Filesystems and Files>Size, age and count of file groups we defined the following rule:


----------------------------
Explicit hosts: %hostname-here%
Value:
 Checktype: fileinfo.groups - Check age, size and count of a group of files
 Filegroup name: testFileGroupCount
 Parameters: Maximal file count: Warning when higher then 100; Critical when higher then 200
----------------------------



And under Hosts & Service Parameters>Parameters for Inventorized Checks>Fileinfo grouping patterns> we defined the following rule:

RULE1:
----------------------------
Explicit hosts: %hostname-here%
value:
 Name of group: testFileGroupCount
 Pattern for mount point (using * and ?): We've tried many things like so:
"*\some\path\here\*"
*\some\path\here\*
d:\some\path\here\*.pdf
d:\some\path\here\*.xml
d:\some\path\here\*.*

----------------------------

We see that the host gets a service check named "File group testFileGroupCount" but in the "Status Information" column of the native nagios gui page for the services of that host we always get back an OK status like "OK - age_oldest is 0 sec, age_newest is 0 sec, count is 0, size is 0". Note the values of count is always 0.

I've configured the c:\program files\check_mk\check_mk.ini on the target host like so:

[fileinfo]
      path = d:\some\path\here\*.*

And we see that when we poll the agent on the target from the perspective of the nagios server using cmk -d %hostname% we are getting back the list of files in the folder mentioned like so:

D:\some\path\here\1560695-25668387.xml|573|1413394253
D:\some\path\here\1911738-25667777.xml|579|1413393029

Here is what got written to the ~/etc/check_mk/wato/rules.mk as a result:


static_che cks['fileinfo-groups'] = [
  ( ('fileinfo.groups', 'testFileGroupCount', {'maxcount': (100, 200)}), [], ['actual-hostname-here'] ),
] + static_checks['fileinfo-groups']


fileinfo_groups = [
  ( [('testFileGroupCount', 'D:\\some\\path\\here\\*.*'), ('', '')], [], ['actual-hostname-here'], {'comment': u'Count of files'} ),
] + fileinfo_groups


Can anyone identify any mis-configuration on my part? We are really struggling to make this feature work and although the agent is returning to the nagios server the list of files we wish to match on; we can't seem to get the correct pat tern in the Fileinfo grouping patterns rule to actually match on the filename & paths being returned by the target server so it appears it is always thinking there are 0 files in the target folder.
 
 
_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Ronald Prague | 14 Oct 22:37 2014
Picon

[Check_mk (english)] Cisco 2911 ATM interfaces not showing up

I have a cisco 2911 with a pair of ATM interfaces for DSL and they aren't showing up in the check_mk services list, I'm curious as to how to get them added in.

Here are the interfaces as seen in services for check_mk and netdot:


Thanks!

_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Eron Nicholson | 14 Oct 22:35 2014

[Check_mk (english)] Overlapping service names overwriting extra_service_conf variables

Greetings,
  We monitor crons and cron error logs.  I am converting these configs
from plain nagios configs to check_mk style legacy_services and have
seemingly come across a bug.  If you have a legacy service named
"service1" and another service named "service1 b" on the same host,
"service1 b" will get overwritten with the extra_service_conf from
"service1".  Here is an example config for two services :

# from included .mk file
# Cron check
legacy_checks += [
( ( "stale-cron!180000", "Cron somecron", True ), [ "server1" ] ),
]
extra_service_conf["use"] += [
  ( "passive-service", [ 'server1'], ["Cron somecron"]),
]
extra_service_conf["check_freshness"] += [
  ( "1", [ 'server1'], ["Cron somecron"]),
]
extra_service_conf["freshness_threshold"] += [
  ( "180000", [ 'server1'], ["Cron somecron"]),
]

# Cron error check
legacy_checks += [
( ( "reset-state!1200", "Cron somecron - error.log", True ), [ "server1" ] ),
]
extra_service_conf["use"] += [
  ( "passive-service", [ 'server1'], ["Cron somecron - error.log"]),
]
extra_service_conf["check_freshness"] += [
  ( "1", [ 'server1'], ["Cron somecron - error.log"]),
]
extra_service_conf["freshness_threshold"] += [
  ( "1200", [ 'server1'], ["Cron somecron - error.log"]),
]

#from check_mk_objects.cfg
#cron service config
define service {
  use                           check_mk_perf,default-service
  host_name                     server1
  service_description           Cron somecron
  check_command                 stale-cron!180000
  use                           passive-service
  notifications_enabled         1
  freshness_threshold           180000
  check_freshness               1
}

#cron error service config
define service {
  use                           check_mk_perf,default-service
  host_name                     server1
  service_description           Cron somecron - error.log
  check_command                 reset-state!1200
  use                           passive-service
  notifications_enabled         1
  freshness_threshold           180000
  check_freshness               1
}

The freshness_threshold for 'Cron somecron - error.log' should be
1200, not 180000.  If you rename that service to 'Cron error.log -
somecron', it is created properly.  I have reproduced this with two
instances of check_mk.

I have avoided this problem for now by defining the error.log services
using extra_nagios_conf, but I would prefer to avoid doing that.  Is
this a known bug?  Any chance of a fix?

Thanks,

Eron Nicholson
Basecamp
Mario Garcia | 14 Oct 11:56 2014
Picon

[Check_mk (english)] memory do not check swap/pagefile on hosts.

Hello
I am looking forward to only monitor physical ram usage and not virtual memory. it means that the pagefile usage should be excluded from the results.. is there a way I can achieve this. the man of mem.win only disables the levels and not the monitoring itself.. 

thanks 
--
Mario Garcia
ABSI NV | System Engineer
Humaniteitslaan 224 - Bld de l'Humanité - 1190 Bruxelles
mariog-hTDmKBYT6Sw@public.gmane.org / http://www.absi.be / Tel: +32(0)2 333 40 00 Fax: +32(0)2 333 40 60
_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Lucas M. Moreschi | 13 Oct 18:54 2014
Picon

[Check_mk (english)] Bookmarks Snapin on the Sidebar just shows Remove button.

Hi guys,

I've installed check_mk  Version: 1.2.5i5p3 (the latest), in two linux 
distributions: CENTOS.6.5_64 & Debian 7u3.
Both look good but just the Bookmarks snapins is not working fine,
When I press the Add Bookmarks buttons this disappears and just the 
Remove button appears.

Can anyone help me, please?

Regards,

Lucas M. Moreschi.
Mäkelä, Antti | 13 Oct 08:33 2014
Picon

[Check_mk (english)] Using SNMP GETs instead of walks

We have a router that has a lots of interfaces (due to several E1 cards, each creating 30 subinterfaces).

We wish to poll info only on select few (the Ethernet interfaces and the signaling of E1). The problem we are
having that when CMK does Snmpbulkwalk, it takes a *long* time to go through all of these interfaces, since
despite most of the interfaces configured as "ignored services", during poll the SNMP still walks
through all of these.

Is it possible to make cmk use SNMP GET instead of SNMP bulkwalk (since we are only interested in a few
specific OIDs)?

If not, I'll configure an SNMP view that limits the bulkwalk, but I'd prefer to avoid config at the host.

--

-- 
- Dr. Antti Mäkelä | Senior Architect | CCIE #20962 -
- Vintor Oy, Itsehallintokuja 6, 02600 Espoo | www.vintor.fi -
Tata, Joseph | 10 Oct 22:26 2014

[Check_mk (english)] BI Rules- Paramater in Regex

Sorry for the double submit, continuing...

Can you use a paramter value in the regex of a BI rule service match?   Example - I have a rule called Application Stack:

aggregation_rules["application-stack"] = {
'aggregation': 'worst!1!2',
'comment': u'',
'nodes': [('ci-f5-pool', ['$ENV$', '$STACK$'])],
'params': ['ENV', 'STACK'],
'title': u'Application Stack - $ENV$ $STACK$'
}

It in turn calls the rule ci-f5-pool which SHOULD take ENV and STACK as paramaters, and then give me the status of the pool in my loadbalancer.  If I explicitly specify the pool name (i.e. Load Balancer Pool /Test/test-app-jboss) in the service string it works, but it I try to reference either $ENV$ or $STACK$ in the service name I get nothing.  I know the rule is getting the paramaters because I'm using them in the title. 

Here are the other rule definitions for reference:

 
aggregation_rules["ci-f5-pool"] = {
'aggregation': 'worst!1!2',
'comment': u'',
'nodes': [(FOREACH_HOST,
            ['f5'],
            ALL_HOSTS,
            u'$1$',
            u'Load Balancing Pool /Test/test-app-jboss')],
'params': ['ENV', 'STACK'],
'title': u'Loadbalancer Pool - $ENV$ $STACK$'
}

aggregations.append(
(
u'Test Applications', 'application-stack', ['Test', 'jboss']




_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Tata, Joseph | 10 Oct 22:14 2014

[Check_mk (english)] BI Rules- Paramater in Regex

Can you use a paramter value in the regex of a BI rule service match?   Example - I have a rule called Application Stack:
aggregation_rules["application-stack"] = {
'aggregation': 'worst!1!2',
'comment': u'',
'nodes': [('ci-f5-pool', ['$ENV$', '$STACK$'])],
'params': ['ENV', 'STACK'],
'title': u'Application Stack - $ENV$ $STACK$'
}






_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Gmane