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
http://mail.yahoo.com _______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg