Page 1 of 1

check logs

Posted: Tue Jan 10, 2017 8:33 am
by bashar.abed
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

Re: check logs

Posted: Tue Jan 10, 2017 9:41 am
by rkennedy
Can you please show us how the service is defined in XI for which it doesn't work? We'll need to compare the CLI to the definition. It is probably just a formatting issue.

Also, please PM over a profile for us to review. (Admin -> System Profile -> Download Profile)

EDIT: profile received.

Re: check logs

Posted: Mon Jan 16, 2017 8:53 am
by bashar.abed
Hi,

please see find the following for the profile i can not send it nagios profile by public fourm i sent it with private message
[nagios@nms ~]$ /usr/local/nagios/libexec/check_nrpe -H x.x.x.x -t 180 -c check_log
OK - No matches found.

[nagios@nms ~]$ /usr/local/nagios/libexec/check_nrpe -H x.x.x.x -t 180 -c check_logn
OK - No matches found.


thanks

Re: check logs

Posted: Mon Jan 16, 2017 12:30 pm
by ssax
It may be related to permissions issues from testing on the remote server, SSH into the remote server and run su - nagios before running the plugin locally to see if it created temporary files that the nagios user cannot access. Please include any errors that you see.

Thank you