ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/ihost-perl/ihost.pl
(Generate patch)

Comparing projects/cms/source/host/ihost-perl/ihost.pl (file contents):
Revision 1.12 by pjm2, Thu Feb 1 09:24:54 2001 UTC vs.
Revision 1.13 by pjm2, Mon Feb 5 17:14:41 2001 UTC

# Line 180 | Line 180 | sub send_udp_packet() {
180  
181      my(@statgrab) = `./statgrab.pl`;
182      my(%packet);
183 <    for (my($i) = 0; $i < $#statgrab; $i++) {
183 >    for (my($i) = 0; $i <= $#statgrab; $i++) {
184          $statgrab[$i] =~ /^([^\s]*) (.*)$/;
185          $packet{$1} = $2;
186      }
# Line 201 | Line 201 | sub send_udp_packet() {
201      }
202      $disk_info .= "</disk>";
203  
204 +    print "$disk_info\n";
205 +
206      my($hostname) = hostname();
207      $hostname =~ s/\..*$//g;
208      `cat /etc/resolv.conf` =~ /domain\s+([^\s]+)/;
# Line 247 | Line 249 | sub send_udp_packet() {
249          <swap>$packet{"packet.cpu.swap"}</swap>
250      </cpu>
251      <memory>
252 <        <total>$packet{"packet.memory.real"}</total>
252 >        <total>$packet{"packet.memory.total"}</total>
253          <free>$packet{"packet.memory.free"}</free>
254      </memory>
255      <swap>
256 <        <total>$packet{"packet.memory.swap_total"}</total>
257 <        <free>$packet{"packet.memory.swap_free"}</free>
256 >        <total>$packet{"packet.swap.total"}</total>
257 >        <free>$packet{"packet.swap.free"}</free>
258      </swap>
259      $disk_info
260   </packet>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines