OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005047 [gangliaagent] minor always 2013-01-23 22:51 2013-01-23 22:51
Reporter dmoraru View Status public  
Assigned To
Priority normal Resolution open  
Status new  
Summary 0005047: no network activity reported
Description Ganglia reports a constant 0 bytes/sec in/out network traffic for any server running Solaris 11.0 and above.
Additional Information libmetrics.so uses kstat to measure resource usage under Solaris. Solaris 11 changed the way network interfaces are named and how they appear in the kstat chain, thus breaking part of the code in libmetrics/solaris/metrics.c. Specifically, the following section of code in update_if_data() which loops over all interfaces:

      if (strcmp(info->ks_class, "net") == 0) {
         sprintf(buff, "%s%d", info->ks_module, info->ks_instance);
         if (strcmp(info->ks_name, buff) == 0) {
            extract_if_data(info);
         }
      }

should be changed to

     if ( (strcmp(info->ks_class, "net") == 0) && \
          (strcmp(info->ks_module, "link") == 0) ) {
         extract_if_data(info);
     }

to work under Solaris 11. The char array 'buff' is no longer needed.
Tags No tags attached.
Attached Files

- Relationships

There are no notes attached to this issue.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker