Parsing NSCLIENT Output/Performance Counters

Mike McClure mmcclure at pneservices.com
Sat Oct 19 03:53:20 CEST 2002


Sorry, I should explain this a little better.

It's meant to be run from cron, with status.log piped to it.  A 5 minute interval
should work.

It builds/updates one file per host as "$dir/host<hostname>", and one file per disk
monitored as "$dir/disk<hostname>-disks-<diskletter>".

The host files are 4 lines.  The first is 10-minute CPU load.  The second is uptime
in minutes.  The third and fourth are memory used and memory free, respectively.

The disk files are 2 lines, percent used and percent free.

Doing it this way makes it pretty easy to suck in the data to Cricket.  I haven't
touched MRTG for a long time, so don't know how difficult that would be.

> I wrote this one about a year ago.  NSClient output might have changed since then,
> so tweak as needed.
>

-- 
Mike McClure, CCIE # 5125, CISSP # 30232
PNE Services, Inc. -  http://www.pneservices.com
mmcclure at pneservices.com
mobile: 913-636-5590





-------------------------------------------------------
This sf.net email is sponsored by:
Access Your PC Securely with GoToMyPC. Try Free Now
https://www.gotomypc.com/s/OSND/DD




More information about the Users mailing list