check_nut_plus [ -D ] -d DEVICE -v CHECK_DESC [ -v CHECK_DESC ... ]
check_nut_plus [ -V | -h ]
This manual page documents the check_nut_plus command.
check_nut_plus is a program to generate an nrpe(8) suitable output of upsc(8), in short a nagios plugin for uninterruptable power supplies (UPS).
Watch and evaluate every value upsc(8) can report.
The kind of comparison can be specified by OPERATOR.
Multiple and combined comparison can be specified.
-d DEVICE
A device description upsc(8) would accept.
-v CHECK_DESC
A check desciption. See CHECK DESCIPTION below.
-D
Enable debugging.
-V
Print version information and exit.
-h
Print help and exit.
check_nut-plus -d DEVICE -v CHECK_DESC [ -v CHECK_DESC ... ]
DEVICE : a device description upsc(8) would accept.
CHECK_DESC := UPSCKEY '=' SEVERITY OPERATOR VALUE [ ':' SEVERITY OPERATOR VALUE ] ...
UPSCKEY : key string as listed by upsc(8), see 'man upsc'
SEVERITY := { 'w' | 'c' }
'w': warning
'c': critical errors
OPERATOR := { '>=' | '>' | '<' | '<=' | '==' | '=' | '<>' | '!=' | '~' | '!~' }
'>=': numerical comparison, reported value is greater or equal than VALUE
'>' : numerical comparison, reported value is greater than VALUE
'<=': numerical comparison, reported value is less or equal than VALUE
'<' : numerical comparison, reported value is less than VALUE
'=' : numerical comparison, reported value is equal to VALUE
'<>': numerical comparison, reported value is not equal to VALUE
'==': string comparison, reported value is identical to VALUE
'!=': string comparison, reported value is not identical to VALUE
'~' : regex match, reported value matches the perl regular expression given by VALUE
'!~': regex match, reported value does not match the perl regular expression given by VALUE
For perl regular expressions see 'man perlre'.
Example 3. observe multiple fixed strings
command[check_ups_model]=/usr/lib/nagios/plugins/check_nut_plus \ -d myups -v "device.mfr=c!=MGE UPS SYSTEMS" -v "device.model=c!=Evolution 1150" \ -v "device.serial=w!=AV4H4301K"
raise critical error if "device.mfr" or "device.model" are not the specified ones. raise warning if "device.serial" has changed so you can see if someone has been tinkering ;-)
This manual page was written by LiHAS <support@lihas.de>
for
the check_nut_plus software and may be used by others.
It has been loosely derived from check_ups by
Luca Bertoncello <lucabert@lucabert.de>.
Permission is granted to copy, distribute and/or modify this document
under
the terms of the GNU Free Documentation
License, Version 1.1 or any later version published by the Free
Software Foundation; with no Invariant Sections, no Front-Cover
Texts and no Back-Cover Texts.
The newest version of check_nut_plus can be obtained from http://ftp.lihas.de/debian
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; Version 2. This guarantees your right to use, modify, and redistribute check_nut_plus under certain conditions.
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 (it is in the COPYING file of the check_nut_plus distribution).