Hallo, On 4/20/2006 12:10 PM, Ralf Prengel wrote:
Vorab: Diese Werte liefert mit check_ups command[check_ups_all]=/usr/lib/nagios/plugins/check_ups -H 127.0.0.1 -u apc -T UPS OK - Status=Online Utility=226.2V Batt=100.0% Load=20.2% Temp=30.1C
Diese Messung meldet immer OK obwohl die Schwellenwerte eigentlich testweise einen Alarm verursachen müssten
Welches check_ups nutzt Du? Bei mir:
# /usr/local/nagios2/libexec/check_ups --help check_ups (nagios-plugins 1.5) 1.5 Copyright (c) 2000 Tom ShieldsCopyright (c) 2004 Alain Richard
Copyright (c) 2004 Arnaud Quette Copyright (c) 2000-2004 Nagios Plugin Development Team This plugin tests the UPS service on the specified host. Network UPS Tools from www.networkupstools.org must be running for this plugin to work. ...etc.
und das funktioniert wohl anders als Deins es soll. Zumindest gibt es bei mir "-v, --verbose Show details for command-line debugging (Nagios may truncate output)"
command[check_ups_linein]=/usr/lib/nagios/plugins/check_ups -H 127.0.0.1 -u apc -T -v LINE -w 220 -c 240
Arno -- IT-Service Lehmann al@its-lehmann.de Arno Lehmann http://www.its-lehmann.de