File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from mamonsu .plugins .pgsql .plugin import PgsqlPlugin as Plugin
4
4
from distutils .version import LooseVersion
5
+ import mamonsu .lib .platform as platform
5
6
from .pool import Pooler
6
7
7
8
@@ -82,9 +83,10 @@ def run(self, zbx):
82
83
zbx .send ('pgsql.connections[max_connections]' , int (self .Max_connections ))
83
84
84
85
# get number of child pids of ppid
85
- num_of_children_pids = self .get_num_of_children_pids ()
86
- key = self .Item_ppid_children [0 ][0 ].format ('[]' )
87
- zbx .send (key , num_of_children_pids + 1 )
86
+ if platform .LINUX :
87
+ num_of_children_pids = self .get_num_of_children_pids ()
88
+ key = self .Item_ppid_children [0 ][0 ].format ('[]' )
89
+ zbx .send (key , num_of_children_pids + 1 )
88
90
89
91
def items (self , template ):
90
92
result = template .item ({
You can’t perform that action at this time.
0 commit comments