---
name: "basevars.pm"
section: "1"
platform: "linux"
package: "smokeping"
version: "1.6-2"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/basevars.pm"
---

# basevars.pm(1)

Another Base Class for implementing SmokePing Probes

## NAME

probes::basevars - Another Base Class for implementing SmokePing Probes

## OVERVIEW

Like probes::base, but supports host-specific variables for the probe.

## SYNOPSIS

```
 *** Targets ***
```

```
 menu = Top
 title = Top Page
```

```
 + branch_1
 menu = First menu
 title = First title
 host = host1
 ++ PROBE_CONF
 # vars for host host1
 var1 = foo
 var2 = bar
```

```
 ++ branch_1_2
 menu = Second menu
 title = Second title
 host = host2
 +++ PROBE_CONF
 # vars for host host2
 # var1 and var2 are propagated from above, override var2
 var2 = fii
```

```
 + branch_2
 # var1 and var2 are undefined here
```

## DESCRIPTION

Provides the method \`targets' that returns a list of hashes. The hashes contain the entries:\

- addr

  The address of the target.\

- vars

  A hash containing variables defined in the corresponding \`PROBE\_CONF' config section.\

- tree

  The unique index that \`probe::base' uses for targets.

## AUTHOR

Niko Tyni \<ntyni@iki.fi\>

## BUGS

Uses \`probes::base' internals too much to be a derived class, but  I didn't want to touch the base class directly.

## SEE ALSO

probes::base(3pm), probes::EchoPing(3pm)
