Is there a reason for the totally different syntax of simple checks?
service<_variant><,port>
Compared with the agent syntax
net.tcp.service[service<,host><,port>]
The implementation of simple checks is very unusual as well.. why not use the implementation in src/libs/zbxsysinfo/simple/simple.c?
Switching to a common implementation for both agent-side and server-side checks would make a lot easier but change the syntax.
Unless you had some special reason I don't see, I'd try a rewrite.
Although I'm not sure how to do it yet .. but I'm working on the general area anyways and changing the implementation would make it a lot easier to me.
service<_variant><,port>
Compared with the agent syntax
net.tcp.service[service<,host><,port>]
The implementation of simple checks is very unusual as well.. why not use the implementation in src/libs/zbxsysinfo/simple/simple.c?
Switching to a common implementation for both agent-side and server-side checks would make a lot easier but change the syntax.
Unless you had some special reason I don't see, I'd try a rewrite.
Although I'm not sure how to do it yet .. but I'm working on the general area anyways and changing the implementation would make it a lot easier to me.
)
Comment