Tweaking des plugins munin
darcs-hash:20080914174748-ffbb2-f90ffd8cb29070a3d0ed1c63d3b7302e07815ae4.gz
This commit is contained in:
parent
31539859ee
commit
cceeea27bb
4 changed files with 25 additions and 12 deletions
|
@ -67,13 +67,19 @@ if (defined $ARGV[0] and $ARGV[0] eq "snmpconf")
|
|||
if ($0 =~ /^(?:|.*\/)snmp_([^_]+)_if_([^_]+)_(.+)$/)
|
||||
{
|
||||
$host = $1;
|
||||
$name = $2;
|
||||
$name = $2;
|
||||
$iface = $3;
|
||||
if ($host =~ /^([^:]+):(\d+)$/)
|
||||
{
|
||||
$host = $1;
|
||||
$port = $2;
|
||||
}
|
||||
if ($host !~ /\.adm\.crans\.org$/)
|
||||
{
|
||||
$host .= ".adm.crans.org";
|
||||
}
|
||||
|
||||
print "Host:$host\nName:$name\niface:$iface\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue