cpu usage
Andreas Ericsson
ae at op5.se
Wed Jun 9 12:11:46 CEST 2004
serwah sabet ghadam wrote:
> Hi guys,
> It's my first time to use Nagios,
> How can I find cpu usage, memory usage and disk usage
> of a computer in a network???
>
For unix-servers, you can use either nrpe, ssh or nsca. Each of them
have their own pros and cons, so you'll have to choose which one you like.
I favor NRPE, but I'm a bit biased.
For windows-servers, you can use either nrpe_nt or nsclient.
For netware servers, you have to use the mrtgext module.
For VMS systems, there is nrpe_vms (one separate project and one quick
hack I wrote some while back, which is nrpe protocol 2 compliant).
Ofcourse, if any of the servers support snmp, you cat get a lot of
information from that.
The plugins you'll be wanting to have a look at are;
check_nrpe
check_nt
check_by_ssh
check_nwstat
check_snmp
A word of caution though;
NSClient and MRTGEXT allows practically anyone to run the commands you
have configured at the monitored host and receive the information back,
thus gaining information about it.
NRPE allows practically anyone (with small coding skills) to run the
commands you have configured, but he/she won't be able to get any data
back without owning at least one of the routers on the way from your
monitoring server to the monitored server.
SSH requires passphraseless keys to be present, meaning that if anybody
unlawfully gains access to your monitoring server, he'll have no trouble
what so ever gaining access to the servers you monitor.
NSCA uses the best encryption methods, but with weak authentication
methods, possibly allowing remote and malice users to corrupt the data
of your monitoring environment. It also requires that you understand how
passive checks work, and you have to configure the nsca daemon and the
send_nsca client as well.
SNMP has it's pros, ofcourse, and it's a widespread standard written in
stone. The check_snmp plugin is however a bit limited, so you might want
to write your own plugins if you use it. SNMPv3 is the safest option
available here.
All this is ofcourse just theory. How your network is designed will
probably determine what's best for you.
> Regards
> Sirwah
>
--
Andreas Ericsson
OP5 AB
+46 (0)733 709032
andreas.ericsson at op5.se
-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite! GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list