Hello Dave, one more question that you answered... Many thanks again for this bunch of useful info!
> > A question: what does the option "-i" does? > > This relates to the difference between monitoring an *instance* > (i.e. a fully-specified OID, as per snmpget) and monitoring an > *object* (which might have several instances). Thank you. I couldn't find relevant documentation on this. > > | monitor -i "proc" prErrorFlag.1 != 0 > > prErrorFlag.1 is a fully-qualified instance - a single value. > Hence the '-i' flag prevents the agent trying to expand it > any further. The equivalent "wildcarded" entry > > monitor "proc" prErrorFlag != 0 > > would monitor *all* the procTable entries, and would generate > a trap if any of the error flags was set (rather than having > to list them each individually). Yes... But the problem is that monitoring the entire table, like the procTable, does *not* work on Solaris. We experienced it, and this was confirmed by the README.solaris: | The documentation suggests using... | | monitor -o prNames -o prErrMessage "process table" prErrorFlag != 0 | | to monitor all processes. This will fail with ambiguous results. | | To monitor processes, put a separate monitor line for each process. | | For example: | ###### | proc smail | proc mdlogd | | monitor -r 30 -i -o prNames.1 -o prErrMessage.1 "Process smail" prErrorFlag.1 !=0 That's exactly what I did... > > whereas the same monitor without the "-i" option doesn't > > (apparently) send anything. > > Hmmm.... Strictly speaking, that ought to work. > (Wildcarding a fully-qualified instance is perfectly valid). > > Unfortunately, neither the old nor the new implementation > seem to handle this correctly. I'm probably not going to > have a chance to investigate this until the 5.3 pre-release > cycle starts up, but if you can remind me in a couple of > weeks, I'll have a look at it then. Ok, I will. Actually, that would be cool if monitoring wildcarded entries would work too. Loïc. -- There is 10 kinds of people in the world... Those who understand binary, and those who don't. Highspeed-Freiheit. Bei GMX supergünstig, z.B. GMX DSL_Cityflat, DSL-Flatrate für nur 4,99 Euro/Monat* http://www.gmx.net/de/go/dsl ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ 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
