Merge pull request #10261 from n-rodriguez/wip/unplugged_nics_state

ITL vmware-esx-soap-host-net{,-nic}: Add missing option "--unplugged_nics_state"
This commit is contained in:
alvar 2025-01-08 09:03:33 +00:00 committed by GitHub
commit c5963712fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 45 additions and 34 deletions

View File

@ -213,6 +213,7 @@ nemtrif <ntrifunovic@hotmail.com>
Nicolai <nbuchwitz@users.noreply.github.com> Nicolai <nbuchwitz@users.noreply.github.com>
Nicolas Berens <nicolas.berens@planet.com> Nicolas Berens <nicolas.berens@planet.com>
Nicolas Limage <github@xephon.org> Nicolas Limage <github@xephon.org>
Nicolas Rodriguez <nico@nicoladmin.fr>
Nicole Lang <nicole.lang@icinga.com> Nicole Lang <nicole.lang@icinga.com>
Niflou <dubuscyr@gmail.com> Niflou <dubuscyr@gmail.com>
Noah Hilverling <noah.hilverling@icinga.com> Noah Hilverling <noah.hilverling@icinga.com>

View File

@ -4394,7 +4394,7 @@ Check command object for the `check_vmware_esx` plugin. Shows net info.
Custom variables passed as [command parameters](03-monitoring-basics.md#command-passing-parameters): Custom variables passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
Name | Description Name | Description
------------------------|-------------- ----------------------------|--------------
vmware_host | **Required.** ESX or ESXi hostname. vmware_host | **Required.** ESX or ESXi hostname.
vmware_datacenter | **Optional.** Datacenter/vCenter hostname. In case the check is done through a Datacenter/vCenter host. vmware_datacenter | **Optional.** Datacenter/vCenter hostname. In case the check is done through a Datacenter/vCenter host.
vmware_sslport | **Optional.** SSL port connection. Defaults to "443". vmware_sslport | **Optional.** SSL port connection. Defaults to "443".
@ -4410,6 +4410,7 @@ vmware_password | **Optional.** The username's password. No value define
vmware_authfile | **Optional.** Use auth file instead username/password to session connect. No effect if **vmware_username** and **vmware_password** are defined <br> **Authentication file content:** <br> username=vmuser <br> password=p@ssw0rd vmware_authfile | **Optional.** Use auth file instead username/password to session connect. No effect if **vmware_username** and **vmware_password** are defined <br> **Authentication file content:** <br> username=vmuser <br> password=p@ssw0rd
vmware_exclude | **Optional.** Blacklist NICs. No value defined as default. vmware_exclude | **Optional.** Blacklist NICs. No value defined as default.
vmware_isregexp | **Optional.** Treat blacklist expression as regexp. vmware_isregexp | **Optional.** Treat blacklist expression as regexp.
vmware_unplugged_nics_state | **Optional.** Sets status for unplugged nics (Possible values are: [OK | ok] or [CRITICAL | critical | CRIT | crit] or [WARNING | warning | WARN | warn]. Default is WARNING. Values are case insensitive.)
**vmware-esx-soap-host-net-usage** **vmware-esx-soap-host-net-usage**
@ -4494,7 +4495,7 @@ Check command object for the `check_vmware_esx` plugin. Check all active NICs.
Custom variables passed as [command parameters](03-monitoring-basics.md#command-passing-parameters): Custom variables passed as [command parameters](03-monitoring-basics.md#command-passing-parameters):
Name | Description Name | Description
------------------------|-------------- ----------------------------|--------------
vmware_host | **Required.** ESX or ESXi hostname. vmware_host | **Required.** ESX or ESXi hostname.
vmware_datacenter | **Optional.** Datacenter/vCenter hostname. In case the check is done through a Datacenter/vCenter host. vmware_datacenter | **Optional.** Datacenter/vCenter hostname. In case the check is done through a Datacenter/vCenter host.
vmware_sslport | **Optional.** SSL port connection. Defaults to "443". vmware_sslport | **Optional.** SSL port connection. Defaults to "443".
@ -4510,6 +4511,7 @@ vmware_password | **Optional.** The username's password. No value define
vmware_authfile | **Optional.** Use auth file instead username/password to session connect. No effect if **vmware_username** and **vmware_password** are defined <br> **Authentication file content:** <br> username=vmuser <br> password=p@ssw0rd vmware_authfile | **Optional.** Use auth file instead username/password to session connect. No effect if **vmware_username** and **vmware_password** are defined <br> **Authentication file content:** <br> username=vmuser <br> password=p@ssw0rd
vmware_exclude | **Optional.** Blacklist NICs. No value defined as default. vmware_exclude | **Optional.** Blacklist NICs. No value defined as default.
vmware_isregexp | **Optional.** Treat blacklist expression as regexp. vmware_isregexp | **Optional.** Treat blacklist expression as regexp.
vmware_unplugged_nics_state | **Optional.** Sets status for unplugged nics (Possible values are: [OK | ok] or [CRITICAL | critical | CRIT | crit] or [WARNING | warning | WARN | warn]. Default is WARNING. Values are case insensitive.)
**vmware-esx-soap-host-volumes** **vmware-esx-soap-host-volumes**

View File

@ -421,6 +421,10 @@ object CheckCommand "vmware-esx-soap-host-net" {
"--isregexp" = { "--isregexp" = {
set_if = "$vmware_isregexp$" set_if = "$vmware_isregexp$"
} }
"--unplugged_nics_state" = {
value = "$vmware_unplugged_nics_state$"
description = "Sets status for unplugged nics (Possible values are: [OK | ok] or [CRITICAL | critical | CRIT | crit] or [WARNING | warning | WARN | warn]. Default is WARNING. Values are case insensitive.)"
}
} }
} }
@ -467,6 +471,10 @@ object CheckCommand "vmware-esx-soap-host-net-nic" {
"--isregexp" = { "--isregexp" = {
set_if = "$vmware_isregexp$" set_if = "$vmware_isregexp$"
} }
"--unplugged_nics_state" = {
value = "$vmware_unplugged_nics_state$"
description = "Sets status for unplugged nics (Possible values are: [OK | ok] or [CRITICAL | critical | CRIT | crit] or [WARNING | warning | WARN | warn]. Default is WARNING. Values are case insensitive.)"
}
} }
} }