Hello,

I believe i just figured this one out. the existing graph types anyway now
work. not sure if I should be creating new ones yet (experimenting with
submission and getting the spam/clam stats to read right) but otherwise it
works.

If you look in /usr/share/toaster/mrtg/qmailmrtg.cfg, you'll see these
lines:

Target[messages]: \`/usr/bin/qmailmrtg m /var/log/qmail/send\`

in each section. simply remove the back slashes from the beginning and end
of the command line, to appear as this:

Target[messages]: `/usr/bin/qmailmrtg m /var/log/qmail/send`

and suddenly my stats started updating and no more errors when i manually
run the cron job.

- Fabian S.

P.S. anyone look at Dovecot graphing? or the proper method for graphing
submission? Right now i copied the smtp section and changed the labels /
logs directory. not sure if that's accurate.

and clam/spam logs appear in maillog. qmailmrtg is likely looking for
standalone logs for those components i presume correct? in case it can
actually read / parse maillog, i set those log dirs simply to /var/log. no
errors but not sure yet if it is graphing it correctly.


On Mon, Apr 20, 2015 at 2:28 PM, Fabian Santiago <[email protected]>
wrote:

> I have seen this on my qmt as well but no fix yet that i can figure out.
>
> On Fri, Jan 30, 2015 at 10:23 AM, Eric Broch <[email protected]>
> wrote:
>
>> Qmail list,
>>
>> Has anyone on the list seen any and error on their toaster from mrtg like
>> the following:
>>
>> <error>
>> Friday, 30 January 2015 at 8:05: WARNING: Could not get any data from
>> external command '/usr/bin/qmailmrtg t /var/log/qmail/smtp'
>> Maybe the external command did not even start. (Illegal seek)
>>
>> Friday, 30 January 2015 at 8:05: WARNING: Problem with External get
>> '/usr/bin/qmailmrtg t /var/log/qmail/smtp':
>>    Expected a Number for 'in' but nothing'
>>
>> Friday, 30 January 2015 at 8:05: WARNING: Problem with External get
>> '/usr/bin/qmailmrtg t /var/log/qmail/smtp':
>>    Expected a Number for 'out' but nothing'
>>
>> Friday, 30 January 2015 at 8:05: ERROR: Target[smtp][_IN_] '
>> $target->[7]{$mode} ' did not eval into defined data
>> Friday, 30 January 2015 at 8:05: ERROR: Target[smtp][_OUT_] '
>> $target->[7]{$mode} ' did not eval into defined data
>> </error>
>>
>> EricB
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
> --
>
> - Sincerely,
>
> Fabian S.
>
>


-- 

- Sincerely,

Fabian S.

Reply via email to