nagios check error reporting is poor
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
InfluxDB Charm |
New
|
Undecided
|
Unassigned |
Bug Description
I just got an alert for "CRITICAL: Exception while attempting to check InfluxDB".
This turned out to be because:
$ sudo -u nagios /usr/local/
Failed to connect to http://
Please check your connection settings and ensure 'influxd' is running.
CRITICAL: Exception while attempting to check InfluxDB
Traceback (most recent call last):
File "/usr/local/
output = subprocess.
File "/usr/lib/
raise CalledProcessEr
subprocess.
$ _
The check should capture output and include it in its output when a command fails.
Yes, I've changed the password I leaked in the original description.