BUG: 0.8.7c - View SNMP Cache Items

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
tymbow
Cacti User
Posts: 54
Joined: Sat May 14, 2005 8:00 pm

BUG: 0.8.7c - View SNMP Cache Items

Post by tymbow »

The "View SNMP Cache" list option for "Host: Any" doesn't return any results. Selecting an individual host works ok.

If I mangle the URL as follows (remove ID from host_id) it sort of works:

Code: Select all

utilities.php?host_id=&snmp_query_id=-1&filter=&action=view_snmp_cache
Also, while I'm here what's the purpose of "Host: None"? I can't seem to get this to do anything.

Also, also (this may be a problem with my machine) the "SNMP - Get Mounted Partitions" entries for my Windows machines are not showing the OIDs.
Last edited by tymbow on Fri Jan 30, 2009 7:53 pm, edited 1 time in total.
llow
Cacti User
Posts: 170
Joined: Fri Oct 05, 2007 5:34 pm

Post by llow »

Here is a fix. I'll create a bug report.

Code: Select all

--- utilities.php       2009-01-26 06:31:36.000000000 -0700
+++ utilities.php       2009-01-30 16:36:30.000000000 -0700
@@ -1202,7 +1205,9 @@
        $sql_where = "";

        /* filter by host */
-       if (get_request_var_request("host_id") == "0") {
+       if (get_request_var_request("host_id") == "-1") {
+               /* Show all hosts */
+       }elseif (get_request_var_request("host_id") == "0") {
                $sql_where .= " AND host.id=0";
        }elseif (!empty($_REQUEST["host_id"])) {
                $sql_where .= " AND host.id=" . get_request_var_request("host_id");
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Maybe you should upgrade as we are not longer supporting that version.

Or did you mean 0.8.7c?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
llow
Cacti User
Posts: 170
Joined: Fri Oct 05, 2007 5:34 pm

Post by llow »

rony the bug is in 0.8.7c so I'm sure that is what he meant.
tymbow
Cacti User
Posts: 54
Joined: Sat May 14, 2005 8:00 pm

Post by tymbow »

llow wrote:rony the bug is in 0.8.7c so I'm sure that is what he meant.
Yeah - I'm a dope. I meant 0.8.7c. Fixed the post title.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Please post a bug, we have a few of these "minor" issue that should have been caught with more testing. But at last, most of us are busy with personal things, me, personally am in the process of moving.

Patches are coming soon to resolve many minor issues.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Assigned the bug to me. Hope to get time to fix it this weekend
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Resolved in SVN#4899
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest