Nagios SNMP Plugins icon

Nagios SNMP Plugins For Linux

3.2/5 21
GPL    

Nagios SNMP Plugins package contains two plugins to be used with Nagios.. #SNMP plugin  #Nagios plugins  #SNMP daemon  #Nagios  #SNMP  #Plugin  

Description

Free Download

Nagios SNMP Plugins package contains two plugins to be used with Nagios. They should still work with NetSaint, but as this is now really ancient, I don't support Netsaint any longer. You also need the Net SNMP Daemon in a reasonable new version.

� Nagios � Net-SNMPD

NET-SNMP gives you an unique feature: It makes checks for running processes and/or disk size configurable in the SNMP daemon and queryable via SNMP. So you can do

proc syslogd proc klogd

disk / 5% disk /usr 10%

in your snmpd.local.conf and have the snmp daemon check that you always have free space on your root and usr file system and that you have syslogd and klogd processes running.

Querying this from a monitoring tool however, is very cumbersome. You need to check what disks are there, then query error status.

These two plugins do all the work for you.

Well, on Linux. That's where I wrote them. They should compile on any other *x like Operating system, too. If you get them to compile, please let me know.

I compiled and tested these plugins on

� RedHat Linux 9 � Fedora Core 1,3-6 � RedHat Enterprise Linux 3-5 � CentOS 5

using various nagios versions between 1.2 and 2.9. Users reported success on various SuSE Linux and SLES versions. Compilation on *BSD seems to be possible if you have a GNU getline library.

Unpack the distribution.

Run

aclocal autoheader automake --add-missing autoconf ./configure make

or simply

./build.sh

You should now have two binaries: check_snmp_disk and check_snmp_proc.

Copy them into your Nagios plugins directory.

Using Nagios there are two ways to configure the plugins:

The old way: add the following two lines to your /etc/nagios/command.cfg:

command[check_snmp_disk]=/usr/lib/nagios/plugins/check_snmp_disk -H $HOSTADDRESS$ -C $ARG1$ command[check_snmp_proc]=/usr/lib/nagios/plugins/check_snmp_proc -H $HOSTADDRESS$ -C $ARG1$

Replace /usr/lib/nagios/plugins/ with the directory where you copied the binaries!

The new way: add the following lines to your /etc/nagios/checkcommands.cfg:

# 'check_snmp_disk' command definition define command { command_name check_snmp_disk command_line $USER1$/check_snmp_disk -H $ARG1$ -C $USER3$ }

# 'check_snmp_proc' command definition define command { command_name check_snmp_proc command_line $USER1$/check_snmp_proc -H $ARG1$ -C $USER3$ }

The Community password should be defined in your resources.cfg config file. If you don't use $USER3$, adjust the definition above.

First, select something to check. You find a detailed description in man snmpd.conf(5).

I, e.g. use (in /etc/snmpd/snmpd.local.conf under RedHat/Fedora):

# # SNMP checked disks # disk / 5% disk /usr 5% disk /var 10% disk /boot 1% disk /mnt/disk0 10% # # SNMP checked Processes # proc crond proc ntpd proc sshd proc syslogd proc klogd

Which assures that my disks do not fill up and that I have the most important processes running on my boxes.

You need a configured snmpd with at least a read community configured.

Now try your configuration: Run the disk plugin manually:

check_snmp_disk -H host to check -C community

It should report either

Checked xxx disks. and a return code of 0 if everything is fine (xxx should be the number of disks configured in the snmp.local.conf file),

or

< diskname >: less than xxx% free (= yyy%) (devicename) and a return code of 2 if there is a problem (diskname and devicename depend on the disk, xxx is the threshold configured and yyy is the actual free space).

The same testing can be done with the check_snmp_proc plugin. Now configure your monitor program to monitor a host (in hosts.cfg):

The old way:

service[myhost]=DISK;0;24x7;3;5;1;admins;120;24x7;1;1;0;;check_snmp_disk!''community'' service[myhost]=PROC;0;24x7;3;5;1;admins;120;24x7;1;1;0;;check_snmp_proc!''community''

where community is your read-community from above) and you are set. The ;0;24x7;3;5;1;admins;120;24x7;1;1;0;; parameters should be adjusted to match your configuration.

The new way:

# Service definition define service { use generic-service

host_name myhost service_description Disk Space check_command check_snmp_disk!myhost }

# Service definition define service { use generic-service

host_name myhost service_description Running processes check_command check_snmp_proc!myhost }

You should replace myhost with your host.

What's New in This Release:

� This release adds an '-l' option to list checked disks and processes in the output.

Nagios SNMP Plugins 1.2

add to watchlist add to download basket send us an update REPORT
  runs on:
Linux
  filename:
nagios-snmp-plugins-1.2.tar.gz
  main category:
System
  developer:
  visit homepage

calibre 7.9.0

Effortlessly keep your e-book library thoroughly organized with the help of the numerous features offered by this efficient and capable manager
calibre

4k Video Downloader 1.5.3.0080 Plus / 4.30.0.5655

Export your favorite YouTube videos and playlists with this intuitive, lightweight program, built to facilitate downloading clips from the popular website
4k Video Downloader

IrfanView 4.67

With support for a long list of plugins, this minimalistic utility helps you view images, as well as edit and convert them using a built-in batch mode
IrfanView

Bitdefender Antivirus Free 27.0.35.146

Feather-light and free antivirus solution from renowned developer that keeps the PC protected at all times from malware without requiring user configuration
Bitdefender Antivirus Free

Context Menu Manager 3.3.3.1

Customize Windows’ original right-click context menu using this free, portable and open-source utility meant to enhance your workflow
Context Menu Manager

Microsoft Teams 24060.3102.2733.5911 Home / 1.7.00.7956 Work

Effortlessly chat, collaborate on projects, and transfer files within a business-like environment by employing this Microsoft-vetted application
Microsoft Teams

Zoom Client 6.0.3.37634

The official desktop client for Zoom, the popular video conferencing and collaboration tool used by millions of people worldwide
Zoom Client

Windows Sandbox Launcher 1.0.0

Set up the Windows Sandbox parameters to your specific requirements, with this dedicated launcher that features advanced parametrization
Windows Sandbox Launcher

7-Zip 23.01 / 24.04 Beta

An intuitive application with a very good compression ratio that can help you not only create and extract archives, but also test them for errors
7-Zip

ShareX 16.0.1

Capture your screen, create GIFs, and record videos through this versatile solution that includes various other amenities: an OCR scanner, image uploader, URL shortener, and much more
ShareX

% discount
Windows Sandbox Launcher
  • Windows Sandbox Launcher
  • 7-Zip
  • ShareX
  • calibre
  • 4k Video Downloader
  • IrfanView
  • Bitdefender Antivirus Free
  • Context Menu Manager
  • Microsoft Teams
  • Zoom Client
essentials


Load comments
This enables Disqus, Inc. to process some of your data. Disqus privacy policy