NRPE checks fail: Stderr: 'usage: check_reboot.py [-h] known_reboot_time
Bug #1971156 reported by
Bas de Bruijne
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NRPE Charm |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In testrun:
https:/
with FCE console output:
https:/
A number of nrpe checks fail with:
```
Stderr: 'usage: check_reboot.py [-h] known_reboot_time
check_reboot.py: error: argument known_reboot_time: time must be in format
yyyy-mm-dd HH:MM:SS, same as output from `uptime --since`.
'
```
I assume something in the check arguments or calling has changed.
Link to crashdumps (which also contains an exported bundle):
https:/
Related branches
~xavpaice/charm-nrpe:LP1971156
- Alvaro Uria (community): Approve
- 🤖 prod-jenkaas-bootstack (community): Approve (continuous-integration)
- BootStack Reviewers: Pending requested
-
Diff: 15 lines (+2/-2)1 file modifiedactions/run-nrpe-check (+2/-2)
Changed in charm-nrpe: | |
status: | Confirmed → Fix Released |
milestone: | none → 22.04 |
To post a comment you must log in.
A simple reproducer is deploying NRPE as shown from the charm help, and then running the check with no arguments:
juju deploy ubuntu
juju deploy nrpe
juju deploy nagios
juju add-relation ubuntu nrpe
juju add-relation nrpe:monitors nagios:monitors
juju wait
juju run-action --wait nrpe/0 run-nrpe-check name=check-reboot
Currently SQA has a nagios validator which
1) lists all the checks for a NRPE unit
2) runs the nrpe check for each check
3) reports the errors.
Check reboot comes up as an listed check, but when ran with no argument reports as a failed check. I feel like the check should be able to check the juju kv for the known reboot time, if there is no known reboot time, it does nothing, otherwise does the compare.
ack-reboot can then behave the way it does currently.