Problem mit Nagios und check_ups, Alarmierung funktioniert nur teilweise
![](https://seccdn.libravatar.org/avatar/e2951fce8869bfe3ea27a01e0b73b3b8.jpg?s=120&d=mm&r=g)
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 command[check_ups_linein]=/usr/lib/nagios/plugins/check_ups -H 127.0.0.1 -u apc -T -v LINE -w 220 -c 240 srvlxint:/usr/lib/nagios/plugins # ./check_ups -H 127.0.0.1 -u apc -T -v LINE -w 1 -c 1 UPS OK - Status=Online Utility=228,0V Batt=100,0% Load=20,0% Temp=30,0C|voltage=228000mV;1000;1000;0 battery=100%;;;0;100 load=20%;;;0;100 temp=30degF;;;0 srvlxint:/usr/lib/nagios/plugins # ./check_ups -H 127.0.0.1 -u apc -T -v LINE -w 1000 -c 1000 UPS OK - Status=Online Utility=228,0V Batt=100,0% Load=20,0% Temp=30,0C|voltage=228000mV;1000000;1000000;0 battery=100%;;;0;100 load=20%;;;0;100 temp=30degF;;;0 Ich nutze Suse 10 und das von Suse gelieferte nut-Paket. Gibt es da ggf. Probleme die bekannt sind? Die anderen möglichen Parameter TEMP,BATTPCT und LOADPCT funktionieren. Danke für Tips Gruß
![](https://seccdn.libravatar.org/avatar/b616838ebed8ad5a698e5ba205f7571a.jpg?s=120&d=mm&r=g)
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
![](https://seccdn.libravatar.org/avatar/e2951fce8869bfe3ea27a01e0b73b3b8.jpg?s=120&d=mm&r=g)
Arno Lehmann schrieb:
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 srvlxint:/usr/lib/nagios/plugins # ./check_ups -V check_ups (nagios-plugins 1.4.1) 1.27
aus dem Suse 10 RPM kannst du mir ggf. dein Plugin mailen? Gruß
![](https://seccdn.libravatar.org/avatar/b616838ebed8ad5a698e5ba205f7571a.jpg?s=120&d=mm&r=g)
Hallo, On 4/20/2006 12:52 PM, Ralf Prengel wrote:
Arno Lehmann schrieb:
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
srvlxint:/usr/lib/nagios/plugins # ./check_ups -V check_ups (nagios-plugins 1.4.1) 1.27
aus dem Suse 10 RPM
Hab' ich nie benutzt... Nagios und Plugins mache ich mir immer aus den Sourcen nachdem ich mit den rpms genug Probleme hatte.
kannst du mir ggf. dein Plugin mailen?
Sicher, aber Du kannst natürlich auch selber die Plugins runterladen. Ich heb' jetzt schon eine ganze Weile die Versionen von Andreas Ericsson genommen. URL kann ich jetzt wegen wackeliger Netzanbindung nicht rauskriegen, aber im Listenarchiv von nagios-users oder per google solltest Du was finden, irgendwo unter op5.se Arno
Gruß
-- IT-Service Lehmann al@its-lehmann.de Arno Lehmann http://www.its-lehmann.de
participants (2)
-
Arno Lehmann
-
Ralf Prengel