simple chech using snmp

Robert Hajime Lanning lanning at lanning.cc
Mon Oct 2 19:07:12 CEST 2006


<quote who="Thomas Sluyter">
> Right then... Clean slate for this e-mail...
>
> I've set up my snmpd.conf to include the following.
>
> 	exec .1.3.6.1.4.1.6886.4.1.4 check_d_root /usr/local/nagios/libexec/
> check_disk -w 15 -c 5 -p /
>
> SNMPWalking through that gives me:
>
> 	$ snmpwalk -v 2c -c management localhost .1.3.6.1.4.1.6886
> 	SNMPv2-SMI::enterprises.6886.4.1.4.1.1 = INTEGER: 1
> 	SNMPv2-SMI::enterprises.6886.4.1.4.2.1 = STRING: "check_d_root"
> 	SNMPv2-SMI::enterprises.6886.4.1.4.3.1 = STRING: "/usr/local/nagios/
> libexec/check_disk -w 15 -c 5 -p /"
> 	SNMPv2-SMI::enterprises.6886.4.1.4.100.1 = INTEGER: 0
> 	SNMPv2-SMI::enterprises.6886.4.1.4.101.1 = STRING: "DISK OK - free
> space: / 29707 MB (90%);| /=3409MB;33100;33110;0;33115"
> 	SNMPv2-SMI::enterprises.6886.4.1.4.102.1 = INTEGER: 0
>

Or, since you are using NET-SNMP, things like FS utilization checks
are really easy.

http://lanning.cc/custom_plugins/check_snmp_fsutil

This way I touch the monitored systems as little as possible.
There are even real good optimizations if you use ePN with caching.
You can edit p1.pl to load all the SNMP MIBs at start, instead of
each plugin execution.

-- 
And, did Guloka think the Ulus were too ugly to save?
                                         -Centauri


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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