[mrtg] Newbie Question

John john at thetethered.com
Thu Sep 29 21:01:55 CEST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 9/29/2011 2:16 PM, Daniel Patrick Sullivan wrote:
> (i.e. active).  I want to execute an arbitrary external PHP script 
> from within an mrtg file; is this possible?  If so could somebody 
> please send me a code snippet or syntax example of how this can be 
> achieved?

On the target line you can execute scripts and pass arguments.
Target[target_name]: `perl file_name arg0 arg1`

You can do this with perl, php, whatever...

Look at http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html
The keyword phrase is "External Monitoring Scripts"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iF0EAREIAAYFAk6EwKMACgkQKCkXlX/H6onexAEAsD9jQuZ105FXUnm5BVRpFNwN
2OQVz/liJweGK+QKl58A+MTPrwoRdJ046iJGEOv5DT4/3lGl4YofCW93+nIE8cs=
=3Dv+
-----END PGP SIGNATURE-----



More information about the mrtg mailing list