The attached patch completes the conversion of process status for
hrSWRunTable with some missing values
/Niels
--
Niels Baggesen - @home - Ã…rhus - Denmark - [email protected]
The purpose of computing is insight, not numbers --- R W Hamming
diff --git a/agent/mibgroup/host/data_access/swrun_kinfo.c
b/agent/mibgroup/host/data_access/swrun_kinfo.c
index 4a7dde0..e30c689 100644
--- a/agent/mibgroup/host/data_access/swrun_kinfo.c
+++ b/agent/mibgroup/host/data_access/swrun_kinfo.c
@@ -260,7 +260,8 @@ netsnmp_arch_swrun_container_load( netsnmp_container
*container, u_int flags)
break;
}
#else
- switch (proc_table[i].SWRUN_K_STAT) {
+ switch (proc_table[i].SWRUN_K_STAT & 0xFF) {
+ case SONPROC:
case SRUN: entry->hrSWRunStatus = HRSWRUNSTATUS_RUNNING;
break;
case SSLEEP:
@@ -271,7 +272,8 @@ netsnmp_arch_swrun_container_load( netsnmp_container
*container, u_int flags)
case SLOCK: entry->hrSWRunStatus = HRSWRUNSTATUS_NOTRUNNABLE;
break;
+ case SDEAD:
case SZOMB: entry->hrSWRunStatus = HRSWRUNSTATUS_INVALID; /* i.e.
"not loaded" */
break;
default: entry->hrSWRunStatus = HRSWRUNSTATUS_INVALID; /*
Actually invalid */
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders