Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: (Vortacist) Re: Re: Re: monitor.pl

by xphase_work (Pilgrim)
on Jun 07, 2001 at 21:20 UTC ( #86658=note: print w/ replies, xml ) Need Help??


in reply to (Vortacist) Re: Re: Re: monitor.pl
in thread monitor.pl

The only thing that I can think of is that the top command
on your system is not outputting the same info that mine is,
mine gives:

load averages: 0.50, 0.47, 0.41 13:03:12 83 processes: 81 sleeping, 1 running, 1 on cpu Memory: 256M real, 128M free, 64M swap in use, 192M swap free PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND 14600 baw 1 36 0 32M 21M run 7:30 8.06% netscape

If the Memory: line is different in your output, then the regex
that pulls the memory info won't place a value into totSwap. This
is because i'm using array subscripting to pull the values out of
the @memInfo array. Try changing $memInfo[?] to where the correct
swap values would be.

--xPhase


Comment on Re: (Vortacist) Re: Re: Re: monitor.pl
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://86658]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (15)
As of 2015-07-30 18:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls