Example loadable plugin
Source
1
1
/*
2
2
** Copyright (C) 2001-2024 Zabbix SIA
3
3
**
4
-
** This program is free software: you can redistribute it and/or modify it under the terms of
5
-
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
4
+
** Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
5
+
** documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
6
+
** rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+
** permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
8
**
7
-
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
8
-
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9
-
** See the GNU Affero General Public License for more details.
9
+
** The above copyright notice and this permission notice shall be included in all copies or substantial portions
10
+
** of the Software.
10
11
**
11
-
** You should have received a copy of the GNU Affero General Public License along with this program.
12
-
** If not, see <https://www.gnu.org/licenses/>.
12
+
** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
+
** WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
14
+
** COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
15
+
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
+
** SOFTWARE.
13
17
**/
14
18
15
19
package plugin
16
20
17
21
import (
18
22
"context"
19
23
"time"
20
24
21
25
"golang.zabbix.com/plugin/example/plugin/handlers"
22
26
"golang.zabbix.com/plugin/example/plugin/params"