[mrtg] MRTG Data Collection Plug-in

John Scott gizeh1976 at yahoo.com
Mon Oct 20 06:13:19 CEST 2008

I'm trying to use the output of a C++ program for MRTG Traffic Analysis

According with the manual:

You specify use of an external script by surrounding the command to
run in backquotes.
The external command must return an exit status of zero, and 4 lines of
output separated by a newline:

 Target[timestamp]: `/usr/local/bin/calling_to_my_c++_program_script`

My two questions are:

1. The exit status of zero is referred to my C++ program? As the following:
    int main(){ ... return 0}

2. Should I declare the 4 lines of output in my script? If so, how?

If possible, can you please post an script that shows how can I call to my external program, and how can I declare the 4 lines of output

Thanks in advance

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20081019/f9b8c85f/attachment.html 

More information about the mrtg mailing list