[mrtg] Re: Solaris SNMP
Kyle Maxwell
kyle.maxwell at telops.gte.com
Wed Sep 1 19:44:14 MEST 1999
Something else you can do is associate vmstat with an unassigned port in /etc/services on the Solaris box and then add it to /etc/inetd.conf (you'll want to write a little script so you can get the second line of vmstat info, not the first). Presto, all you need to do is (from your NT MRTG box) telnet to the Solaris machine on that port, and you will see the vmstat output! Parse that with your perl script, and you have a winner.
--
Kyle Maxwell
Systems Engr (Firewall Security)
GTE Enterprise Information Protection Systems
---------- Original Text ----------
From: "Charles Gillanders" <charles at toucan.ie>, on 9/1/99 12:26 PM:
Why not use rsh on the nt box to run the script on the unix system?
Charles
-----Original Message-----
From: Neil Calvert [mailto:ncalvert at cabletron.com]
Sent: 01 September 1999 17:05
To: kyle.maxwell at telops.gte.com; mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: Solaris SNMP
Useful info, especially if I was running MRTG on Linux or Solaris! :)
Unfortunately, I'm running MRTG on an NT box (crowd goes 'boo!') and using
it to
remotely query devices. I don't see any way for a perl script under NT to go
out
and grab vmstat info from a UNIX box.. but I may be wrong! Any thoughts on
how
this may be accomplished? (Perhaps a cron script on the unix station that
creates a text file, which the NT box remotely reads.. probably would need
Solaris NFS for NT with a drive on the NT box mapped onto the sun station
however..) Does this sound semi-feasible..?
-----Original Message-----
From: Kyle Maxwell <kyle.maxwell at telops.gte.com>
To: mrtg-bounce at list.ee.ethz.ch <mrtg-bounce at list.ee.ethz.ch>;
mrtg at list.ee.ethz.ch <mrtg at list.ee.ethz.ch>
Date: Wednesday, September 01, 1999 9:30 AM
Subject: [mrtg] Re: Solaris SNMP
>To track a specific process, you should be able to do something like
>
>ps -A | grep <appname> | awk 'print $1'
>
>to get the process ID (that awk portion may be a little off). You can put
in
other options to ps to get other data you want about that process.
>
>For general CPU system/idle time, I have a tiny script that essentially
does
>
>vmstat 1 2 | sed '$!D' | awk -f statget.awk
>
>where statget.awk prints out the fields I'm interested in. There's probably
more "elegant" ways to get this done, but as a quick and dirty hack, it did
well.
>
>Obviously, all this totally goes around SNMP, but it's quick, eh?
>
>--
>Kyle Maxwell
>Systems Engr (Firewall Security)
>GTE Enterprise Information Protection Systems
>---------- Original Text ----------
>
>From: "Neil Calvert" <ncalvert at cabletron.com>, on 8/31/99 4:16 PM:
>
>Hi all.
>
>I'm looking into the possibility of using MRTG against a Solaris SNMP agent
(the basic Solstice agent) and I was wondering if people are doing this
already,
and if so, what applications they've found it useful for? Currently I can
see
mrtg being able to graph SNMP stats, interface traffic, and so on, but I'd
like
to get more OS specific information like total CPU time vs. Idle time. The
Sun
mib lets you see cpu time as an instanced mib where every process on the
system
is listed. The problem with this of course is that it will be dynamically
changing as processes are starting and stopping. Is there any way to 'alias'
an
executable name to a process, so you ask it to graph say 'application A CPU
time' and it goes off and finds out what 'application A's processID is to
get
the mib value?
>
>
>I'm guessing this is probably a script hack but if there are any sun mibs
out
there that may help I'd be grateful to hear of them.
>
>Neil
>
>
>--
>* To unsubscribe from the mrtg mailing list, send a message with the
> subject: unsubscribe to mrtg-request at list.ee.ethz.ch
>* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
>
--
* To unsubscribe from the mrtg mailing list, send a message with the
subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
--
* To unsubscribe from the mrtg mailing list, send a message with the
subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
More information about the mrtg
mailing list