[asterisk-users] Asterisk and MRTG, a little help please...
Andres
andres at telesip.net
Mon Jan 28 13:09:51 CST 2008
>
>Unknown option: h
>Unknown option: 1
>Unknown option: 2
>ERROR: Line 3 (use strict;) in CFG file (10.10.14.102.cfg) does not make sense
>
>I named the script file the IP address of the server.cfg instead of
>asterisk-mrtg.
>
>I call the script from the command line:
>
># env LANG=C /usr/bin/mrtg 10.10.14.102.cfg -h 10.10.14.102 -1 SIP -2 IAX2
>
>
>
The problem is that is not how its supposed to work. The file is just a
script that you need to run from withing a regular mrtg.cfg file.
So first you build a regular mrtg.cfg file and test it out with
something you are used to like Ethernet Traffic or whatever. Then you
add something like this at the bottom:
Title[servername]: Server title
PageTop[servername]: <h1>servername.domain.com</h1>
Target[servername]: `/usr/local/bin/asterisk-mrtg -h
servername.domain.com -1 SIP -2 IAX2`
Options[servername]: gauge,integer
MaxBytes[servername]: 90
YLegend[servername]: Active channels
...You see the Target Line...Thats where the perl script from
http://karlsbakk.net/asterisk/ goes. It is not an MRTG config file as
you have tried to use it.
Andres
http://www.neuroredes.com
>JR
>
>
More information about the asterisk-users
mailing list