2008/6/4 Gokak, Arun Madhukar <[EMAIL PROTECTED]>:
> Hello list,
>
>     I have compiled and installed heartbeat version 2.1.3 with hbagent
> on SLES-10. I am facing following problems with snmp agent can someone
> help me to resolve them.
>
>
>
> 1. In below result LHANodeIndex value is not retrieved properly (I have
> changed MIB file entry for this object from not-accessible to read-only
> to get the following print)
>
Try this patch.
> 2. In below result LHAMemberBootTime value is zero.
>
It's from membership/ccm/ccmlib_clm.c, which not fullfilled correctly
by ccm itself.
Can't help so far.
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>
diff -r 5a9d9792de73 snmp_subagent/LHANodeTable.c
--- a/snmp_subagent/LHANodeTable.c	Tue Jun 03 20:01:16 2008 +0200
+++ b/snmp_subagent/LHANodeTable.c	Wed Jun 04 16:03:13 2008 +0800
@@ -254,6 +254,13 @@ LHANodeTable_handler(
                to be dealt with here */
             case MODE_GET:
                 switch(table_info->colnum) {
+					case COLUMN_LHANODEINDEX:
+						snmp_set_var_typed_value(var,
+								ASN_INTEGER,
+								(u_char*)&entry->id,
+								sizeof(entry->id));
+						break;
+
                     case COLUMN_LHANODENAME:
                         snmp_set_var_typed_value(var, 
 				ASN_OCTET_STR, 
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to