You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I had an issue because the calibwarn parameter wasn't properly recognized - as we have a leapyear and my calibration now is 366 days old which resulted in a warning. Anyways, there is a hyphen in your optstring after "T" which results in every option after "t" (lowercase) being omitted.
The text was updated successfully, but these errors were encountered:
The hypen in the optstring allows getopts in the script to process long options, like "--calibwarn". The hypen in the getopts string, in this case, is treated just like any other letter. In getopts processing, it is handled a little differently, but I dealt with that in the script. A simple test that options after the hypen are recognized would be /usr/lib64/nagios/plugins/check_common_ups -V
Are you using this in Icinga? Have you tried calling the script manually with the appropriate options for the offending ups?
Hi, I had an issue because the calibwarn parameter wasn't properly recognized - as we have a leapyear and my calibration now is 366 days old which resulted in a warning. Anyways, there is a hyphen in your optstring after "T" which results in every option after "t" (lowercase) being omitted.
The text was updated successfully, but these errors were encountered: