Ad Widget

Collapse

discoveryrule.create always fails, interfaceid?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emcliqz
    Junior Member
    • Feb 2013
    • 15

    #1

    discoveryrule.create always fails, interfaceid?

    I'm unable to create a new LLD using the API call 'discoveryrule.create'. The parameters I'm setting are:

    hostid: 10091
    key_: 'vfs.fs.discovery'
    name: 'Mounted filesystem discovery'
    delay: 3600
    lifetime: 30
    type: 7

    hostid is valid (I'm using to create a bunch of items, which works fine). The only thing I can see is that I don't set "interfaceid", since it doesn't seem to make sense, yet is marked required (it was also marked required for items however).

    ----
    Update: I set 0 on interfaceid now and it doesn't help. This is what another such rule is reporting however.
    Last edited by emcliqz; 19-02-2013, 15:15. Reason: update
  • emcliqz
    Junior Member
    • Feb 2013
    • 15

    #2
    Got it. I had a typo in the action name.

    Comment

    Working...