zimmy | 23 Mar 14:28 2015
Picon

[Check_mk (english)] ntp.time check on Raspberry B+

Hi all,
I need to add the ntp.time check on a Raspberry B+, but, when I collect the checks, I cannot see the ntp.time.

root <at> adf-v-nagios-mon:~# cmk -L Raspberry | grep ntp
ntp                              tcp     yes    yes    NTP Peer %s
ntp.time                         tcp     yes    yes    NTP Time
root <at> adf-v-nagios-mon:~# cmk -II Raspberry
cpu.threads       1 new checks
df                2 new checks
diskstat          1 new checks
kernel            3 new checks
kernel.util       1 new checks
lnx_if            1 new checks
lnx_thermal       1 new checks
mem.used          1 new checks
mem.vmalloc       1 new checks
mounts            2 new checks
tcp_conn_stats    1 new checks
uptime            1 new checks

The Raspberry ntp daemon is running and the "ntpq -np" command is responding without problems.

Could you help me to understand?

Many thanks

Zn
_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Ralf Krüdewagen | 23 Mar 09:45 2015
Picon

[Check_mk (english)] After update to 1.2.6: Problems with "defaults" file encoding + Multisite error related?

Hi,

I just updated from Check_MK 1.2.4 to 1.2.6.

I faced the following error when runing "cmk -O":

####
ERROR: Cannot read installation settings of check_mk.
Non-ASCII character '\xc3' in file  
/usr/share/check_mk/modules/defaults on line 1, but no encoding  
declared; see http://www.python.org/peps/pep-0263.html for details  
(defaults, line 1)
####

As a workaroud, I put the following line on top of the file  
/usr/share/check_mk/modules/defaults:
####
# -*- encoding: utf-8; py-indent-offset: 4 -*-
####

So, no problem any more when execuing cmk.

However, there seems to be something wrong in general with the  
"defaults" file, since Multisite does not work anymore.

Standard error in browser:
####
Server or Configuration Problem
A Server problem occurred. You'll find details in the error log of  
Apache. One possible reason is, that the file  
/usr/local/icinga/etc/htpasswd.users is missing. You can create that  
file with htpasswd or htpasswd2. A better solution might be to use  
your existing htpasswd file from your Nagios installation. Please edit  
/etc/apache2/conf.d/check_mk and change the path there. Restart Apache  
afterwards.
####

I get the Apache error "AttributeError: 'module' object has no  
attribute 'var_dir'", which seems to be related to the "defaults" file:

####
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7] mod_python  
(pid=1181, interpreter='xxx', phase='PythonHandler', handler='index'):  
Application error
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7] ServerName: 'xxx'
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7] DocumentRoot:  
'/srv/www/htdocs'
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7] URI:  
'/check_mk/index.py'
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7] Location: None
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7] Directory:  
'/usr/share/check_mk/web/htdocs/'
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7] Filename:  
'/usr/share/check_mk/web/htdocs/index.py'
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7] PathInfo: None
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7] Traceback (most  
recent call last):
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7]   File  
"/usr/lib64/python2.7/site-packages/mod_python/importer.py", line  
1537, in HandlerDispatch\n    default=default_handler, arg=req,  
silent=hlist.silent)
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7]   File  
"/usr/lib64/python2.7/site-packages/mod_python/importer.py", line  
1202, in _process_target\n    module = import_module(module_name,  
path=path)
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7]   File  
"/usr/lib64/python2.7/site-packages/mod_python/importer.py", line 296,  
in import_module\n    log, import_path)
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7]   File  
"/usr/lib64/python2.7/site-packages/mod_python/importer.py", line 680,  
in import_module\n    execfile(file, module.__dict__)
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7]   File  
"/usr/share/check_mk/web/htdocs/index.py", line 38, in <module>\n     
import defaults, config, login, userdb, hooks, visuals,  
default_permissions
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7]   File  
"/usr/lib64/python2.7/site-packages/mod_python/importer.py", line 991,  
in load_module\n    return  
_global_modules_cache.import_module(self.__file)
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7]   File  
"/usr/lib64/python2.7/site-packages/mod_python/importer.py", line 680,  
in import_module\n    execfile(file, module.__dict__)
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7]   File  
"/usr/share/check_mk/web/htdocs/config.py", line 65, in <module>\n     
config_dir = defaults.var_dir + "/web"
[Mon Mar 23 09:31:33 2015] [error] [client 10.2.206.7] AttributeError:  
'module' object has no attribute 'var_dir'
####

Any idea how to fix this?

Cheers
Ralf
Glen L. Bowes | 21 Mar 16:21 2015

[Check_mk (english)] Multiple agents behind NAT?

Hi folks, new user to the list here and loving check_mk! I apologize if this question has been asked and beaten to death…

 

I have a few sites I’d like to monitor remotely but (currently anyway), do not have the resources to set up multisite. Is it possible to monitor multiple agents behind a single NAT box? Can anyone lead me in the direction of some documentation if this is possible?

 

Many thanks in advance,

 

Glen

_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Nagios Administrator | 20 Mar 23:06 2015

[Check_mk (english)] Check_esxi_hardware

Good Day Everyone,

   Has anyone gotten check_esxi_hardware to work on Check_MK to work?

Steve 

Sent from my iPhone

This communication is for the exclusive use of addressee and may contain Hinda,
Inc. confidential, proprietary or privileged information which may be used
exclusively for its intended purpose. If you are not the intended recipient, any
use, copying, disclosure, dissemination or distribution is strictly prohibited. 
If you are not the intended recipient, please delete this communication, and
destroy all copies.
Craig Cook | 20 Mar 21:24 2015
Picon

[Check_mk (english)] Request-URI Too Large

I am getting this apache error when trying to create notification rules:

Request-URI Too Large

The requested URL's length exceeds the capacity limit for this server.

I saw some old check_mk mail messages saying it was fixed, but that was a long time ago.  I am using 1.2.5i2p1.

Looks like a change to apache may fix it... anyone know what (and where it) needs changed?

Thanks

Craig
Mario Garcia | 20 Mar 16:15 2015
Picon

[Check_mk (english)] how to enable esx_vsphere_vm.snapshots on cmk 1.2.4p5

Hello 
I do not see how to enable esx_vsphere_vm.snapshots on omd 1.20? 
is it yet not available

can i install cmk 1.2.6 on omd 1.20? in case it is not yet available? 

thank you. 

--
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
Ervin Binungcal | 20 Mar 15:02 2015
Picon

[Check_mk (english)] Unable to login

Hi,
Im getting errors. Can someone help me?

Check_MK Version: 1.2.6 Page: login.py GET/POST-Variables: _login=Login _origtarget= _password=xxxxxxx _username=mcervin filled_in=login Traceback (most recent call last): File "/usr/share/check_mk/web/htdocs/index.py", line 245, in handler handler() File "/usr/share/check_mk/web/htdocs/login.py", line 230, in page_login result = do_login() File "/usr/share/check_mk/web/htdocs/login.py", line 210, in do_login set_auth_cookie(username, load_serial(username)) File "/usr/share/check_mk/web/htdocs/login.py", line 94, in set_auth_cookie html.set_cookie(site_cookie_name(), auth_cookie_value(username, serial)) File "/usr/share/check_mk/web/htdocs/login.py", line 91, in auth_cookie_value return username + ':' + now + ':' + generate_hash(username, now, serial) File "/usr/share/check_mk/web/htdocs/login.py", line 81, in generate_hash secret = load_secret() File "/usr/share/check_mk/web/htdocs/login.py", line 67, in load_secret file(secret_path, 'w').write(secret) IOError: [Errno 13] Permission denied: '/usr/local/nagios/etc/auth.secret'
Thanks!
Mc Ervin Binungcal

_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Ralf Prengel | 20 Mar 06:42 2015
Picon

[Check_mk (english)] Invalid check parameter: Undefined key 'process' in the dictionary


Hallo,

beim Versuch eine Solaris 10 Sparc mit dem passenden Client (1.2.6) zu  
überwachen habe ich folgendes Problem:
Der Check manuelle Prozesse Process Discovery liefert die oben  
genannte Meldung.

ps 	sm_ctrld_main 	proc_sm_ctrld_main 	1 processes 2.4 MB virtual, 1.4  
MB resident, 0.0% CPU 	Invalid check parameter: Undefined key  
'process' in the dictionary. Allowed are levels, cpulevels,  
cpu_average, virtual_levels, resident_levels, handle_count.! The  
parameter is: {'process': '/usr/sesam/bin/sesam/sm_ctrld_main',  
'levels': (1, 1, 99999, 99999), 'user': None}

Gruss und Dank

Ralf

_______________________________________________
checkmk-en mailing list
checkmk-en <at> lists.mathias-kettner.de
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Brent Jones | 20 Mar 01:13 2015
Picon

[Check_mk (english)] FW: FW: Sharing session over multiple check_mk instances

Hi Andreas,

 

When we attempted to load balance these sessions we too thought that we could just enable load balancing with round robin algorithm. However when we did we had notice that users were constantly being prompted to re log in. Once we noted that i enabled persistence on the load balancing algorithm so that each session would go back to the original load balancer it authenticated on. This would normally be fine however we are doing this persistence based on source ip and having a lot of sessions come in from proxies hence some servers getting a lot more hits than others…

 

Hopes this clarifies our situation.

 

From: Andreas Döhler [mailto:andreas.doehler <at> gmail.com]
Sent: Thursday, 19 March 2015 6:03 PM
To: Brent Jones
Cc: Brendon McDade; checkmk-en <at> lists.mathias-kettner.de
Subject: Re: FW: [Check_mk (english)] Sharing session over multiple check_mk instances

 

Inside a replicated setup the authentication is done with the cookie set on your machine. The procedure how the cookie is generated you can see at the beginning of "login.py".

There you will see that the following components are included inside the cookie.

auth_secret, user serial, time-stamp and username

The auth_secret and user serial are synchronized over your replicated setup, That means that all your servers can validate a cookie issued by another machine in your replicated setup.


The other servers don't need to know your login credentials.

With the comments inside login.py it is easy to get the concept how the authentication is working.

 

Best regards

Andreas

 

Brent Jones <Brent.Jones <at> tpgtelecom.com.au> schrieb am Mi., 18. März 2015 um 23:58 Uhr:

Hi Andreas,

 

But this would require a single server handling the auth. Say server01 replicated the configuration, I don’t see this working if server02 auths someone in. How would server01 or server03 know about the auth?

 

Is there some OMD feature I’m missing that would do this? My other thought was having all three webservers share a NFS mount with the config and hopefully the login status. What folder would I need to use exactly? /omd/sites/<ours>/var/check_mk/web/ only contains local users: not our LDAP users.

 

Thanks for the help!

 

From: Andreas Döhler [mailto:andreas.doehler <at> gmail.com]
Sent: Wednesday, March 18, 2015 6:08 PM
To: Brent Jones; checkmk-en <at> lists.mathias-kettner.de
Subject: Re: [Check_mk (english)] Sharing session over multiple check_mk instances

 

This shared session thing should be no problem if all three servers get the configuration replicated from one central server.
Included inside the replication is also the information about all the existing users and there login status.

You have only to re-authenticate if you use LDAP auth and the user had changed his password inside LDAP and there was no replication between the sites in the meantime.

The important user specific information is inside "serial.mk" inside the /var/check_mk/web/<username>/ directory.

 

Best regards

Andreas

 

Brent Jones <Brent.Jones <at> tpgtelecom.com.au> schrieb am Mi., 18. März 2015 um 00:09 Uhr:

It’s been suggested I employ SSL in order to get a unique session id I can use but this seems like overkill. Any other potential solutions?

 

From: checkmk-en-bounces <at> lists.mathias-kettner.de [mailto:checkmk-en-bounces <at> lists.mathias-kettner.de] On Behalf Of Brent Jones
Sent: Tuesday, March 10, 2015 3:50 PM
To: checkmk-en <at> lists.mathias-kettner.de
Subject: [Check_mk (english)] Sharing session over multiple check_mk instances

 

Hi all,

 

I have a monitoring setup whereby I have 3 separate servers running Check_MK which connect to a single remote OMD instance via livestatus. Individually, the webservers run great. I wish to put a load balancer (f5) in front of it to do load balancing for all three servers.

 

How can I share a single session across all three webservers happily? I’ve installed via OMD and I have MULTISITE_AUTHORISATION and MULTISITE_COOKIE_AUTH on. The problem here is that a refresh may currently take you to a different web server which needs you to login again.

 

Should I instead be looking into adding a sessionid into the equation? If so, any assistance here would be awesome!

 

Any help would be greatly appreciated!

 

Brent Jones | NMS Engineer 
T 02 8220 6183 
30 Ross St, Glebe NSW 2037
brent.jones <at> tpgtelecom.com.au
 www.tpg.com.au 

TPG Telecom (ASX: TPM)

This email and any attachments are confidential and may be subject to copyright, legal or some other professional privilege. They are intended solely for the attention and use of the named addressee(s). They may only be copied, distributed or disclosed with the consent of the copyright owner. If you have received this email by mistake or by breach of the confidentiality clause, please notify the sender immediately by return email and delete or destroy all copies of the email. Any confidentiality, privilege or copyright is not waived or lost because this email has been sent to you by mistake.

 

 

Confidentiality: This email and any attachments are confidential and may be subject to copyright, legal or some other professional privilege. They are intended solely for the attention and use of the named addressee(s). They may only be copied, distributed or disclosed with the consent of the copyright owner. If you have received this email by mistake or by breach of the confidentiality clause, please notify the sender immediately by return email and delete or destroy all copies of the email. Any confidentiality, privilege or copyright is not waived or lost because this email has been sent to you by mistake.

Confidentiality: This email and any attachments are confidential and may be subject to copyright, legal or some other professional privilege. They are intended solely for the attention and use of the named addressee(s). They may only be copied, distributed or disclosed with the consent of the copyright owner. If you have received this email by mistake or by breach of the confidentiality clause, please notify the sender immediately by return email and delete or destroy all copies of the email. Any confidentiality, privilege or copyright is not waived or lost because this email has been sent to you by mistake.

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

Confidentiality: This email and any attachments are confidential and may be subject to copyright, legal or some other professional privilege. They are intended solely for the attention and use of the named addressee(s). They may only be copied, distributed or disclosed with the consent of the copyright owner. If you have received this email by mistake or by breach of the confidentiality clause, please notify the sender immediately by return email and delete or destroy all copies of the email. Any confidentiality, privilege or copyright is not waived or lost because this email has been sent to you by mistake.

Confidentiality: This email and any attachments are confidential and may be subject to copyright, legal or some other professional privilege. They are intended solely for the attention and use of the named addressee(s). They may only be copied, distributed or disclosed with the consent of the copyright owner. If you have received this email by mistake or by breach of the confidentiality clause, please notify the sender immediately by return email and delete or destroy all copies of the email. Any confidentiality, privilege or copyright is not waived or lost because this email has been sent to you by mistake.
_______________________________________________
checkmk-en mailing list
checkmk-en@...
http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en
Jim Welch | 18 Mar 13:54 2015
Picon

[Check_mk (english)] RFC: Check_MK local check result codes

Would it be feasible to add '4' to the possible status/result codes for 
local checks?

We are using local checks to make multiple checks (30 or more in some 
cases) and
return results on several servers. In some cases one of the checks will 
fail and that
problem causes other local checks to fail as well. I would like to be 
able to return
a result of 4 (dependent) for the downstream checks so they will not 
display as
current problems or generate notifications and so will not obscure the 
primary
failure and make it easier to diagnose/troubleshoot the root problem.
(I know we could return 0 for the dependent checks during upstream check
failures, but the application admins don't like that workaround.)

Nagios plugin result code 4 is not documented very well as far as I can 
tell from
Google searches to it may not be practical, but if it does work it would 
make our
lives much easier.
Bernhard Schmidt | 18 Mar 10:19 2015
Picon

[Check_mk (english)] Smokeping-alike pnp-template for ping

Hi,

a colleague has created a pnp-template which resembles Smokeping graphs
(min/max are shown, the color codes the packet loss). A sample is attached.

I have polished the code a bit and put it on github

https://github.com/bernhardschmidt/check-mk-addons

I will also put the patches for broken checks I have sent to mk before
(which were mostly ignored) into the repository during the next few
days, otherwise I'll lose track.

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

Gmane