NVIDIA GPU loadable plugin
Source
1
1
/*
2
-
TODO: Add Apache-2.0 licence
3
-
*/
2
+
** Copyright 2001-2024 Zabbix SIA
3
+
**
4
+
** Licensed under the Apache License, Version 2.0 (the "License");
5
+
** you may not use this file except in compliance with the License.
6
+
** You may obtain a copy of the License at
7
+
**
8
+
** http://www.apache.org/licenses/LICENSE-2.0
9
+
**
10
+
** Unless required by applicable law or agreed to in writing, software
11
+
** distributed under the License is distributed on an "AS IS" BASIS,
12
+
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+
** See the License for the specific language governing permissions and
14
+
** limitations under the License.
15
+
**/
4
16
5
17
package main
6
18
7
19
import (
8
20
"errors"
9
21
"fmt"
10
22
"os"
11
23
12
24
"golang.zabbix.com/plugin/nvidia/internal/plugin"
13
25
"golang.zabbix.com/sdk/plugin/flag"
14
26
"golang.zabbix.com/sdk/zbxerr"
15
27
)
16
28
17
-
/*
18
-
TODO: Add Apache-2.0 licence
19
-
*/
20
29
const copyrightMessage = //
21
30
`
22
-
Copyright 2001-%d Zabbix SIA
31
+
Copyright 2001-%d Zabbix SIA
32
+
33
+
Licensed under the Apache License, Version 2.0 (the "License");
34
+
you may not use this file except in compliance with the License.
35
+
You may obtain a copy of the License at
36
+
37
+
http://www.apache.org/licenses/LICENSE-2.0
38
+
39
+
Unless required by applicable law or agreed to in writing, software
40
+
distributed under the License is distributed on an "AS IS" BASIS,
41
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42
+
See the License for the specific language governing permissions and
43
+
limitations under the License.
23
44
`
24
45
25
46
//nolint:gochecknoglobals,revive // required ALL_CAPS by build scripts
26
47
var (
27
48
PLUGIN_VERSION_MAJOR = 7
28
49
PLUGIN_VERSION_MINOR = 2
29
50
PLUGIN_VERSION_PATCH = 0
30
51
PLUGIN_VERSION_RC = "alpha1"
31
52
PLUGIN_LICENSE_YEAR = 2024
32
53
)