plugins

Platt, Nicholas Nick.Platt at myflorida.com
Mon Mar 1 17:18:02 CET 2004


>From the PLUGINS directory, this is how you do it manually:

 

 

cd /usr/lib/nagios/plugins

[root at enms plugins]# ./check_snmp -H 192.168.24.1 -o .1.3.6.1.4.1.9.2.1.56.0
-C [CommunityString]

SNMP OK - 2

 

It worked from me!

 

>From the services file, you must configure the
/usr/local/nagios/etc/checkcommands.cfg file match the same arguments:

 

# 'check_snmp' command definition

define command{

        command_name    check_snmp

        command_line    $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -w
$ARG2$ -c $ARG3$ -P 1 -C $ARG4$

        }

 

You then can configure the /usr/local/nagios/etc/services.cfg

 

 

define service{

        use                             generic-service         ; Name of
service template to use

 

        host_name                       TestRouter

        service_description             Check CPU

        is_volatile                     0

        check_period                    24x7

        max_check_attempts              3

        normal_check_interval           1

        retry_check_interval            1

        contact_groups                  network-admins

        notification_interval           60

        notification_period             24x7

        notification_options            c,u,r

        check_command                  check_snmp!
.1.3.6.1.4.1.9.2.1.56.0!70!90!CommunityString

 

 

 

-----Original Message-----
From: Yiannis Zimianitis [mailto:yiannis.zimianitis at sssltd.co.uk] 
Sent: Monday, March 01, 2004 9:12 AM
To: 'Goldberg Alain (IT)'; Yiannis Zimianitis;
nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] plugins

 

It doesn't work I am afraid. The OID does not exist. Or better it does exist
but its not the only one. Each interface has ifInOctets and ifOutOctets and
when I tried to set the warning and critical limits always comes up with
critical

Thanks very much

Any more ideas?

 

-----Original Message-----
From: Goldberg Alain (IT) [mailto:alain at towersemi.com] 
Sent: 29 February 2004 06:58
To: Yiannis Zimianitis; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] plugins

 

I have this in checkcommands.cfg

 

define command {
                command_name                   check_snmpif
                command_line                   $USER1$/check_snmp -H
$HOSTADDRESS$ -o $ARG1$ -m IF-MIB
                }

 

 the check_snmpif in this format spares a lot of MIB parsing.

 

 

and this in servicves.cfg:

 

check_command                  check_snmpif!enterprises.9.2.1.58.0 -w 1:50
-c 1:70

 

 

 will warn above 50% and critical above 70%

____________________________________________________________________________
____________________________________________________________________________
_________
Alain Goldberg - Network manager - CCDA/CCNA AGG-RIPE - Tower
Semiconductors LTD.    Tel : 972-4-6506003 Fax : 972-4-6547788 Cell:
972-64-209662

____________________________________________________________________________
____________________________________________________________________________
_________



 

 

 

  _____  

From: Yiannis Zimianitis [mailto:yiannis.zimianitis at sssltd.co.uk] 
Sent: Thursday, February 26, 2004 11:44 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] plugins

 

I am after some plugins or any ideas on how to monitor cpu load on cisco
routers. Also utilization on the links (serial - fastethernet etc)

Thanks Yiannis 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040301/58d7a474/attachment.html>


More information about the Users mailing list