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
Étiévant Hugo | 10 Oct 13:33 2014
Picon
Picon

[Check_mk (english)] WATO : too strict user group control

hello !

i just upgraded my install into OMD 1.21 (Check_MK 1.2.4p5)

i have a big problem : my users can not change host properties because 
the following error :
"Sorry, you cannot assign the contact group 'A' because you are not 
member in that group. Your groups are: B"

in my previous installation of Check_Mk 1.2.2p2, this error dos not occurs

i do not find into roles permissions how to bypass this restriction

so, i just modify the check_mk/web/htdocs/wato.py file :
def check_user_contactgroups(cgspec):
     return True

My users need to change host properties even when a host have multiple 
"contact groups" one of them which does not containt my user.

To my opinion, the "check_user_contactgroups" restriction is too strict.

best regards

Hugo
sberg | 10 Oct 12:53 2014

[Check_mk (english)] logwatch expression

Just noticed that fail2ban appears to be writing it's logfile a bit differently and it broke the logwatch pattern.

I get notices about failed login attempts from /var/log/secure, fail2ban does it's thing and adds an
iptables rule to block the offending ip.  But I don't get a matching log hit from /var/log/fail2ban.log

In the log I get entries like this:
2014-10-09 06:43:45,410 fail2ban.actions[7661]: WARNING [ssh-iptables] Ban 192.168.1.134
2014-10-10 06:43:45,410 fail2ban.actions[7661]: WARNING [ssh-iptables] Unban 192.168.1.134

They used to look like this:
2014-07-27 00:24:48,418 fail2ban.actions: WARNING [ssh-iptables] Ban 116.10.191.239
2014-07-28 00:24:48,866 fail2ban.actions: WARNING [ssh-iptables] Unban 116.10.191.239

Fail2ban is now including the pid of it's process in the log file.  

Here's what I've tried to do in logwatch.cfg, but it still doesn't throw a warning on new ban or unban
entries.  How do I tweak this to get a match?

# Fail2ban log
/var/log/fail2ban.log
 W fail2ban\.actions\[*\]\: WARNING \[ssh\-iptables\] Ban 
 W fail2ban\.actions\[*\]\: WARNING \[ssh\-iptables\] Unban 

_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Riccardo Murri | 8 Oct 17:17 2014
Picon

[Check_mk (english)] separating monitor host and target host

Hello,

I'm new to check_mk -- so please excuse if this is already answered in
the documentation and I did not find the answer.

Is there a way to tell check_mk that a check needs to run on one host,
but is relative to another host?  Case in point: we have some hardware
(e.g., switches or IPMI service processors) which provide interesting
data over a custom interface.  It's relatively easy to extract those
data using a script, but:

- the Nagios server (host `mon`) does not have access to the target
  (host `ib`);

- if we try to use local checks on a host that has access to the
  target (host `gw`), then check_mk will inventory those checks as
  relative to the host that runs the script.

In plain Nagios config, I would just define the checks in the target so that
`check_command` runs the check on host `gw`.  More or less like this:

        define service {
          check_command check_nrpe!-H!gw!-c!check_ib_status
          host_name     ib
          # ...
        }

Is there a way to accomplish this via check_mk?

Thanks,
Riccardo
Andreas Döhler | 8 Oct 07:51 2014
Picon

Re: [Check_mk (english)] Question about availability report, downtime and decomissioning

What you can do is after decommissioning a host is set this host and his services to no active/passive checks.
That means the last status is kept and you can move this hosts to a own hostgroup like "inactive hosts".

br
Andreas

2014-10-07 14:26 GMT+02:00 Bruno Henrique Barbosa <bruno-barbosa <at> prodesan.com.br>:
Hello guys, I need some guidance about availability reports and downtimes. How do you handle your reports when decomissioning one or more hosts? I mean, I'm migrating some servers into new ones and when migration finishes, I would just turn them off. If I delete the host from Check_MK, I can no longer have access to its history (which I need because of audit purposes). So what's the best way to work this out? I want to shutdown migrated hosts, want them to be kept inside Check_MK (because I need old monitoring data to regenerate reports in future) but don't want them to ruin my hostgroup report data, since they are on downtime.

Have tried the option "Do not monitor this host" after decomissioning/turning off it, but the effect is the same as removing from Check_MK (which means I can no longer have its old data).

Thank you!


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


_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Andreas Döhler | 8 Oct 07:47 2014
Picon

Re: [Check_mk (english)] Hardware/Inventory problem

The inventory information are stored in special paths - do you installed the 1.2.5i5p3 manually inside an existing OMD 1.20 or used the subscription build?

br
Andreas

2014-10-07 10:49 GMT+02:00 codedmind <codedmind-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
Hy there,

What i need to do so i can try the new hardware/software working?
I'm running omd with last check_mk 1.2.5i5p3 but hardware/software inventory only report memory, the ps1 script is working but the check_mk don't show that information, what i'm missing?

Thanks

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


_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Info_pipari | 4 Oct 15:08 2014
Picon

[Check_mk (english)] Migration from source install 1.2.5i5p3 to OMD 1.21

Hi guys,
Are going to do a migration from a source install on opensuse to debian and omd. BUT the problem is that OMD
aint updated to the same version yet.
I like to run non-stable builds at home so I know the features to come and implement them at work.

I got about 2 weeks before we are going to migrate our work check_mk the same way. But at work we have the same
version as OMD.  Have you guys any idea how long before the OMD version catches up to the “source” versionen?

Or is it anyway to compile the source into OMD? The git OMD is the wrong version to… 

Hope you understand my poor english. 

Best regards
Cristopher
Maykel Franco | 3 Oct 21:15 2014
Picon

[Check_mk (english)] Check activemq queue in check_mk

Hi, I like monitoring activemq queue with check_mk . The problem is
that the documentation:

https://mathias-kettner.de/checkmk_check_mq_queues.html

Use datasource program in check_mk, but I have install check_mk
1.2.2p3 , this option doesn't exist in Host & Service Parameters...

How check activemq?

Thanks in advanced.
Lars Wagner | 3 Oct 17:52 2014
Picon

[Check_mk (english)] Custom host variable in ps.perf

Hi

How can I use custom host variables (e.g. _CUSTOMER) for ps.perf services?

I tried to do it like that, but's not working:

extra_host_conf["_CUSTOMER"] += [ ( "myCustomer", [ "server1234" ] ), ] ( [ "cmk", "customer" ], ALL_HOSTS, "ps.perf", "customer", { 'process': None, 'user': "$_HOSTCUSTOMER$", 'warnmin': 0, 'warnmax': 50, 'okmin': 0, 'okmax': 50, }),


Thanks in advance.
Best regards

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

Gmane