Skip to content

Commit

Permalink
Add missing option "--unplugged_nics_state" to vmware-esx-soap-host-n…
Browse files Browse the repository at this point in the history
…et and vmware-esx-soap-host-net-nic
  • Loading branch information
n-rodriguez committed Dec 3, 2024
1 parent 8f51f54 commit e881898
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 34 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ nemtrif <[email protected]>
Nicolai <[email protected]>
Nicolas Berens <[email protected]>
Nicolas Limage <[email protected]>
Nicolas Rodriguez <[email protected]>
Nicole Lang <[email protected]>
Niflou <[email protected]>
Noah Hilverling <[email protected]>
Expand Down
70 changes: 36 additions & 34 deletions doc/10-icinga-template-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -4393,23 +4393,24 @@ 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):

Name | Description
------------------------|--------------
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_sslport | **Optional.** SSL port connection. Defaults to "443".
vmware_ignoreunknown | **Optional.** Sometimes 3 (unknown) is returned from a component. But the check itself is ok. With this option the plugin will return OK (0) instead of UNKNOWN (3). Defaults to "false".
vmware_ignorewarning | **Optional.** Sometimes 2 (warning) is returned from a component. But the check itself is ok (from an operator view). With this option the plugin will return OK (0) instead of WARNING (1). Defaults to "false".
vmware_timeout | **Optional.** Seconds before plugin times out. Defaults to "90".
vmware_trace | **Optional.** Set verbosity level of vSphere API request/respond trace.
vmware_sessionfile | **Optional.** Session file name enhancement.
vmware_sessionfiledir | **Optional.** Path to store the **vmware_sessionfile** file. Defaults to "/var/spool/icinga2/tmp".
vmware_nosession | **Optional.** No auth session -- IT SHOULD BE USED FOR TESTING PURPOSES ONLY!. Defaults to "false".
vmware_username | **Optional.** The username to connect to Host or vCenter server. No value defined as default.
vmware_password | **Optional.** The username's password. No value defined as default.
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_isregexp | **Optional.** Treat blacklist expression as regexp.
Name | Description
----------------------------|--------------
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_sslport | **Optional.** SSL port connection. Defaults to "443".
vmware_ignoreunknown | **Optional.** Sometimes 3 (unknown) is returned from a component. But the check itself is ok. With this option the plugin will return OK (0) instead of UNKNOWN (3). Defaults to "false".
vmware_ignorewarning | **Optional.** Sometimes 2 (warning) is returned from a component. But the check itself is ok (from an operator view). With this option the plugin will return OK (0) instead of WARNING (1). Defaults to "false".
vmware_timeout | **Optional.** Seconds before plugin times out. Defaults to "90".
vmware_trace | **Optional.** Set verbosity level of vSphere API request/respond trace.
vmware_sessionfile | **Optional.** Session file name enhancement.
vmware_sessionfiledir | **Optional.** Path to store the **vmware_sessionfile** file. Defaults to "/var/spool/icinga2/tmp".
vmware_nosession | **Optional.** No auth session -- IT SHOULD BE USED FOR TESTING PURPOSES ONLY!. Defaults to "false".
vmware_username | **Optional.** The username to connect to Host or vCenter server. No value defined as default.
vmware_password | **Optional.** The username's password. No value defined as default.
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_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**
Expand Down Expand Up @@ -4493,23 +4494,24 @@ 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):

Name | Description
------------------------|--------------
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_sslport | **Optional.** SSL port connection. Defaults to "443".
vmware_ignoreunknown | **Optional.** Sometimes 3 (unknown) is returned from a component. But the check itself is ok. With this option the plugin will return OK (0) instead of UNKNOWN (3). Defaults to "false".
vmware_ignorewarning | **Optional.** Sometimes 2 (warning) is returned from a component. But the check itself is ok (from an operator view). With this option the plugin will return OK (0) instead of WARNING (1). Defaults to "false".
vmware_timeout | **Optional.** Seconds before plugin times out. Defaults to "90".
vmware_trace | **Optional.** Set verbosity level of vSphere API request/respond trace.
vmware_sessionfile | **Optional.** Session file name enhancement.
vmware_sessionfiledir | **Optional.** Path to store the **vmware_sessionfile** file. Defaults to "/var/spool/icinga2/tmp".
vmware_nosession | **Optional.** No auth session -- IT SHOULD BE USED FOR TESTING PURPOSES ONLY!. Defaults to "false".
vmware_username | **Optional.** The username to connect to Host or vCenter server. No value defined as default.
vmware_password | **Optional.** The username's password. No value defined as default.
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_isregexp | **Optional.** Treat blacklist expression as regexp.
Name | Description
----------------------------|--------------
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_sslport | **Optional.** SSL port connection. Defaults to "443".
vmware_ignoreunknown | **Optional.** Sometimes 3 (unknown) is returned from a component. But the check itself is ok. With this option the plugin will return OK (0) instead of UNKNOWN (3). Defaults to "false".
vmware_ignorewarning | **Optional.** Sometimes 2 (warning) is returned from a component. But the check itself is ok (from an operator view). With this option the plugin will return OK (0) instead of WARNING (1). Defaults to "false".
vmware_timeout | **Optional.** Seconds before plugin times out. Defaults to "90".
vmware_trace | **Optional.** Set verbosity level of vSphere API request/respond trace.
vmware_sessionfile | **Optional.** Session file name enhancement.
vmware_sessionfiledir | **Optional.** Path to store the **vmware_sessionfile** file. Defaults to "/var/spool/icinga2/tmp".
vmware_nosession | **Optional.** No auth session -- IT SHOULD BE USED FOR TESTING PURPOSES ONLY!. Defaults to "false".
vmware_username | **Optional.** The username to connect to Host or vCenter server. No value defined as default.
vmware_password | **Optional.** The username's password. No value defined as default.
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_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**
Expand Down
8 changes: 8 additions & 0 deletions itl/plugins-contrib.d/vmware.conf
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,10 @@ object CheckCommand "vmware-esx-soap-host-net" {
"--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.)"
}
}
}

Expand Down Expand Up @@ -467,6 +471,10 @@ object CheckCommand "vmware-esx-soap-host-net-nic" {
"--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.)"
}
}
}

Expand Down

0 comments on commit e881898

Please sign in to comment.