Ad Widget

Collapse

Simple checks: Syntax and implementation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • freak
    Member
    • Oct 2007
    • 52

    #1

    Simple checks: Syntax and implementation

    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.
  • freak
    Member
    • Oct 2007
    • 52

    #2
    Just to clarify: I then saw I was wrong, agent checks implementation is being used in simple checks, I was just confused by the code )

    Anyways, I'd still prefer the syntax to be the same for both types of checks.

    Comment

    Working...