This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place – Suite 330, Boston, MA 02111-1307, USA.
Improved the extraction method of the values, by getting only the performance data output. At the moment works only with one OID at a time. In the future versions I will fix this.
One needs to know when the input voltage of an UPS drops to zero => an error, as the power line is in fault, but not having problems when the same check is 220V in normal conditions.
With the normal “check_snmp” you can’t check those limits, as the check will always be in error. So this is where this script comes in.
Usage: ./check_snmp_inverter.sh -H <remote_host_IP> -C <comunity_string> -o <OID> -w <warning value> -c <critical value> -u <measure block> -l <label>
The critical value is the real value that one needs to set, for example: 0, and the warning value greater than the critical – ex: 240.
Download the plugin!
Important: Please link to this page and not to the link directly as the storage that hosts the script can be changed.