Ceph health check reports CRITICAL /var/lib/nagios/cat-ceph-status.txt: does not exist in Jammy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NRPE Charm |
New
|
Undecided
|
Unassigned |
Bug Description
Ceph health checks is reporting "CRITICAL /var/lib/
The cron at /etc/cron.
*/5 * * * * root /usr/local/
with the following content
#!/bin/bash
# Copyright (C) 2014 Canonical
# All Rights Reserved
# Author: Jacek Nykis <email address hidden>
LOCK=/var/
lockfile-create -r2 --lock-name $LOCK > /dev/null 2>&1
if [ $? -ne 0 ]; then
exit 1
fi
trap "rm -f $LOCK > /dev/null 2>&1" exit
DATA_DIR=
if [ ! -d $DATA_DIR ]; then
mkdir -p $DATA_DIR
fi
DATA_FILE=
TMP_FILE=$(mktemp -p ${DATA_DIR})
ceph status --format json >${TMP_FILE}
chown root:nagios ${TMP_FILE}
chmod 0640 ${TMP_FILE}
mv ${TMP_FILE} ${DATA_FILE}
results in error 127
root@juju-
+ LOCK=/var/
+ lockfile-create -r2 --lock-name /var/lock/
+ '[' 127 -ne 0 ']'
+ exit 1
The charms are running in Jammy
ceph-mon 17.2.0 active 1 ceph-mon quincy/stable 109 no Unit is ready and clustered
nrpe active 1 nrpe stable 96 no Ready
I thought we fixed it for Quincy channel, can you double check if you have this fix? /bugs.launchpad .net/charm- ceph-mon/ +bug/1998163
https:/