SNMP and Nagios
Max H.
btmanmeh at verizon.net
Wed May 31 17:47:24 CEST 2006
George Monappallil wrote:
> Does anybody have a detailed doc on how I can configure Nagios to use
> SNMP to monitor hosts and network equipment.
> Is there a way of getting info on remote hosts ( disks, cpu etc )
> without installing the NRPE or other addons on the remote hosts. Most of
> the time, it is not feasible to do so.
>
> I have NET:SNMP installed on my Nagios ( 2.3.1) box (Solaris 9).
>
Chances are if you can poll devices with SNMP, then someone has already
written the plugins necessary to process that data.
Check out:
<http://www.nagiosexchange.org/>
check_snmp_disk.pl -- disk usage info
check_snmp_mem.pl -- memory info
check_snmp_procs.pl -- processes info and so on...
These kinds of plugins require a little more overhead for Nagios to
process, but if you don't have a huge network to monitor it seems to
work fine.
A lot of the plugins written to monitor these things are written in
Perl, so you'll need Perl installed on the machine. An example of
check_snmp_disk.pl in action would be:
In checkcommands.cfg:
# 'snmp_disk' Let's try to check for free space on remote disks
define command{
command_name snmp_disk
command_line $USER1$/check_snmp_disk.pl -H $HOSTADDRESS$ -C
public -w $ARG1$ -c $ARG2$
}
You'll have to specify the services to correspond in services.cfg, but
hopefully this will get you started in the right direction.
Also to note, you'll need to specify the partitions or disks in the SNMP
configuration files on your remote hosts. I'm not sure what Solaris does
for SNMP, but for example in RHEL, under /etc/snmpd.conf you have to
specify the parameters that SNMP is allowed to report.
Hopefully this gets you started!
Max
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
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