seppovic / check_mk-plugins Goto Github PK
View Code? Open in Web Editor NEWchecks/plugins for the check_mk monitoring system
License: GNU General Public License v2.0
checks/plugins for the check_mk monitoring system
License: GNU General Public License v2.0
Agent output seems to look ok, but check_mk does not like it ;)
Agent output
<<<df_btrfs>>>
[btrfs_df]
/backup
Data, single: total=1.01GiB, used=687.91MiB
System, DUP: total=8.00MiB, used=16.00KiB
System, single: total=4.00MiB, used=0.00
Metadata, DUP: total=1.00GiB, used=944.00KiB
Metadata, single: total=8.00MiB, used=0.00
unknown, single: total=16.00MiB, used=0.00
Label: none uuid: 364cb6f1-f08b-4d8a-ab4d-bc3b9b93cfe5
Total devices 1 FS bytes used 688.85MiB
devid 1 size 3.64TiB used 3.04GiB path /dev/mapper/backup_crypt
Btrfs v3.12
[df]
/dev/mapper/backup_crypt btrfs 3907015492 722728 3904184216 1% /backup
Check_MK debug
Check output: check failed - please submit a crash report!
Check_MK Version: 1.2.6p12
Date: 2015-13-11 15:05:25
Host: backupkiste
Service: Filesystem /backup
Check type: df_btrfs
Item: '/backup'
Parameters: {'levels': (80.0, 90.0),
'levels_low': (50.0, 60.0),
'magic_normsize': 20,
'trend_perfdata': True,
'trend_range': 24}
Traceback (most recent call last):
File "/omd/sites/server/var/check_mk/precompiled/backupkiste", line 1115, in do_all_checks_on_host
' \x00|\x0b\x00d\x01\x00\x15d\x0f\x00|\x01\x00k\x06\x00r\xce\x02|\x08\x00d\x13\x00\x17p\xd1\x02|\x08\x00|\x01\x00|\x08\x00\x19d\x16\x00d\x17\x00d\x18\x00d\x02\x00\x83\x03\x02\\\x03\x00}\x16\x00}\x17\x00}\x18\x00|\x17\x00r'
File "/omd/sites/server/var/check_mk/precompiled/backupkiste", line 4286, in check_btrfs
File "/omd/sites/server/var/check_mk/precompiled/backupkiste", line 2497, in df_check_filesystem_list
ValueError: too many values to unpack
Hi,
we just tested the check plugin, I found that the agent plugin and example config weren't packaged. Manually deploying them (wget from github ;-) seems to have worked fine.
Dependency list on stock CentOS6:
yum install perl-LDAP perl-Try-Tiny
Thanks for the excellent plugin extension. what would be the steps to add alerting based on the thresholds ? I am not able to, from the Wato UI.
My solution:
sub urlencode {
my $str = "@_";
$str =~ s/%([A-Fa-f\d]{2})/chr hex $1/eg; # decode first, there are new lines encoded by checkmk
$str =~ s/([^^A-Za-z0-9\-_.~])/ sprintf "%%%02X", ord $1 /eg; # encode also % character !!!
return $str;
}
My solution:
# replace + by 00 and delete whitespaces
my $phone = $p{CONTACTPAGER};
$phone =~ s/\s+//g;
$phone =~ s/\+/00/g;
And use $phone instead of $p{CONTACTPAGER} for sending
Exception: Error running automation call bake-agents (exit code 2), error:
Error creating 0807f53b3979407f/linux_deb agent for host: Error in bakery plugin "slapd": 'bool' object is not iterable
Traceback (most recent call last):
File "/omd/sites/test/lib/python/cmk_base/cee/agent_bakery.py", line 366, in execute_bakery_plugin
bake_func(*func_args)
File "/omd/sites/test/local/share/check_mk/agents/bakery/slapd", line 16, in bake_slapd
for instance, instconf in conf:
TypeError: 'bool' object is not iterable
.
Hi!
Did you plan to update the plugin with new api version of checkmk 2.0?
Thanks anyway!
Hello,
Thanks for publishing this it seems like it should do exactly what I need.
I wanted to use your plugin to monitor JMS queue state, I installed the package on the check_mk server. Then pushed the agent file (mk_jolokia) on the remote host.
However, when I execute mk_jolokia manually I see the output with my new checks, but this is not picked up on the check_mk server as new discovered service.
Am I doing something wrong ?
Also, I don't know how to rename the output, right now I get this :
But I'd like something like #queue name# and the state : advertised_in_cluster_jndi
Thanks for your guidance on this
Currently, the syncrepl check works only if slapd is available on the host.
This isn't always the case, e.g. if using dockerized OpenLDAP server instances.
syncrepl uses ldap bind / query only, so there should be an option to configure it in active checks.
Hello!
package jolokia_generic-2.2.3.mkp is not installing on check_mk 1.2.6 due to file conflict with base check_mk installation:
#cmk -V
This is check_mk version 1.2.6
#cmk -P list
check_mk
#cmk -P install jolokia_generic-2.2.3.mkp
File conflict: /usr/share/check_mk/agents/cfg_examples/jolokia.cfg is part of another package.
regards,
J. Weglinski
Hi,
I'm trying to enable the testssl check in my CheckMK environment. Currently there isn't an mkp file available, so I tried to integrate the check manually. When I try to configure the check for a service I always get the following message when activating the check:
Failed: Error creating configuration: 'testssl'
Normally I would suspect an associated file under "~ / share / check_mk / checks /" but in the case of testssl I'm not sure. Is it possible that I'm missing somthing or is it just my fault because of misconfiguration?
Regards,
Claudio
Hi,
in the TODO section you got this time:
I'd love to do it but I don't understand what you're meaning, exactly.
You can find me via Twitter (@florianheigl1) or on IRC/freenet: darkfader in #check_mk
Bug is fixed, links and doc updated but 2.2.4 mkp is missing
Hello and a happy new year!
I'm testing the xmpp module for check_mk raw 1.4.19 and I have trouble getting the messages to appear. Below is the output of the debug notify.log.
I'll be happy to send any additional info needed!
2018-01-05 10:14:37 * notifying fylakio via xmpp.pl, parameters: xmppserver, debug, service_message, password, host_message, user, bulk: no 2018-01-05 10:14:37 executing /omd/sites/site/local/share/check_mk/notifications/xmpp.pl 2018-01-05 10:14:37 Output: D-main: xmpp notification handler start, got the following env_vars: 2018-01-05 10:14:37 Output: $VAR1 = { 2018-01-05 10:14:37 Output: 'SERVICEACKAUTHOR' => '', 2018-01-05 10:14:37 Output: 'NOTIFICATIONCOMMENT' => '', 2018-01-05 10:14:37 Output: 'HOSTOUTPUT' => 'OK - XX.XX.XX.XX: rta 0.154ms, lost 0%', 2018-01-05 10:14:37 Output: 'LASTHOSTUP_REL' => '0d 00:00:25', 2018-01-05 10:14:37 Output: 'LASTSERVICESTATECHANGE_REL' => '0d 00:00:01', 2018-01-05 10:14:37 Output: 'SERVICEOUTPUT' => 'UNKNOWN - check failed - please submit a crash report!', 2018-01-05 10:14:37 Output: 'SERVICE_SL' => '$_SERVICEEC_SL$', 2018-01-05 10:14:37 Output: 'SERVICEGROUPNAMES' => '', 2018-01-05 10:14:37 Output: 'PREVIOUSHOSTHARDSHORTSTATE' => 'UP', 2018-01-05 10:14:37 Output: 'HOSTPROBLEMID' => '0', 2018-01-05 10:14:37 Output: 'LASTSERVICEOK_REL' => '0d 00:01:02', 2018-01-05 10:14:37 Output: 'SERVICEFORURL' => 'SERVICE DESC', 2018-01-05 10:14:37 Output: 'NOTIFICATIONAUTHORALIAS' => '', 2018-01-05 10:14:37 Output: 'HOSTATTEMPT' => '1', 2018-01-05 10:14:37 Output: 'HOSTCHECKCOMMAND' => 'check-mk-host-ping!-w 200.00,80.00% -c 500.00,100.00%', 2018-01-05 10:14:37 Output: 'HOSTADDRESS' => 'X.X.X.X', 2018-01-05 10:14:37 Output: 'HOST_ADDRESS_6' => '', 2018-01-05 10:14:37 Output: 'SHORTDATETIME' => '2018-01-05 10:14:36', 2018-01-05 10:14:37 Output: 'CONTACTS' => 'Outside_contact,gtsms,afsms,omdadmin', 2018-01-05 10:14:37 Output: 'LASTSERVICEOK' => '1515140015', 2018-01-05 10:14:37 Output: 'LONGSERVICEOUTPUT' => 'aaaaaaaaa', 2018-01-05 10:14:37 Output: 'HOST_ADDRESS_4' => 'X.X.X.X', 2018-01-05 10:14:37 Output: 'DATE' => '2018-01-05', 2018-01-05 10:14:37 Output: 'SERVICEDESC' => 'Description of service', 2018-01-05 10:14:37 Output: 'MICROTIME' => '1515140077389183', 2018-01-05 10:14:37 Output: 'HOSTNAME' => 'host1', 2018-01-05 10:14:37 Output: 'HOSTNOTIFICATIONNUMBER' => '1', 2018-01-05 10:14:37 Output: 'PARAMETER_PASSWORD' => 'password', 2018-01-05 10:14:37 Output: 'HOSTPERFDATA' => 'rta=0.154ms;200.000;500.000;0; pl=0%;80;100;; rtmax=0.186ms;;;; rtmin=0.144ms;;;;', 2018-01-05 10:14:37 Output: 'LOGDIR' => '/omd/sites/site/var/check_mk/notify', 2018-01-05 10:14:37 Output: 'PREVIOUSSERVICEHARDSTATE' => 'OK', 2018-01-05 10:14:37 Output: 'HOSTSHORTSTATE' => 'UP', 2018-01-05 10:14:37 Output: 'SERVICEPERFDATA' => '', 2018-01-05 10:14:37 Output: 'SERVICEOUTPUT_HTML' => 'UNKNOWN - check failed - please submit a crash report!', 2018-01-05 10:14:37 Output: 'HOSTURL' => '/check_mk/index.py?start_url=view.py%3Fview_name%3Dhoststatus%26host%3Dhost1', 2018-01-05 10:14:37 Output: 'HOSTOUTPUT_HTML' => 'OK - X.X.X.X: rta 0.154ms, lost 0%', 2018-01-05 10:14:37 Output: 'PARAMETER_USER' => 'nagios', 2018-01-05 10:14:37 Output: 'SERVICEPROBLEMID' => '78356', 2018-01-05 10:14:37 Output: 'SERVICEURL' => '/check_mk/index.py?start_url=view.py%3Fview_name%3Dservice%26host%3DOrama1%26service%3Locks', 2018-01-05 10:14:37 Output: 'NOTIFICATIONAUTHOR' => '', 2018-01-05 10:14:37 Output: 'CONTACTNAME' => 'fylakio', 2018-01-05 10:14:37 Output: 'SERVICECHECKCOMMAND' => 'check_mk-check', 2018-01-05 10:14:37 Output: 'MAIL_COMMAND' => 'mail -s \'$SUBJECT$\' \'$CONTACTEMAIL$\'', 2018-01-05 10:14:37 Output: 'HOSTGROUPNAMES' => 'Servers', 2018-01-05 10:14:37 Output: 'PARAMETER_SERVICE_MESSAGE' => 'SERVICE: $HOSTNAME$/$SERVICEDESC$ - $SERVICESTATE$ 2018-01-05 10:14:37 Output: Plugin Output: $SERVICEOUTPUT$ 2018-01-05 10:14:37 Output: Link: $SERVICEURL$ 2018-01-05 10:14:37 Output: ', 2018-01-05 10:14:37 Output: 'LONGDATETIME' => 'Fri Jan 5 10:14:36 EET 2018', 2018-01-05 10:14:37 Output: 'SERVICESTATE' => 'UNKNOWN', 2018-01-05 10:14:37 Output: 'CONTACTEMAIL' => '', 2018-01-05 10:14:37 Output: 'LASTSERVICESTATE' => 'OK', 2018-01-05 10:14:37 Output: 'HOSTACKCOMMENT' => '', 2018-01-05 10:14:37 Output: 'HOSTFORURL' => 'server1', 2018-01-05 10:14:37 Output: 'HOSTTAGS' => '/wato/parents/windows/orama_servers/ cmk-agent critical ip-v4 ip-v4-only lan site:site tcp wato', 2018-01-05 10:14:37 Output: 'LASTHOSTSTATEID' => '0', 2018-01-05 10:14:37 Output: 'SERVICENOTIFICATIONNUMBER' => '1', 2018-01-05 10:14:37 Output: 'LONGHOSTOUTPUT' => '', 2018-01-05 10:14:37 Output: 'SVC_SL' => '$_SERVICEEC_SL$', 2018-01-05 10:14:37 Output: 'PREVIOUSSERVICEHARDSHORTSTATE' => 'OK', 2018-01-05 10:14:37 Output: 'CONTACTPAGER' => '', 2018-01-05 10:14:37 Output: 'HOST_ADDRESS_FAMILY' => '4', 2018-01-05 10:14:37 Output: 'PARAMETER_XMPPSERVER' => 'X.X.X.X', 2018-01-05 10:14:37 Output: 'WHAT' => 'SERVICE', 2018-01-05 10:14:37 Output: 'HOSTSTATE' => 'UP', 2018-01-05 10:14:37 Output: 'LASTSERVICESHORTSTATE' => 'OK', 2018-01-05 10:14:37 Output: 'HOST_SL' => '$_HOSTEC_SL$', 2018-01-05 10:14:37 Output: 'SERVICESTATEID' => '3', 2018-01-05 10:14:37 Output: 'HOSTSTATEID' => '0', 2018-01-05 10:14:37 Output: 'PREVIOUSHOSTHARDSTATE' => 'UP', 2018-01-05 10:14:37 Output: 'SERVICESHORTSTATE' => 'UNKN', 2018-01-05 10:14:37 Output: 'HOST_EC_CONTACT' => '$_HOSTEC_CONTACT$', 2018-01-05 10:14:37 Output: 'HOSTDOWNTIME' => '0', 2018-01-05 10:14:37 Output: 'LASTSERVICESTATEID' => '0', 2018-01-05 10:14:37 Output: 'PARAMETER_DEBUG' => 'yes', 2018-01-05 10:14:37 Output: 'LASTHOSTSTATE' => 'UP', 2018-01-05 10:14:37 Output: 'LASTHOSTUP' => '1515140052', 2018-01-05 10:14:37 Output: 'NOTIFICATIONTYPE' => 'PROBLEM', 2018-01-05 10:14:37 Output: 'OMD_SITE' => 'site', 2018-01-05 10:14:37 Output: 'LASTHOSTSTATECHANGE_REL' => '41d 02:48:42', 2018-01-05 10:14:37 Output: 'CONTACTALIAS' => 'Fylakio', 2018-01-05 10:14:37 Output: 'LASTSERVICESTATECHANGE' => '1515140076', 2018-01-05 10:14:37 Output: 'CONTACT_XMPP' => '[email protected]', 2018-01-05 10:14:37 Output: 'LASTHOSTSTATECHANGE' => '1511587555', 2018-01-05 10:14:37 Output: 'LASTHOSTSHORTSTATE' => 'UP', 2018-01-05 10:14:37 Output: 'LONGSERVICEOUTPUT_HTML' => \n', 2018-01-05 10:14:37 Output: 'SERVICEATTEMPT' => '1', 2018-01-05 10:14:37 Output: 'HOSTALIAS' => 'Server1', 2018-01-05 10:14:37 Output: 'SERVICE_EC_CONTACT' => '$_SERVICEEC_CONTACT$', 2018-01-05 10:14:37 Output: 'NOTIFICATIONAUTHORNAME' => '', 2018-01-05 10:14:37 Output: 'HOSTACKAUTHOR' => '', 2018-01-05 10:14:37 Output: 'SERVICEACKCOMMENT' => '', 2018-01-05 10:14:37 Output: 'OMD_ROOT' => '/omd/sites/site', 2018-01-05 10:14:37 Output: 'PARAMETER_HOST_MESSAGE' => 'HOST: $HOSTNAME$ - $HOSTSTATE$ 2018-01-05 10:14:37 Output: Plugin Output: $HOSTOUTPUT$ 2018-01-05 10:14:37 Output: Link: $HOSTURL$ 2018-01-05 10:14:37 Output: ', 2018-01-05 10:14:37 Output: 'MONITORING_HOST' => 'monitor' 2018-01-05 10:14:37 Output: }; 2018-01-05 10:14:37 Output: D-main: setting Timout for the notification handler - 3s at /omd/sites/site/local/share/check_mk/notifications/xmpp.pl line 209. 2018-01-05 10:14:37 Output: D-substiture_context: substitute the following string: 'SERVICE: $HOSTNAME$/$SERVICEDESC$ - $SERVICESTATE$ 2018-01-05 10:14:37 Output: Plugin Output: $SERVICEOUTPUT$ 2018-01-05 10:14:37 Output: Link: $SERVICEURL$ 2018-01-05 10:14:37 Output: ' at /omd/sites/site/local/share/check_mk/notifications/xmpp.pl line 29. 2018-01-05 10:14:37 Output: D-substiture_context: to: 'SERVICE: service - UNKNOWN 2018-01-05 10:14:37 Output: Plugin Output: UNKNOWN - check failed - please submit a crash report! 2018-01-05 10:14:37 Output: Link: /check_mk/index.py?start_url=view.py%3Fview_name%3Dservice%26host%3DOrama1%26service%3Locks 2018-01-05 10:14:37 Output: ' at /omd/sites/site/local/share/check_mk/notifications/xmpp.pl line 53. 2018-01-05 10:14:37 Output: D-substiture_context: substitute the following string: 'SERVICE: $HOSTNAME$/$SERVICEDESC$ - $SERVICESTATE$ 2018-01-05 10:14:37 Output: Plugin Output: $SERVICEOUTPUT$ 2018-01-05 10:14:37 Output: Link: $SERVICEURL$ 2018-01-05 10:14:37 Output: ' at /omd/sites/site/local/share/check_mk/notifications/xmpp.pl line 29. 2018-01-05 10:14:37 Output: D-substiture_context: to: 'SERVICE: <b>service1</b>/<b>ORA ORAMADB1 Locks</b> - <b><span style='color: #FFE0A0;'>UNKNOWN</span></b><br/> 2018-01-05 10:14:37 Output: Plugin Output: <b><span style='color: #FFE0A0;'>UNKNOWN</span> - check failed - please submit a crash report!</b><br/> 2018-01-05 10:14:37 Output: Link: <b>/check_mk/index.py?start_url=view.py%3Fview_name%3Dservice%26host%3Locks</b><br/> 2018-01-05 10:14:37 Output: ' at /omd/sites/site/local/share/check_mk/notifications/xmpp.pl line 53. 2018-01-05 10:14:37 Output: D-main: constructed the following message to be sent: 2018-01-05 10:14:37 Output: <active xmlns='http://jabber.org/protocol/chatstates'/> 2018-01-05 10:14:37 Output: <body>SERVICE: service1 - UNKNOWN 2018-01-05 10:14:37 Output: Plugin Output: UNKNOWN - check failed - please submit a crash report! 2018-01-05 10:14:37 Output: Link: /check_mk/index.py?start_url=view.py%3Fview_name%3Dservice%26host%3Locks 2018-01-05 10:14:37 Output: </body> 2018-01-05 10:14:37 Output: <html xmlns='http://jabber.org/protocol/xhtml-im'> 2018-01-05 10:14:37 Output: <body xmlns='http://www.w3.org/1999/xhtml'> 2018-01-05 10:14:37 Output: <p> 2018-01-05 10:14:37 Output: SERVICE: <b>Orama1</b>/<b> Locks</b> - <b><span style='color: #FFE0A0;'>UNKNOWN</span></b><br/> 2018-01-05 10:14:37 Output: Plugin Output: <b><span style='color: #FFE0A0;'>UNKNOWN</span> - check failed - please submit a crash report!</b><br/> 2018-01-05 10:14:37 Output: Link: <b>/check_mk/index.py?start_url=view.py%3Fview_name%3Dservice%26host%3%26service%20%20Locks</b><br/> 2018-01-05 10:14:37 Output: </p> 2018-01-05 10:14:37 Output: </body> 2018-01-05 10:14:37 Output: </html> at /omd/sites/site/local/share/check_mk/notifications/xmpp.pl line 231. 2018-01-05 10:14:37 Output: Argument "yes" isn't numeric in numeric ge (>=) at /usr/local/share/perl/5.18.2/Net/XMPP/Debug.pm line 205. 2018-01-05 10:14:37 Output: D-xmpp_login: loging in with this arguments: 2018-01-05 10:14:37 Output: $VAR1 = { 2018-01-05 10:14:37 Output: 'ssl_verify' => 0, 2018-01-05 10:14:37 Output: 'srv' => 1, 2018-01-05 10:14:37 Output: 'connectiontype' => 'tcpip', 2018-01-05 10:14:37 Output: 'componentname' => 'site', 2018-01-05 10:14:37 Output: 'hostname' => 'X.X.X.X', 2018-01-05 10:14:37 Output: 'port' => 5222 2018-01-05 10:14:37 Output: }; 2018-01-05 10:14:37 Output: D-xmpp_check_result: Connect: 1 at /omd/sites/site/local/share/check_mk/notifications/xmpp.pl line 94. 2018-01-05 10:14:37 Output: D-xmpp_check_result: AuthSend: ok at /omd/sites/site/local/share/check_mk/notifications/xmpp.pl line 94. 2018-01-05 10:14:38 Output: Disconnect. at /omd/sites/site/local/share/check_mk/notifications/xmpp.pl line 116.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.