[mrtg] Re: Newbie question
jo smith
joblow7777 at yahoo.com
Mon Sep 16 20:56:02 MEST 2002
Hi Alex.
Thanks for responding. Let me break this down a
little bit further then. In the docs, it says the
following:
The next step is now to configure mrtg for monitoring
an network device. This is done by creating an
mrtg.cfg file which defines what you want to monitor.
Luckily you don't have to dive straight in and start
writing your own configuration file all by yourself.
Together with mrtg you also got a copy of cfgmaker.
This is a script you can point at a router of your
choice; and it will create a mrtg configuration file
for you. You can find the script in the bin
subdirectory.
cfgmaker --global 'WorkDir: /home/httpd/mrtg' \
--global 'Options[_]: bits,growright' \
--output /home/mrtg/cfg/mrtg.cfg \
community at router.abc.xyz
What if I don't know the community? This is for
servers, not routers, so how would this command read?
Thanks for the help and the patience.
--- Alex van den Bogaerdt <alex at ergens.op.het.net>
wrote:
>
> On Sat, Sep 14, 2002 at 08:32:13PM -0700, jo smith
> wrote:
>
> > I've read the docs about MRTG. I've got it
> compiled.
> > I would like to use nagios output as a front-end
> to
> > MRTG. How can I configure MRTG to take nagios
> data
> > as input? I've never used MRTG before, so please
> be
> > gentle. Thanks.
>
> Right. What is nagios ? (don't answer that)
>
> As with *any* data source: just read the
> documentation and
> follow the instructions. Depending on the data
> available
> and the way it is made available, you can define
> your target.
>
> You need to read reference.{txt|html} and look at
> the target
> section included therein. If that doesn't help and
> you need
> help on a specific item, just ask again.
>
> Hint:
>
> Q:Nagios delivers output in text format: "delivered
> 123 letters"
> How do I program MRTG to take this as input?
>
> I would have answered:
>
> A:Use the external program interface and call nagios
> from a
> wrapper that removes the text. For example:
> Target[nagios]: `/path/to/nagios parameters |
> cut -f2`
>
> but even then I probably would have told you to
> RTFM.
>
> HTH
> Alex
>
> --
> 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
>
__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com
--
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