[mrtg] target script lines

Jimmy Stewpot xtc at elsker.com
Tue Jun 6 00:27:41 MEST 2000


hello, 
i am currently having problems with getting the interger to be accepted by mrtg. when i run a simple command line it gives me a particular number.. but when i  run it in the target line like so :
Target[sys1.fin]:'netstat -an | grep -c FIN'
it doesnt produce any numbers/intergers.
But this is it at the prompt:

# netstat -an | grep -c FIN
3
#

What could cause this to not produce any resuls when its in the mrtg.cfg file.
My options line is like so :

Options[sys1.fin]: gauge growright

I generally get this error
./mrtg mrtg.cfg
Problem with Externale get '`netstat -an | grep -c FIN`':
    Expected an INTEGER for 'out' but got ''

Any help would be much appreciated.
thankyou
Jimmy stewpot


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org



More information about the mrtg mailing list