Nagios SNMP Plugins are super handy! This package comes with two plugins you can use alongside Nagios. While they might still work with NetSaint, it’s pretty outdated, so I don't support that anymore. Just a heads up, you'll need a decent version of the Net SNMP Daemon to get started.
Now, let’s talk about NET-SNMP. It has this cool feature that lets you check running processes and disk sizes right from the SNMP daemon. You can configure your checks in the snmpd.local.conf
file like this:
proc syslogd
proc klogd
disk / 5%
disk /usr 10%
This setup ensures that your system always has free space on crucial drives and keeps those important processes running smoothly!
Querying these stats from a monitoring tool can be tricky, but don’t worry—these plugins do all the heavy lifting for you. I created them mainly for Linux, but they should work on other *x operating systems too! If you manage to get them to compile elsewhere, please share your success!
I tested these plugins on several systems, including:
If you're using *BSD, it should compile as long as you've got a GNU getline library.
To install, just unpack the distribution and run these commands:
aclocal
autoheader
automake --add-missing
autoconf
./configure
make
You can also just run ./build.sh
. After that, you'll have two binaries: check_snmp_disk and check_snmp_proc.
You can set up these plugins in Nagios in two ways. The old way is by adding lines to your /etc/nagios/command.cfg
. Here's how:
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$
The new method involves editing /etc/nagios/checkcommands.cfg
. Remember to replace paths as needed!
Go to the Softpas website, press the 'Downloads' button, and pick the app you want to download and install—easy and fast!
SoftPas is your platform for the latest software and technology news, reviews, and guides. Stay up to date with cutting-edge trends in tech and software development.
Subscribe to newsletter
© Copyright 2024, SoftPas, All Rights Reserved.