Possible to get system error notifications?

Moderator: crythias

Locked
iandarke
Znuny newbie
Posts: 4
Joined: 12 Aug 2020, 22:50
Znuny Version: 6.0.x
Real Name: Ian Darke
Company: Writers guild of America West

Possible to get system error notifications?

Post by iandarke »

Our OTRS system is configured to retrieve emails from a few different mailboxes. A few days ago one of the passwords on those mailboxes expired and the system stopped being able to retrieve new tickets and new ticket responses.

We found out about this because of a "why isn't anyone answering me?" complaint from an internal customer.

Once we looked in the Admin Log we could see the issue:

OTRS-otrs.Console.pl-Maint::PostMaster::MailAccountFetch-10 CommunicationLog(ID:317775,AccountType:-,AccountID:-,Direction:Incoming,Transport:Email,ObjectLogType:Connection,ObjectLogID:376544)::Kernel::System::MailAccount::POP3 => POP3: Auth for user [mailbox]/[mailserver] failed!

... but ideally we would like to have been sent an email indicating that PostMaster was failing.

Short of writing code to parse log files for strings, is there a "built in" / better way to establish push notifications of critical errors?
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Possible to get system error notifications?

Post by skullz »

Generally, mail account fetch is one of the scheduler..hence you will be able to forward *all* scheduler error to specific email address..

https://doc.otrs.com/doc/manual/admin/6 ... orker.html

good luck
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
root
Administrator
Posts: 4250
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Possible to get system error notifications?

Post by root »

iandarke wrote: 13 Aug 2020, 02:43 Short of writing code to parse log files for strings, is there a "built in" / better way to establish push notifications of critical errors?
Hi Ian,

Do you use a monitoring solution like Icinga2, etc.? I recommend configuring a check instead of parsing logfiles.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
iandarke
Znuny newbie
Posts: 4
Joined: 12 Aug 2020, 22:50
Znuny Version: 6.0.x
Real Name: Ian Darke
Company: Writers guild of America West

Re: Possible to get system error notifications?

Post by iandarke »

skullz wrote: 13 Aug 2020, 04:36 Generally, mail account fetch is one of the scheduler..hence you will be able to forward *all* scheduler error to specific email address..

https://doc.otrs.com/doc/manual/admin/6 ... orker.html

good luck
Thanks for the suggestion. I just made this change in the config and committed it and then I modified the password so it would fail and waited for the scheduler to run. I see the error logged, but I didn't receive an email notification.

I thought it might be because we used SendmailModule Kernel::System::Email::SMTP in the system and didn't have postfix running so I started postfix up and confirmed it can deliver email, but I haven't seen any messages.

am I missing something?
Last edited by iandarke on 19 Aug 2020, 19:41, edited 1 time in total.
iandarke
Znuny newbie
Posts: 4
Joined: 12 Aug 2020, 22:50
Znuny Version: 6.0.x
Real Name: Ian Darke
Company: Writers guild of America West

Re: Possible to get system error notifications?

Post by iandarke »

root wrote: 13 Aug 2020, 07:49 Hi Ian,
Do you use a monitoring solution like Icinga2, etc.? I recommend configuring a check instead of parsing logfiles.
- Roy
Thanks for the suggestion. If I can't get schedulerTaskWorker notifications working I will setup syslog forwarding and catch it there.
iandarke
Znuny newbie
Posts: 4
Joined: 12 Aug 2020, 22:50
Znuny Version: 6.0.x
Real Name: Ian Darke
Company: Writers guild of America West

Re: Possible to get system error notifications?

Post by iandarke »

as the ScheduleTaskWorker didn't seem to be sending out emails, I ended up implementing a syslog based solution.

Thanks for the suggestions!
Locked