check logs
Posted: Tue Jan 10, 2017 8:33 am
Hi,
the following command is for monitoring log files through in NRPE agent but when run this command on server directly as the following alarm appear on the log
but from Nagios side this command shows no matches always
from server logs directly
/usr/lib/nagios/plugins/check_log4 -l /space/canvas_42_ussd/canvas/platform/current/logs/log_ramw01_6664 -s /tmp/log5.log -p 'severity=CRITICAL|severity=MAJOR|FATAL|OutOfMemory|GONE|TERMINATE'
(12): 2017-01-10 14:54:36:912 LOG DmiLabelNotFound. Session does not exist, possibly closed. Related Message is : SessionMessage, sessionMessageType: SESSION_TERMINATE_VALUE, origAgentType: AGENT_TYPE_SMPP_VALUE, destAgentType: AGENT_TYPE_USSD_VALUE, OrigAgentId: 800784132, DestAgentId: 0, sessionId: 972597018751, returnLabel: 0, rdestLabel: 390634938, rcdrKey: -000938863337:1509f8b:15988320f5f:4da0, sourceMessagePart: MessagePart: OperationResult:operationResult: 0, operationErrorContext: 0, operationErrorCode: 0, isLastPartValue: true, protocolSpecificId: 0 MessagePartAppGw: MessagePartGwSmpp:, Pdu SmppPdu: type = data_sm size = 99 status = 0 sequence = 368193: Dump: 00000063000001030000000000059E41555353440001013937323539313035393939000101393732353937303138373531000000000501000101042400052A383838232002000C3937323539313035393939002000000C393732353931323239393900, destMessagePart: MessagePart: OperationResult:operationResult: 0, operationErrorContext: 0, operationErrorCode: 0, isLastPartValue: true, protocolSpecificId: 0 MessagePartSS7Gw: priority: false, extendedDeliveryReportRequired: false MessagePartGwUssd, hlrAddress: nullVlrId: nullImsi: null signalingPointEncoding: 0 operationCode: 0 ssUserData: null ussdDataCodingScheme: null ussdString: null sourceAddress: null destAddress: null alertingPattern: null dialoguePortion: null, serviceCode: 0, sessionType: , direction: UNDEFINED com.telenity.canvas.messaging.applicationgw.processors.AbstractSmppProcessor.sendSessionMessage(AbstractSmppProcessor.java:882) ramw01 11323 Client-29
Thanks
the following command is for monitoring log files through in NRPE agent but when run this command on server directly as the following alarm appear on the log
but from Nagios side this command shows no matches always
from server logs directly
/usr/lib/nagios/plugins/check_log4 -l /space/canvas_42_ussd/canvas/platform/current/logs/log_ramw01_6664 -s /tmp/log5.log -p 'severity=CRITICAL|severity=MAJOR|FATAL|OutOfMemory|GONE|TERMINATE'
(12): 2017-01-10 14:54:36:912 LOG DmiLabelNotFound. Session does not exist, possibly closed. Related Message is : SessionMessage, sessionMessageType: SESSION_TERMINATE_VALUE, origAgentType: AGENT_TYPE_SMPP_VALUE, destAgentType: AGENT_TYPE_USSD_VALUE, OrigAgentId: 800784132, DestAgentId: 0, sessionId: 972597018751, returnLabel: 0, rdestLabel: 390634938, rcdrKey: -000938863337:1509f8b:15988320f5f:4da0, sourceMessagePart: MessagePart: OperationResult:operationResult: 0, operationErrorContext: 0, operationErrorCode: 0, isLastPartValue: true, protocolSpecificId: 0 MessagePartAppGw: MessagePartGwSmpp:, Pdu SmppPdu: type = data_sm size = 99 status = 0 sequence = 368193: Dump: 00000063000001030000000000059E41555353440001013937323539313035393939000101393732353937303138373531000000000501000101042400052A383838232002000C3937323539313035393939002000000C393732353931323239393900, destMessagePart: MessagePart: OperationResult:operationResult: 0, operationErrorContext: 0, operationErrorCode: 0, isLastPartValue: true, protocolSpecificId: 0 MessagePartSS7Gw: priority: false, extendedDeliveryReportRequired: false MessagePartGwUssd, hlrAddress: nullVlrId: nullImsi: null signalingPointEncoding: 0 operationCode: 0 ssUserData: null ussdDataCodingScheme: null ussdString: null sourceAddress: null destAddress: null alertingPattern: null dialoguePortion: null, serviceCode: 0, sessionType: , direction: UNDEFINED com.telenity.canvas.messaging.applicationgw.processors.AbstractSmppProcessor.sendSessionMessage(AbstractSmppProcessor.java:882) ramw01 11323 Client-29
Thanks