Re: one host has two target types, please help. (Marc Powell)

"Consultant IT" <[email protected]> Tue, 2 Sep 2008 09:54:06 +0800
Newsgroups gmane.network.cricket.user
Message-ID <[email protected]>
hi,

the target is a host name. I need this as a paramter to get data for SNMP
and perl.

if change to mydomain.com-global, it does not make sense.

for SNMP, the Defaults define the rrd file:

Target  --default--
        dataDir                         =
/home/cricket/rrd/%auto-target-path%
        rrd-datafile            = %dataDir%/%auto-target-name%.rrd

for perl source, the Defaults.xml defines another rrd file:

Target  --default--
        dataDir                         =
/home/cricket/rrd/%auto-target-path%
        rrd-datafile            =
%dataDir%/%auto-target-name%_%target-type%.rrd

So I already defined two rrd file names. The issue is everytime it collects
the data, it collect global-xml twice. It
did not collect the global (SNMP data).
Please help me more, thanks,
Frank

> hi,
>
> My email appliance has two target types, one is from SNMP, the other
> is from
> my perl scripts to reading from http xml interfaces.
>
> Now I defined targets file:
>
> #more targets
> target mail01.mydomain.com
>        target-type     =       global
> target mail01.mydomain.com
>        target-type     =       global-xml
>
>
> The issue is everytime it collects the data, it collect global-xml
> twice. It
> did not collect the global (SNMP data).


Your target names need to be unique. This is what cricket bases the
names of the rrd files on.

target mail01.mydomain.com-global
       target-type     =       global
target mail01.mydomain.com-xml
       target-type     =       global-xml
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/