Skip to content

Commit 43b3784

Browse files
committed
Add icinga2 example
1 parent 3296787 commit 43b3784

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ Then copy the file to your plugin dir:
2828
cp check_vmware_nsxt.py /usr/lib*/nagios/plugins/check_vmware_nsxt
2929
chmod 755 /usr/lib*/nagios/plugins/check_vmware_nsxt
3030

31+
Also see the [Icinga 2 example command](icinga2/command.conf).
32+
3133
## Usage
3234

3335
```

icinga2/command.conf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
object CheckCommand "vmware_nsxt" {
2+
import "plugin-check-command"
3+
4+
command = [ PluginDir + "/check_vmware_nsxt" ]
5+
6+
arguments += {
7+
"--api" = "$vmware_nsx_api$"
8+
"--mode" = "$vmware_nsx_mode$"
9+
"--password" = "$vmware_nsx_password$"
10+
"--username" = "$vmware_nsx_username$"
11+
}
12+
13+
vars.vmware_nsx_api = "https://$host.name$"
14+
vars.vmware_nsx_mode = "alarms"
15+
}

0 commit comments

Comments
 (0)