Ad Widget

Collapse

Replace internal with external

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • agehring
    Member
    • Oct 2006
    • 49

    #1

    Replace internal with external

    Is is possible to create a UserParameter with the same name as a internal key?

    I wrote a "replacement" for proc.num (in C) on OS X, but it doesn't do everything (yet) that the internal proc.num does.

    Can I get the agent to call the external proc.num vs. the internal?


    Thanks,
    Andrew
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    I believe this should work:

    UserParameter=proc.num[*], your_script $1 $2 $3 ...
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • agehring
      Member
      • Oct 2006
      • 49

      #3
      I tried that, and it still reports back ZBX_NOTSUPPORTED, but a UserParameter named lproc.num works...


      So, I'l assume that you cannot use a "internal" name for a UserParameter...

      Thanks,
      Andrew

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Just wondering, what if you use simple proc.num (no [*])? Will it be supported?
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • agehring
          Member
          • Oct 2006
          • 49

          #5
          It does work without the[*], but my program requires a variable to function...

          Thanks,
          Andrew

          Comment

          Working...