summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-12-19 12:39:09 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2011-12-19 12:39:09 +0100
commit76a5a1b8356610233bb70fc2d4c32b03aa42bd75 (patch)
tree91b4169b5cfc7c4e14c1569c80eb119a6fa1b76a /action.c
parent6bcc1e371b8c27b227a7c87f475063f7fddfd44f (diff)
parent7837c523b8da7ac90c6efbb3de12855978ecaecf (diff)
downloadrsyslog-76a5a1b8356610233bb70fc2d4c32b03aa42bd75.tar.gz
rsyslog-76a5a1b8356610233bb70fc2d4c32b03aa42bd75.tar.xz
rsyslog-76a5a1b8356610233bb70fc2d4c32b03aa42bd75.zip
Merge branch 'v5-stable-newstats' into v5-devel
Diffstat (limited to 'action.c')
-rw-r--r--action.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/action.c b/action.c
index ca054d84..656d3282 100644
--- a/action.c
+++ b/action.c
@@ -341,6 +341,10 @@ actionConstructFinalize(action_t *pThis)
CHKiRet(statsobj.AddCounter(pThis->statsobj, UCHAR_CONSTANT("processed"),
ctrType_IntCtr, &pThis->ctrProcessed));
+ STATSCOUNTER_INIT(pThis->ctrFail, pThis->mutCtrFail);
+ CHKiRet(statsobj.AddCounter(pThis->statsobj, UCHAR_CONSTANT("failed"),
+ ctrType_IntCtr, &pThis->ctrFail));
+
CHKiRet(statsobj.ConstructFinalize(pThis->statsobj));
/* create our queue */
@@ -1105,6 +1109,7 @@ submitBatch(action_t *pAction, batch_t *pBatch, int nElem)
&& pBatch->pElem[i].state != BATCH_STATE_COMM ) {
pBatch->pElem[i].state = BATCH_STATE_BAD;
pBatch->pElem[i].bPrevWasSuspended = 1;
+ STATSCOUNTER_INC(pAction->ctrFail, pAction->mutCtrFail);
}
}
bDone = 1;