$head_lines .= <$sysname Processor Load
System:$sysname
Location:$syslocation
CPU ; } $first = 0; my (@temp) = snmpwalk($router_connect,'apChassisMgrExtSubModuleInstalledMemory'); foreach my $tempi(@temp) { $tempi =~ /([\d\.]+):(.+)/; my $instance=$1; my $maxsize = $2; my $inmenu="no"; if ($first++ == 0) { $inmenu="yes"; } my $target_name=$router_name.".memory.".$instance; $target_lines .= <Memory on $sysname/H1>
System:$sysname
Location:$syslocation
DISK ; } snmpMIB_to_OID("/usr/share/snmp/mibs/cntsvcext.mib"); my (@temp) = snmpwalk($router_connect,'apCntsvcSvcName'); foreach my $tempi(@temp) { $tempi =~ /([\d\.]+):(.+)/; my $instance=$1; my ($owner) = snmpget($router_connect,"apCntsvcOwnName.$instance"); #print "$owner\n"; next if $owner =~ /trouble/; my $description = $2; my $target_name=$router_name.'.'.$description.'.hits'; my $maxsize = 100; my $absmaxsize=10000; $target_lines .= <Hits on $description/H1>
System:$sysname
Location:$syslocation
Table:$description
HITS ; my $target_name=$router_name.".".$description.".bytes"; my $maxsize = 125000000; $target_lines .= <Bytes on $description/H1>
System:$sysname
Location:$syslocation
Table:$description
BYTES ; my $target_name=$router_name.".".$description.".state"; $target_lines .= <State Of $description/H1>
System:$sysname
Location:$syslocation
Table:$description
States:4 is UP, 2 is down
STATE ; }