<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body>
Hi Robert,<br>
I'm looking for the solution for monitoring remote UNIX disk and CPU etc.
for a long time, I used NSclient to monitor NT fine, and NRPE to monitor
unix but only good for DISK. <br>
I think you gave me a good answer. After I tried hard, still little bit confused,
hope you can clarify for me. <br>
1. I installed nagios server on a Solaris box, also installed ucd-snmp, snmpwalk
working fine. I'd like to monitor another Sun box, do I need install ucd-snmp
on that box? Solaris has a default SNMP agent running like this:<br>
root 342 1 0 Mar 26 ? 0:52 /usr/lib/snmp/snmpdx
-y -c /etc/snmp/conf<br>
Do I need to stop that snmp process?<br>
2. I think the problem is related to /usr/local/share/snmp/snmpconf/snmpd.conf,
snmp.conf etc.<br>
How do I edit those config files? only edit them on Nagios server, or
has to do both sides Server and remote client?<br>
3. The ucd-snmp docs talk about snmpd daemon, I couldn't find it under /usr/local/share/snmp<br>
anywhere, but I found it in source under agent/snmpd. Should I copy some
files under agent/ to somewhere? During the make/make install, sounds didn't
copy any files under AGENT to system directory.<br>
Could you please write some procedures how you got it working on your system
(configurations)? I desperately wanted to make it working on my system.<br>
<br>
Thanks a lot,<br>
Emily<br>
<br>
Robert Suh wrote:<br>
<blockquote type="cite"
cite="mid1EC52693A9D13A4DA6585F98CC24D656030B5BED@nilemail1.bluenile.com">
<pre wrap="">Nicholas, for Unix like OSes (Linux), take a look at ucd-snmp (UCDavis)
or net-snmp (what ucd-snmp has morphed
into) depening on your OS version. Most distributions come with them,
but they may not be installed by default.
Win2k and 2k3 ship with a basic SNMP service, which you have to enable
(or 'Add' via the Control Panel.)
The basic check_snmp command needs the Hostaddress (-H), OID to monitor
(-o) and the SNMP community
string (-C, typically 'public').
So for example, we have the basic ucd-snmp package installed on a Linux
box. To monitor the load average,
the OID is ".1.3.6.1.4.1.2021.10.1.3.1"
You can test if you setup has worked by running
/usr/local/nagios/libexec/check_snmp -H TARGET -o
.1.3.6.1.4.1.2021.10.1.3.1 -C public
Basically, the problem you run into is to map what you want with the OID
number. To somewhat
get around this, if you have the standard MIBS. You can run 'snmpwalk',
which comes with ucd-snmp and
net-snmp. With net-snmp's snmpwalk, you can run "snmpwalk -v 1 -c
public HOSTNAME .iso" to
see all the information your device is exporting via SNMP.
To get you started, some common OIDs:
# Load averages.
OID ucd_load1min 1.3.6.1.4.1.2021.10.1.3.1
OID ucd_load5min 1.3.6.1.4.1.2021.10.1.3.2
OID ucd_load15min 1.3.6.1.4.1.2021.10.1.3.3
# Memory stats
OID ucd_memswapAvail 1.3.6.1.4.1.2021.4.4.0
OID ucd_memrealAvail 1.3.6.1.4.1.2021.4.6.0
OID ucd_memtotalAvail 1.3.6.1.4.1.2021.4.11.0
# Disk stats (Don't forget the instance number...)
OID ucd_diskfree 1.3.6.1.4.1.2021.9.1.7
OID ucd_diskused 1.3.6.1.4.1.2021.9.1.8
OID ucd_diskpused 1.3.6.1.4.1.2021.9.1.9
# CPU Stats
OID ucd_cpuUser 1.3.6.1.4.1.2021.11.9.0
OID ucd_cpuSystem 1.3.6.1.4.1.2021.11.10.0
OID ucd_cpuIdle 1.3.6.1.4.1.2021.11.11.0
OID ucd_rawCpuUser 1.3.6.1.4.1.2021.11.50.0
OID ucd_rawCpuNice 1.3.6.1.4.1.2021.11.51.0
OID ucd_rawCpuSystem 1.3.6.1.4.1.2021.11.52.0
OID ucd_rawCpuIdle 1.3.6.1.4.1.2021.11.53.0
These should be fairly common and static.
Keep in mind, that with the NAG, you will probably have to create your
own snmp checkcommand
using check_snmp and set the -w and -c stuff yourself.
Later on, you can get more advance and have the SNMP daemon run scripts
and return the data via
an OID.
Rob
-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:nagios-users-admin@lists.sourceforge.net">nagios-users-admin@lists.sourceforge.net</a>
[<a class="moz-txt-link-freetext" href="mailto:nagios-users-admin@lists.sourceforge.net">mailto:nagios-users-admin@lists.sourceforge.net</a>] On Behalf Of Subhendu
Ghosh
Sent: Friday, February 13, 2004 1:35 PM
To: Platt, Nicholas
Cc: '<a class="moz-txt-link-abbreviated" href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a>'
Subject: Re: [Nagios-users] Monitoring Disk and CPU Utilization
On Fri, 13 Feb 2004, Platt, Nicholas wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
I've just installed Nagios and I am very please with the product. I'm
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">not a Linux guy, but the instructions have been so good that it has
been an easy experience. Good work! I've been able to populate the
</pre>
</blockquote>
<pre wrap=""><!---->NMS with 500+ host
</pre>
<blockquote type="cite">
<pre wrap="">and monitor over 1000+ services. I plan to grow it. I've been
</pre>
</blockquote>
<pre wrap=""><!---->asked to
</pre>
<blockquote type="cite">
<pre wrap="">monitor host CPU and host disk usage. I've read that there is two
</pre>
</blockquote>
<pre wrap=""><!---->ways
</pre>
<blockquote type="cite">
<pre wrap="">monitor this function. One is installing a client on each server and
</pre>
</blockquote>
<pre wrap=""><!---->the
</pre>
<blockquote type="cite">
<pre wrap="">other is SNMP. Since our shop has several types of boxes and OS, for
</pre>
</blockquote>
<pre wrap=""><!---->us it
</pre>
<blockquote type="cite">
<pre wrap="">is better to poll the box via SNMP. I've not been able to find
detailed documentation on how to have Nagios poll via SNMP for disk
usage. Now, when I say documentation, I have found a check_snmp
</pre>
</blockquote>
<pre wrap=""><!---->plug-in, but did not have
</pre>
<blockquote type="cite">
<pre wrap="">enough documentation for a beginner to be able to utilize it. Can
</pre>
</blockquote>
<pre wrap=""><!---->you
</pre>
<blockquote type="cite">
<pre wrap="">point me to any check_snmp documentation that will clearly describe
</pre>
</blockquote>
<pre wrap=""><!---->how I
</pre>
<blockquote type="cite">
<pre wrap="">can poll servers via SNMP? If believe the client version is better,
</pre>
</blockquote>
<pre wrap=""><!---->will
</pre>
<blockquote type="cite">
<pre wrap="">it support Unix, Linux, Novell, and NT? You guys have always been
very supportive. Thank you.
</pre>
</blockquote>
<pre wrap=""><!---->
Unix agent:
NRPE + any plugin
ssh + any plugin
Windows agents:
NSclient - fixed set of probes
NREP_NT + external plugins
Novell:
MRTGEXT.NLM - fixed set of probes
</pre>
</blockquote>
<br>
<!-- BEGIN-CANIT-VOTING-LINKS -->
<div><span style="font-size: medium; color: black; font-style: normal; font-weight: normal; background-color: white; display: inline">
<hr>
Teach CanIt if this mail (ID 2913586) is spam:<br>
<a href="http://mailgate1.algonquincollege.com/canit/b.php?c=s&i=2913586&m=11d01fa04711">Spam</a><br>
<a href="http://mailgate1.algonquincollege.com/canit/b.php?c=n&i=2913586&m=11d01fa04711">Not spam</a><br>
<a href="http://mailgate1.algonquincollege.com/canit/b.php?c=f&i=2913586&m=11d01fa04711">Forget previous vote</a><br>
</span></div>
<!-- END-CANIT-VOTING-LINKS -->
</body>
</html>