#4 LAN interface data not collected


The unix-status-server does not collect data from valid
lan interfaces like lan0, lan1, etc...

After looking at the source code it appears that the
script uses 'netstat -i' to collect the information. The
problem is that when using 'netstat -i' command it is
possible for the performace data to be contained on the
following line especially on HPUX. This is because the
command return the fully qualified name associated to
the assigned interface for that lan instance. A better
approach is to use the 'netstat -ni' command. This will
return the IP address of the interface, instead of the
fully qualified domain name, thus, allowing the data to
be contained on the same line of the lan instance.

Some possible suggestions, for future revisions, are:
** To change 'netstat -i' to 'netstat -ni'.
** To provide a netstat command flag option, as is
done with vmstat.
** To check the OS and run the appropriate command.
** To check the following line for numerical data if the
lan in question provides no data in its parsed fields.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks