Mantis - gangliaagent
Viewing Issue Advanced Details
5047 minor always 2013-01-23 22:51 2013-01-23 22:51
dmoraru  
Solaris  
normal 11.0+  
new  
open  
none    
none  
0005047: no network activity reported
Ganglia reports a constant 0 bytes/sec in/out network traffic for any server running Solaris 11.0 and above.
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.
Issue History
2013-01-23 22:51 dmoraru New Issue
2013-02-01 23:54 dmoraru Issue Monitored: dmoraru
2013-02-01 23:55 dmoraru Issue End Monitor: dmoraru

There are no notes attached to this issue.