Commit Graph

173 Commits

Author SHA1 Message Date
Georg Haas 3c05885638 ITL: check_icmp: add missing TTL attribute
fixes #4964

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
2017-02-07 16:59:38 +01:00
Christian Loos 584be4fe52 Add "-N" parameter for the "ssl" check command
Without this, we check the wrong cert when SNI is used:

./check_tcp -H git.netsandbox.de -p 443 -D 30,10
OK - Certificate 'netsandbox.de' will expire on 2017-04-19 12:01
+0200/CEST.

./check_tcp -H git.netsandbox.de -p 443 -D 30,10 -N git.netsandbox.de
OK - Certificate 'git.netsandbox.de' will expire on 2017-04-15 14:06
+0200/CEST.

fixes #4936

Signed-off-by: Gunnar Beutner <gunnar.beutner@icinga.com>
2017-02-07 10:57:45 +01:00
Michael Friedrich b7caf0820d Ensure that *.icinga.com is used everywhere
fixes #13897
fixes #13277
2017-01-10 17:19:12 +01:00
Jean-Louis Dupond 8cb7a54b89 ITL: Add sudo option for mailq CheckCommand
fixes #13435

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
2016-12-06 18:03:46 +01:00
Patrick Huy 8ccc4da942 ITL: Add verbose parameter for http CheckCommand
fixes #13433

Signed-off-by: Michael Friedrich <michael.friedrich@icinga.com>
2016-12-06 17:58:35 +01:00
Gunnar Beutner 22fa4773df Remove unnecessary template imports in the ITL
refs #12575
2016-11-24 09:39:49 +01:00
Gunnar Beutner fc34afbbeb Fix indentation for the snmpv3 check command definition
refs #12838
2016-10-11 12:43:33 +02:00
Peter Eckel d1f5118c55 Add missing '-m' (snmpv3_miblist) and -p (snmpv3_port) options
The options for setting an explicit MIB list and for specifying the target
port that are present for the snmp CheckCommand object that were missing from
the snmpv3 CheckCommand object are added with this patch.

fixes #12838

Signed-off-by: Gunnar Beutner <gunnar.beutner@icinga.com>
2016-10-11 12:42:54 +02:00
Gunnar Beutner fa5036eae4 Fix incorrect default arguments for check_swap
fixes #12849
2016-10-04 13:56:54 +02:00
Mathieu Arnold be44ff720c Add check command definition for check_radius
fixes #12762

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2016-09-29 08:42:00 +02:00
Daniel Helgenberger e1369b2be3 Remove inode default values for the "disk" check command
Free inode check is a an optional argument and does make sense in most
cases, yet not in every case. Eg, XFS and filesystems alike dynamically
allocate inodes; prompting failures. Because they are definded by
default, inode crit and warn cannot be unset any more.

fixes #12588

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2016-08-29 18:06:53 +02:00
Gunnar Beutner 78cd56e277 Implement support for default templates
fixes #12575
2016-08-28 10:27:43 +02:00
Evgeni Golov 551864b314 Fix description of -a and -n for check_swap
fixes #12570

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2016-08-28 08:02:08 +02:00
Gunnar Beutner b7ef02f8c8 Fix: ITL uses unsupported arguments for check_swap on Debian wheezy/Ubuntu trusty
fixes #12485
2016-08-19 03:28:08 +02:00
Michael Friedrich c7af804cfd ITL: Fix the description for http_certificate
fixes #12416
2016-08-13 15:50:45 +02:00
Michael Friedrich 3454cf88a7 Add documentation for swap CheckCommand parameters
fixes #12392
2016-08-12 15:08:35 +02:00
Jean-Louis Dupond 9517abba84 Add vars for all check_swap args
fixes #12392

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2016-08-10 14:52:31 +02:00
Bård Dahlmo-Lerbæk 39890c00c0 Fix incorrect custom variable name for the -q option for ntp_time.
fixes #12274

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2016-08-09 10:43:55 +02:00
Christian Birk 98a97026f4 Add "check_mysql_query" CheckCommand definition
fixes #12314

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2016-08-08 15:16:38 +02:00
Mirko Nardin 52f83ca7e6 Add the "-e" parameter for the SNMP check command
fixes #11359

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2016-08-05 14:50:44 +02:00
Dirk Goetz 03b8514606 Add a check command for check_breeze
Add a check command for check_flexlm
Add a check command for check_game

refs #6225
2016-08-03 11:32:41 +02:00
Dirk Goetz a8b7bdc633 Add a check command for check_ide_smart
refs #6225
2016-08-03 11:32:41 +02:00
Dirk Goetz c999badd14 Add a check command for check_file_age.
Add a deprecation note for check_ldaps to check_ldap.

refs #6225
2016-08-03 11:32:41 +02:00
Gunnar Beutner 7a7a8c7779 Add "fuse.gvfsd-fuse" to the list of excluded file systems for check_disk
fixes #11887
2016-06-06 09:55:46 +02:00
Michael Friedrich 9baa08d24a 'disk' CheckCommand: Exclude 'cgroup' and 'tracefs' by default
fixes #11720
2016-05-06 16:05:40 +02:00
Michael Friedrich b83a88ac05 Add --units, --rate and --rate-multiplier support for the snmpv3 check command
fixes #11194
2016-03-18 12:26:54 +01:00
Michael Friedrich d8b70f8ae1 ITL: Add additional http check command parameters for SSL version enforcement
refs #10358
2016-03-15 15:26:22 +01:00
Brian De Wolf 2e1a2146f1 ITL: add check_http args for SSL version forcing
The -S argument of check_http can take a number, which forces the connection to
use a specific SSL version.  This is implemented as multiple options because
check_http does not accept the number following -S if they are separated.

fixes #10358

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2016-02-24 23:38:22 +01:00
Jean Flach 299b62adcf Add -f option to check_disk CheckCommand
fixes #11138
2016-02-12 10:22:15 +01:00
Sebastian Brückner 46000497cf Add timeout to snmpv3 check
Signed-off-by: Jean Flach <jean-marcel.flach@netways.de>

fixes #10920
2016-01-14 17:50:37 +01:00
Gunnar Beutner 599929b0f6 Update copyright headers for 2016 2016-01-12 08:29:59 +01:00
Sebastian Chrostek ab9218e801 Add ipv4 / ipv6 support for all monitoring-plugins
Add some options to check_smtp/check_ssmtp/check_imap/check_simap/check_pop/check_spop

Refs #10669

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-11-30 08:36:36 +01:00
Gunnar Beutner e62ade5034 Fix indentation in command-plugins.conf
fixes #10667
2015-11-20 10:48:48 +01:00
Bruno Lingner e02d2e1af1 Add by_ssh_options argument for the check_by_ssh plugin
fixes #10622

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-11-18 20:29:30 +01:00
Michael Friedrich 6004ab6c31 ITL: Increase the default timeout for OS checks (update-windows, yum, apt)
fixes #10504
2015-11-06 15:41:54 +01:00
Jo Goossens 8a677277a5 ITL: Add missing check_apt arguments
refs #10504

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-11-06 15:37:56 +01:00
Sebastian Chrostek a2c09a122b Add ipv4/ipv6 only to tcp, udp and http CheckCommand
fixes #10513

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-11-02 08:32:04 +01:00
Lennart Betz 5c8386b388 Add check command negate.
fixes #10507

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-11-01 14:01:32 +01:00
Lennart Betz cdfc283395 Add check command mysql
fixes #10511

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-11-01 13:55:15 +01:00
Gunnar Beutner 4cf4ffe893 Fix: 'dig_lookup' custom attribute for the 'dig' check command isn't optional
fixes #10433
2015-10-22 14:53:58 +02:00
Dinesh Majrekar f426f3690b Add snmp_port custom attribute for the SNMP check command definitions
fixes #10423

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-10-21 18:05:01 +02:00
Michael Friedrich 464e7f0e9f Add timeout argument for pop, spop, imap, simap commands
fixes #10219
2015-10-15 15:13:24 +02:00
Lennart Betz e17facfd57 Add missing options to check command dig
fixes #10139

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-09-12 20:54:24 +02:00
Lennart Betz 5a118bd6ea add check command for plugin check_pgsql
fixes #10112

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-09-12 20:52:38 +02:00
Sebastian Chrostek f66b9bbf1e ITL: Add ipv4/ipv6 only to nrpe check command
fixes #10129

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-09-10 09:14:40 +02:00
Gunnar Beutner 63a1ff77c3 Implement the resolve_arguments function
fixes #10006
2015-08-27 09:02:21 +02:00
Petr Ruzicka 04177cb736 ITL: Improve snmpv3 CheckCommand section
fixes #9827

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-08-07 13:32:49 +02:00
Lennart Betz 6a2b695666 ITL: Add check command check_mailq
fixes #9811

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-08-03 16:37:59 +02:00
Lennart Betz bb0ce0e698 ITL: Add check command check_clamd
fixes #9747

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-08-03 16:26:04 +02:00
Petr Ruzicka 660ffe9da7 Add "-r" parameter to the check_load command for dividing the load averages by the number of CPUs
New variable "load_percpu" added to use when "-r" should be added for the check_load command.

fixes #9699

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-07-22 10:05:50 +02:00
Jérôme Drouet 95914ea31f Enable inode check on disk by default
fixes #9666

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-07-20 07:49:14 +02:00
Lennart Betz 219631fbae ITL: Add missing 'smtp' CheckCommand parameters
fixes #9578

Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
2015-07-07 21:20:21 +02:00
Lennart Betz 0ab467c6b2 ITL: Add missing options to 'ntp_time' CheckCommand
fixes #9562

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-07-06 17:12:04 +02:00
Lennart Betz 1a06333b86 ITL: Add CheckCommand ntp_peer
fixes #9523

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-07-06 16:59:58 +02:00
Christian Lehmann 2a6c0d87af ITL: Add securityLevel to snmpv3 CheckCommand
For example if using snmpv3 without encryption.
Defaults set to privAuth to stay compatible to older versions.

fixes #9416

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-06-17 15:27:45 +02:00
Michael Friedrich 4a27e4db61 Fix wrong check parameter in 'tcp' CheckCommand
refs #9147
2015-06-15 11:29:44 +02:00
Michael Friedrich 364a0888a5 Add 'disk_smb' Plugin CheckCommand definition
fixes #9254
2015-05-12 14:46:45 +02:00
Ralph Breier 9fbf99c982 Fix problem with option order of disk_wfree and disk_cfree
If using the -r/-R option with check_disk, the command  expects the
warning and critical threshold on the left side of its position.
With order = -3 will be moved to the first position of all options.

fixes #9161

Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
2015-05-05 18:39:29 +02:00
Michael Friedrich 74d75c5d2a Move 'runing_kernel' check command to plugins-contrib 'operating system' section
fixes #9175
2015-04-25 13:42:04 +02:00
Michael Friedrich afb70a216e ITL: Add missing 'ldap' command arguments
refs #9172
2015-04-25 13:35:59 +02:00
Élie Bouttier fb820f6b7c ITL: Add "ldap" CheckCommand
refs #9172

Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
2015-04-25 13:11:49 +02:00
Lee Clemens 5adba6c4fe Terminate string literals
refs #9147

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-04-24 08:30:09 +02:00
Tobias von der Krone 612882e4d9 Add arguments to "tcp" CheckCommand
fixes #9147

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-04-22 21:49:41 +02:00
Tobias von der Krone 636bbcedca Add attributes to the "ftp" CheckCommand.
fixes #9146

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-04-22 21:48:49 +02:00
Tobias von der Krone 29a9977c82 Add attributes to the "dns" CheckCommand
fixes #9145

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-04-22 21:48:28 +02:00
Dirk Goetz 2932e01afa ITL: Add 'SHOWALL' command argument for 'nscp'
fixes #9115

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-04-20 14:19:09 +02:00
Louis Sautier 9a3326fe66 Fix order of check_disk's ignored paths arguments
fixes #9049

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2015-04-15 11:24:08 +02:00
Gunnar Beutner 1747e580b2 Fix incorrect macro string
refs #8881
2015-03-27 14:29:36 +01:00
Louis Sautier 0779d2c44b Add all missing UPS check parameters
fixes #8881

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-03-27 12:58:05 +01:00
Michael Friedrich aaafbcbbac Fix wrong 'dns_lookup' custom attribute default
fixes #8862
2015-03-25 11:44:54 +01:00
Louis Sautier afc38762ef Fix check_disk default thresholds and document the change of unit
fixes #8673

Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
2015-03-10 23:49:23 +01:00
Louis Sautier 3adc605bef Fix check_disk thresholds: make sure partitions are the last arguments
fixes #8658

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-03-09 15:32:24 +01:00
Gunnar Beutner 89d1c908cd Replace spaces with tabs in command-plugins.conf
fixes #8520
2015-02-24 21:58:20 +01:00
Dolf Schimmel (Freeaqingme) 96ad5287dc ITL: Add support for GETNEXT in SNMP CheckCommand
refs #8498

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-02-24 21:49:28 +01:00
Dolf Schimmel (Freeaqingme) 73e0987600 ITL: Implement various options for the 'snmp' CheckCommand, including mib-list
refs #8498

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-02-24 21:47:20 +01:00
Gunnar Beutner 1e4c5cf2f2 Add more arguments for the 'udp' check command
fixes #8410
2015-02-23 13:54:18 +01:00
Gunnar Beutner 1f05cc23d1 Wrap IPv6 addresses in udp6:[<addr>] for check_snmp
refs #8259
2015-02-13 12:11:53 +01:00
Gunnar Beutner bb033b5ce3 Fall back to using address6 when the address attribute is not set
fixes #8259
2015-02-13 11:52:50 +01:00
Gunnar Beutner e3edcfddde Fix incorrect macro name in the disk check command
refs #8316
2015-02-12 09:24:28 +01:00
Gunnar Beutner c2e597b494 Add a few more file system types which are ignored by default
refs #8316
2015-02-12 09:15:46 +01:00
Gunnar Beutner f8bcc9c83f Add command definition for check_icmp
fixes #7873
2015-02-05 17:05:00 +01:00
Gunnar Beutner 8d551fa99f Add a check command for check_hpjd
refs #6225
2015-02-02 10:57:21 +01:00
Blerim Sheqa bda2f87759 Add missing arguments for the "disk" check command
fixes #8316

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
2015-01-30 12:18:12 +01:00
Michael Friedrich 78bfd0204c Update copyright year 2015-01-22 12:00:23 +01:00
Edvin Seferovic a58290dd40 Removed mail_from from check_ssmtp command.
Monitoring Plugin ssmtp has no "-f" switch. Command and documentation changed.

Fixes #8245
PR #22

Signed-off-by: Markus Frosch <markus@lazyfrosch.de>

Conflicts:
	doc/7-configuring-icinga-2.md
2015-01-21 21:14:22 +01:00
Steve McMaster ae95918da0 Add -t options to "snmp" and "snmp-manubulon-command" CheckCommand objects
fixes #8075

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2014-12-12 18:10:35 +01:00
Michael Friedrich 842b3a9cd7 Documentation: Explain macro array support, repeat_key, add icmp example
fixes #7868
fixes #7867
2014-11-27 16:59:17 +01:00
Gunnar Beutner 9dfa3d22d4 Implement support for arrays in command arguments
fixes #6709
2014-11-27 13:24:07 +01:00
Carlos Cesario 443ae0f298 Add label option to snmp ckecks
Add label option to snmpv3 and snmp snmp-interface commands. Based on attached files to ticket #7545.

fixes #7545

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
2014-11-26 20:40:55 +01:00
Gunnar Beutner 6f4ae74e1e Increase default timeout for NRPE checks
fixes #7747
2014-11-21 22:05:33 +01:00
Michael Friedrich a10107c540 Plugin Check Commands: disk is missing '-p', 'x' parameter
fixes #7596
2014-11-06 14:22:00 +01:00
Michael Friedrich 38b994d9cd Plugin Check Commands: Fix wrong set_if in http command
refs #7302
2014-10-11 19:30:53 +02:00
Dirk Goetz e0941027ea Plugin Check Commands: Extend check_procs and check_http arguments
fixes #7302

Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
2014-10-11 19:15:55 +02:00
Tobias von der Krone 58a84c9344 Move fping_address to command array because it must always be the first argument
fixes #7168
2014-09-11 09:34:20 +02:00
Gaël Beaudoin 87d789ad8b Add the --timeout parameter to the check_ssh / ssh CheckCommand
fixes #6791

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2014-07-30 14:16:10 +02:00
Gunnar Beutner 4c8eb819e4 Remove set_if attribute for the ssl check
fixes #6782
2014-07-23 09:37:04 +02:00
Gunnar Beutner abc3869218 Fix order attribute for the ssh check command
fixes #6773
2014-07-21 15:09:01 +02:00
Gunnar Beutner 263f198992 Require command to be an array when the arguments attribute is used
fixes #6698
2014-07-16 13:01:55 +02:00
Carlos Cesario dd1646f78d Add http expect option (-e) to check_http command
fixes #6695

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
2014-07-12 17:17:48 +02:00
Gunnar Beutner 5fb52a4e48 Remove superfluous quotes and commas in dictionaries
fixes #6687
2014-07-11 14:38:15 +02:00