Using SNMP as an alternative to NRPE

Joerg Linge pitchfork at ederdrom.de
Mon Jul 17 17:55:10 CEST 2006


Am Montag, 17. Juli 2006 17:26 schrieb jeffrey at hyves.nl:
> Sorry  :)
>
> I'm running snmp version 5.2.2 on nearly 200 machines (some pentium 4,
> 3ghz machines, others dual opterons 248), all being checked by the
> Nagios host. I'm using the snmp scripts from
> http://www.manubulon.com/nagios/ and have them all setup to use v2c. The
> snmp configs are set-up with just a rocommunity.

I use net-snmp to execute tho local plugins via snmp get method.

In /etc/snmpd.conf every check is defined.

---
exec 1.3.6.1.4.1.7411.10 check_swap /usr/local/nagios/libexec/check_swap -w 
20% -c 10%
---

If you run an snmpwalk on 1.3.6.1.4.1.7411.10 you will get the result for 
check_swap.

snmpwalk -v1 -On -c <comm> localhost .1.3.6.1.4.1.7411.10
.1.3.6.1.4.1.7411.10.1.1 = INTEGER: 1
.1.3.6.1.4.1.7411.10.2.1 = STRING: "check_swap"
.1.3.6.1.4.1.7411.10.3.1 = STRING: "/usr/local/nagios/libexec/check_swap -w 
20% -c 10%"
.1.3.6.1.4.1.7411.10.100.1 = INTEGER: 0
.1.3.6.1.4.1.7411.10.101.1 = STRING: "SWAP OK - 100% free (2055 MB out of 2055 
MB) |swap=2055MB;411;205;0;2055"
.1.3.6.1.4.1.7411.10.102.1 = INTEGER: 0
.1.3.6.1.4.1.7411.10.103.1 = ""

I use SNMP on all Linux Maschines an it works fine for me.

Jörg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060717/d9708a69/attachment.sig>
-------------- next part --------------

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
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