Hi All!

In the meantime I have been using the 'exec' form of this and it is working out 
really nicely. I have noticed that there are two instances of each entry:

UCD-SNMP-MIB::extIndex.1 = INTEGER: 1
UCD-SNMP-MIB::extIndex.2 = INTEGER: 2
UCD-SNMP-MIB::extNames.1 = STRING: get_cpu_idle
UCD-SNMP-MIB::extNames.2 = STRING: get_cpu_idle
UCD-SNMP-MIB::extCommand.1 = STRING: /usr/bin/perl 
/opt/elaxy/bin/get_cpu_idle.pl
UCD-SNMP-MIB::extCommand.2 = STRING: /usr/bin/perl 
/opt/elaxy/bin/get_cpu_idle.pl
UCD-SNMP-MIB::extResult.1 = INTEGER: 0
UCD-SNMP-MIB::extResult.2 = INTEGER: 0
UCD-SNMP-MIB::extOutput.1 = STRING: 99
UCD-SNMP-MIB::extOutput.2 = STRING: 99
UCD-SNMP-MIB::extErrFix.1 = INTEGER: 0
UCD-SNMP-MIB::extErrFix.2 = INTEGER: 0
UCD-SNMP-MIB::extErrFixCmd.1 = STRING: 
UCD-SNMP-MIB::extErrFixCmd.2 = STRING: 

It seems that I am doing something wrong. Any help is greatly appreaciated.

Regards,

Jim Mohr


>> -----Ursprüngliche Nachricht-----
>> Von: [EMAIL PROTECTED] 
>> [mailto:[EMAIL PROTECTED] Im 
>> Auftrag von Mohr James
>> Gesendet: Mittwoch, 11. Mai 2005 19:18
>> An: net-snmp-users@lists.sourceforge.net
>> Betreff: Exec and extend (was Calculationg CPU usage using 
>> ssCpuRawIdle)
>> 
>> 
>> >> -----Ursprüngliche Nachricht-----
>> >> Von: [EMAIL PROTECTED]
>> >> [mailto:[EMAIL PROTECTED] Im 
>> >> Auftrag von Dave Shield
>> >> Gesendet: Mittwoch, 27. April 2005 10:13
>> >> An: frank
>> >> Cc: net-snmp-users@lists.sourceforge.net
>> >> Betreff: Re: Calculationg CPU usage using ssCpuRawIdle
>> >> 
>> <SNIP>
>> >> There's an equivalent directive "extend" which works in the
>> >> same way as "exec", but formats the output somewhat 
>> >> differently. In particular, the two entries:
>> >> 
>> >>   extend name /my/prog -args
>> >> and       extend .some.other.oid  name /my/prog -args
>> 
>> Something is not working here. I add this to my snmpd.conf 
>> 
>> exec shelltest /bin/bash /tmp/shtest
>> 
>> and I can walk 2021.8 tree. If I change the "exec" to 
>> "extend" I get nothing. I gather I am missing the 
>> ".some.other.oid" part of it. However, the snmpd.conf 
>> man-page this is not necessary. I looked through 
>> NET-SNMP-EXTEND-MIB as the snmpd.conf man-page told me to 
>> do, but I didn't get much out of it. Any help is appreaciated.
>> 
>> Regards,
>> 
>> Jim Mohr
>>  
>> 
>> 
>> -------------------------------------------------------
>> This SF.Net email is sponsored by Oracle Space Sweepstakes
>> Want to be the first software developer in space?
>> Enter now for the Oracle Space Sweepstakes! 
>> http://ads.osdn.com/?ad_ids93&alloc_id281>> &op=ick
>> 
>> _______________________________________________
>> 
>> Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net
>> Please see the following page to unsubscribe or change other 
>> options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>> 


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id281&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to