[Rman-devel] SNMP status issues + extractrules.pl updates
Status: Alpha
Brought to you by:
mvevers
|
From: Michael B. <mic...@se...> - 2002-07-08 09:05:41
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have some issues getting SNMP status working. I am no SNMP guru so I was
hoping someone could give me a hand.
I also see that SNMP is a undocumented 'feature'.
I have changed the extractrules.pl file:
Original:
- ---------
while(@resarray=$sql->fetchrow_array) {
$vars{$resarray[0]}=$resarray[1];
}
foreach $var (sort keys(%vars)) {
print FILE "var ".$var." ".$vars{$var}."\n";
}
Changed to:
- -----------
while(@resarray=$sql->fetchrow_array) {
print FILE "var ".$resarray[0]." ".$resarray[1]."\n";
}
The reason is that: (sort keys(%vars)) sorts the whole thing and $HOME_NET
gets declared AFTER other variables are using it. The change makes the
db.vars be created in the order they are in the database.
Best regards
Michael Boman
- --
Michael Boman
Security Architect, SecureCiRT (A SBU of Z-Vance Pte Ltd)
http://www.securecirt.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9KVXfds5fQJiraJwRAvg6AJ98HoDJWG3RUbNIdxwkJUKxCnzDsQCgqBxv
M5CnyUa1BrVOyndmYiEUaDM=
=iIMM
-----END PGP SIGNATURE-----
|