Ad Widget

Collapse

SNMP Community macro not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BingoThePyro
    Junior Member
    • Sep 2018
    • 7

    #1

    SNMP Community macro not working

    Hi, running zabbix 5.4.4 (in test at present) and the $SNMP_COMMUNITY macro is no longer working on devices.
    If I manually set the snmp community on the device, it works fine.

    I found an earlier issue on 5.0/5.2 that was fixed https://support.zabbix.com/browse/ZBX-17886. We started on 5.2 and have updated through and this was working earlier.
    Have updated from 5.4.? to 5.4.4 today with no change, and I cannot find any notes about this in the release notes.

    Is anyone else having this issue or have a permanent fix?
    Thanks
    Tim
  • BingoThePyro
    Junior Member
    • Sep 2018
    • 7

    #2
    -sigh- This was so silly and obvious
    In the psbbix powershell cmdlets I use to import devices, it had not been updated for v5, and I managed to add the new snmp details section to the code by copy/paste info.
    This however did NOT pass though the curly brackets, so now I have to figure that out.

    here is the section for reference in psbbix.psm1:

    Code:
     $Body = @{
    method = "hostinterface.create"
    params = @{
    hostid = $HostID
    main = $main
    dns = $dns
    port = $Port
    ip = $IP
    useip = $useIP
    type = $type
    details = @{version=2; bulk=1; community={$SNMP_COMMUNITY}}
    }
    
    jsonrpc = $jsonrpc
    id = $id
    auth = $session
    }

    Comment

    Working...