[Nagios-users] Snmptrap with Nagios

2007-04-17 Thread Aritz . Lazkano
Hello.

I have to monitor a thing that works with snmptraps, but I don`t know 
what I have to do.
I have read something about check_dummyHow is it works?
And then what i have to do, Create a service with passice_ check activate, 
and using the check_dummy command?
Thanks,
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Snmptrap with Nagios

2007-04-17 Thread Michael Schwartzkopff
Am Dienstag, 17. April 2007 08:54 schrieb [EMAIL PROTECTED]:
 Hello.

 I have to monitor a thing that works with snmptraps, but I don`t know
 what I have to do.
 I have read something about check_dummyHow is it works?
 And then what i have to do, Create a service with passice_ check activate,
 and using the check_dummy command?
 Thanks,

see:

http://nagios.sourceforge.net/docs/3_0/int-snmptrap.html

-- 
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: [EMAIL PROTECTED]
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Snmptrap with Nagios

2007-04-17 Thread Mike Hamrick

 I have to monitor a thing that works with snmptraps, but I don`t know 
 what I have to do.

You need to have a machine that listens for SNMP traps.  The program
snmptrapd does this, it comes with net-snmp package.  This daemon
writes the trap info to the system log, or alternately runs a 
program and passes it the trap information.  That program can then
submit a check to nagios using NSCA or by writing to the nagios.cmd
pipe.

I found this article to be very helpful:

http://www.samag.com/documents/s=9559/sam0503g/

Mike



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Snmptrap with Nagios

2007-04-17 Thread Thomas Guyot-Sionnest
On 17/04/07 02:54 AM, [EMAIL PROTECTED] wrote:
 
 Hello.
 
 I have to monitor a thing that works with snmptraps, but I don`t know
 what I have to do.
 I have read something about check_dummyHow is it works?
 And then what i have to do, Create a service with passice_ check
 activate, and using the check_dummy command?

First you need a trap handler properly set up to return passive results.
I use SNMPTT (http://www.snmptt.org/) though you may want to look at
OpsView (http://www.opsview.org/) as is seems to do a great job at
simplifying the trap setup.

Then you set up the service as volatile. People usually disable active
checks and use freshness checking to get the trap reset automatically
after some time. If you rather want the service to stay in a non-OK
state until someone change it you can make it active (It won't be
scheduled if volatile) and have someone force an active check to reset
the trap.

In either case it the check command should looks like:

check_command  check_dummy!0!Trap reset on $LONGDATETIME$

and check_dummy should run something like:

$USER1$/check_dummy $ARG1$ $ARG2$

Thomas

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Nagios-users mailing list
Nagios-users@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