[mrtg] external script no longer functions...

Evert Meulie evert at witelcom.net
Wed Dec 15 11:44:37 MET 2004


Hi everyone!

The following mystery: I have in my mrtg.conf the following lines:
[snip]
Target[conncount_192.168.100.1]: `/usr/local/bin/connection_poll_ssh`
Options[conncount_192.168.100.1]: gauge,growright,nopercent,noo
Title[conncount_192.168.100.1]: Connection count
MaxBytes[conncount_192.168.100.1]: 20000
PageTop[conncount_192.168.100.1]: <H1>Connection count</H1>
LegendO[conncount_192.168.100.1]: Connections
LegendI[conncount_192.168.100.1]: Connections
YLegend[conncount_192.168.100.1]: connections
ShortLegend[conncount_192.168.100.1]: &nbsp;connections
[/snip]

This script returns 2 values: first the actual number, and then a 0, like:
257
0


This has worked fine so far, and still works, but only when I call the
script manually.

In mrtg.conf now all it does is generate the following errors in the
mrtg-log:
2004-12-15 08:50:24 -- Started mrtg with config '/etc/mrtg.conf'
2004-12-15 08:50:47 -- WARNING: Could not get any data from external
command '/usr/local/bin/connection_poll_ssh'
Maybe the external command did not even start. (Illegal seek)

2004-12-15 08:50:47 -- WARNING: Problem with External get
'/usr/local/bin/connection_poll_ssh':
    Expected a Number for 'in' but nothing'

2004-12-15 08:50:47 -- WARNING: Problem with External get
'/usr/local/bin/connection_poll_ssh':
    Expected a Number for 'out' but nothing'

2004-12-15 08:51:05 -- ERROR: Target[conncount_192.168.100.1][_IN_] '
$target->[1]{$mode} ' did not eval into defined data
2004-12-15 08:51:05 -- ERROR: Target[conncount_192.168.100.1][_OUT_] '
$target->[1]{$mode} ' did not eval into defined data

The only change I have made to my mrtg.conf is moving part of it
(relating to other hosts and below this poll in the original log) to a
separate file which I include with 'Include: mrtg-users.conf'


What did I do wrong here...?


Regards,
	Evert Meulie

--
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
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list