Wtr.: Re: Re: tmp partition not visible in hrStorageEntry

"Sven Koos" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I don't have a running development environment on Solaris; so I've to setup this (it will take a piece of time).

Thank You for support. Sven.


----- weitergeleitete Nachricht ---------


Betreff: Re: Re: tmp partition not visible in hrStorageEntry
Datum: Do, 14. Feb 2008
Von: Dave Shield<[email protected]>

> On 12/02/2008, Sven Koos <[email protected]> wrote:
> > The hrStorageEntry table entries are identical to hrFSEntry table entries
> > (except memory etc.). So basically the problem relies to the hrFSEntry
> table.
> 
> OK - that's useful.
> So tracking down this problem will need to concentrate on the hr_filesys.c
> code.   I suspect the most likely place to start would be the the routine
> Get_Next_HR_FileSys()
> 
>    Unfortunately there's a distinct lack of debugging output in this
> module,
> so you're probably going to have to tweak the code a bit.   I'm attaching a
> patch to apply to this file.
> 
> Recompile the agent, and start it with the option -Dhost/hr_filesys
> Then run a single "snmpget" query on any OID in the hrFSTable
> (it doesn't matter which).
>     The agent should produce a list of filesystems, some of which will
> then be "skipped".   Does /tmp appear in this list or not?
> 
> Dave
> 



---- weitergeleitete Nachricht Ende ----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
hrfs.patch (application/octet-stream, 716 B)
Index: hr_filesys.c
===================================================================
--- hr_filesys.c	(revision 16768)
+++ hr_filesys.c	(working copy)
@@ -716,9 +716,13 @@
         return -1;
 #endif                          /* solaris2 */
 
+    DEBUGMSGTL(("host/hr_filesys", "Get_Next_HRFS %s\n", HRFS_entry->HRFS_name));
+
     for (cpp = HRFS_ignores; *cpp != NULL; ++cpp)
-        if (!strcmp(HRFS_entry->HRFS_type, *cpp))
+        if (!strcmp(HRFS_entry->HRFS_type, *cpp)) {
+            DEBUGMSGTL(("host/hr_filesys", "Get_Next_HRFS: skipping %s (%s)\n", HRFS_entry->HRFS_type, cpp));
             return Get_Next_HR_FileSys();
+        }
 
     /*
      * Try and ensure that index values are persistent
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.