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
Inicio del debate
hbib · 31 may 2021, 14:15 · 2 mensajes · 64 visitas
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 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.
Entra en tu cuenta para publicar.