[Nagiosplug-devel] [ nagiosplug-Bugs-1714823 ] check_ups - -v parameter not working / needs documentation

SourceForge.net noreply at sourceforge.net
Wed May 9 11:19:01 CEST 2007


Bugs item #1714823, was opened at 2007-05-08 11:51
Message generated for change (Comment added) made by psychotrahe
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1714823&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: Argument proccessing
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Ask Bjoern Hansen (ask)
>Assigned to: Matthias Eble (psychotrahe)
Summary: check_ups - -v parameter not working / needs documentation

Initial Comment:
./check_ups --help
says -v is 

[-v variable]

and 

 -v, --verbose
    Show details for command-line debugging (Nagios may truncate output)

The detailed documentation talks about specifying a variable, so I am guessing the first version is correct.   The information on what the variables are is missing though.

./check_ups -H localhost -u ups1 -T 
UPS OK - Status=Online Utility=113.0V Batt=100.0% Load=59.0% Temp=29.0C|voltage=113000mV;;;0 battery=100%;;;0;100 load=59%;;;0;100 temp=29degC;;;0


# ./check_ups -H localhost -u ups1 -T -v Temp
check_ups: Unrecognized UPS variable - Temp
Usage:check_ups -H host -u ups [-p port] [-v variable] [-w warn_value] [-c crit_value] [-to to_sec] [-T]

# ./check_ups -H localhost -u ups1 -T -v Batt
check_ups: Unrecognized UPS variable - Batt
Usage:check_ups -H host -u ups [-p port] [-v variable] [-w warn_value] [-c crit_value] [-to to_sec] [-T]

# ./check_ups -H localhost -u ups1 -T -v load
check_ups: Unrecognized UPS variable - load
Usage:check_ups -H host -u ups [-p port] [-v variable] [-w warn_value] [-c crit_value] [-to to_sec] [-T]


----------------------------------------------------------------------

>Comment By: Matthias Eble (psychotrahe)
Date: 2007-05-09 11:19

Message:
Logged In: YES 
user_id=1694341
Originator: NO


Hi Ask,

you are right, -v/--verbose is not used, so I commented it out in the
--help screen.
I also added -v/--variable to the --help page in cvs.

The solution to your problem is to use one of these values for -v: LINE,
TEMP, BATTPCT or LOADPCT.

hth
Matthias

----------------------------------------------------------------------

Comment By: Matthias Eble (psychotrahe)
Date: 2007-05-09 11:19

Message:
Logged In: YES 
user_id=1694341
Originator: NO

this problem is now fixed in cvs.  thank you for your report.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1714823&group_id=29880




More information about the Devel mailing list