2010/10/20 maap maap <[email protected]>:
> I moved to the new kernel and now all sensors are managed by kernel,
> so fan and temperature sensors's indexes been changed

Yes - that's perfectly normal with SNMP.
You cannot assume that index values are necessarily stable across
restarts of the agent.   Monitoring applications need to be prepared
to handle changes of indexing.
   You can use the lmXxxSensorsDevice values to spot when re-mapping
is necessary.




> Also for example I know that all my devices have 6 fans and 5 temperature and 
> 15 power sensors at max.
> If I am using current code I have to configure all my devices separately to 
> monitor em.
> But with separate indexes i can create one single template which contains 
> maximum
> number of all sensors and use it for all devices.

I don't quite follow.
Why not configure your template to monitor the whole of the relevant tables,
rather than individual ranges?   Or select a very high maximum (say 255),
and let the monitoring application determine which instances are
currently valid.



> If you want me to change my code, just say how exactly it should looks like 
> to avoid misunderstanding.
> I can add one more single table with any sensors available in the system, 
> should I ?.

If you are looking at extending the sensors capability of the agent,
then I suggest you draw up a proposal for exactly what you have in mind.
I know that there are people here who have expressed an interest in sensors
in the past (and probably know much more about this than I do).

If you are considering a single, combined-sensors MIB table, then I'd suggest
it would be a very good idea to at least look at the Entity Sensors MIB,
rather than re-inventing the wheel.

Dave

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to