Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

  • custom macros

    Posted by hbib on mayo 31, 2021 at 14:15

    Hi
    please help me , In a shell script,  how i can import values $USER and $Host  from pandora custom macros
    example:
    Fan2_status = $ (snmpwalk -v1 -c $ USER $ HOST .1.3.6.1.4.1.674.10892.5.4.700.12.1.7.1.2)

    Thanks 
    Hbib

    vic replied 3 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • vic

    Administrator
    septiembre 24, 2021 at 11:10
    1547 Karma points
    Community awards: bulb Bright ideas
    Community rank: tentacle_master_icon Tentacle Master
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi
    please help me , In a shell script,  how i can import values $USER and $Host  from pandora custom macros
    example:
    Fan2_status = $ (snmpwalk -v1 -c $ USER $ HOST .1.3.6.1.4.1.674.10892.5.4.700.12.1.7.1.2)

    Thanks 
    Hbib

    Hi Hbib,

    In a script you won’t be able to use Pandora FMS macros because there is nothing that substitutes the values.

    The only option to use these macros is through the creation of a “Plugin server” module.

    You will only be able to use certain macros in the console (the ones supported by the Pandora FMS server).

    Best regards,
    Víc.