2018-02-08 11:20:22 +00:00
|
|
|
diff -urNp old/agent/mibgroup/host/data_access/swrun.c new/agent/mibgroup/host/data_access/swrun.c
|
2020-04-09 11:33:50 +00:00
|
|
|
--- old/agent/mibgroup/host/data_access/swrun.c 2017-07-18 09:44:00.626109526 +0200
|
|
|
|
+++ new/agent/mibgroup/host/data_access/swrun.c 2017-07-19 15:27:50.452255836 +0200
|
|
|
|
@@ -102,6 +102,10 @@ swrun_count_processes_by_name( char *nam
|
2018-02-08 11:20:22 +00:00
|
|
|
return 0; /* or -1 */
|
|
|
|
|
|
|
|
it = CONTAINER_ITERATOR( swrun_container );
|
2020-04-09 11:33:50 +00:00
|
|
|
+ if((entry = (netsnmp_swrun_entry*)ITERATOR_FIRST( it )) != NULL) {
|
|
|
|
+ if (0 == strcmp( entry->hrSWRunName, name ))
|
|
|
|
+ i++;
|
|
|
|
+ }
|
|
|
|
while ((entry = (netsnmp_swrun_entry*)ITERATOR_NEXT( it )) != NULL) {
|
2018-02-08 11:20:22 +00:00
|
|
|
if (0 == strcmp( entry->hrSWRunName, name ))
|
|
|
|
i++;
|