Bienvenido a la comunidad de Pandora FMS › Forums › Community support › custom macros
-
custom macros
Posted by hbib on mayo 31, 2021 at 14:15Hi
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
Hbibvic replied 3 years, 3 months ago 2 Members · 1 Reply -
1 Reply
-
::
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
HbibHi 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.