www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

Monitoring and eMail/SMS Alert Suite for Zeroshell 3.0.0

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell
View previous topic :: View next topic  
Author Message
fulvio
Site Admin


Joined: 01 Nov 2006
Posts: 1077

PostPosted: Sun May 11, 2014 1:25 pm    Post subject: Monitoring and eMail/SMS Alert Suite for Zeroshell 3.0.0 Reply with quote

Hi,

the Monitoring and e-Mail/SMS Alerts Suite is a new component that enable Zeroshell to keep under control some critical Events that could occur. To each event is assigned a Severity Level based on which the Recipients of eMail and SMS alerts are selected. The Severity Levels are: Info, Warning, Critical and Emergency
You can change the severity of an event and customize the related Handling Event Bash Script. As example, you could add some Firewall Rules in the Handling Script of the DDoS Attack event to reject the traffic from the host that has triggered the event. You can also define new events to handle specific situations of your environment by assigning them the proper handling script. Below, there is the list of predefined events with the related severity:

Internet Connectivity Fault (Critical)
VPN Connectivity Fault (Warning)
Bonding Connectivity Fault (Critical)
Gateway Connectivity Fault (Net Balancer) (Warning)
DDoS Attack (Warning)
Profile Disk Full (Emergency)
Memory Full (Critical)
High Load Average (Warning)
Bonding Member Interface Fault (Warning)
The system is going down (Info)
The system has been started (Info)
Too many authentication failures (Warning)
Successfully login by admin (Info)

As you can see, many of these events may have to be handled very quickly in a production environment. Hence the importance of installing and configuring correctly this package in order to ensure the rapid resolution of service outages.

Regards
Fulvio


Last edited by fulvio on Wed Jul 16, 2014 7:42 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
jmi



Joined: 13 May 2014
Posts: 3

PostPosted: Tue May 13, 2014 3:04 pm    Post subject: Reply with quote

Hi,
I have installed this package but I have a problem.
When I try to test an e-mail delivery, I have this message:
TEST (Emergency): e-Mail delivery FAULT for USER (USER@domain.com)
/root/kerbynet.cgi/scripts/sendmail: line 38: smtp-cli: command not found

Thank you for your help.
Regards,
Jmi


edit:
Ok just replaced the line 38 with:
/opt/smtp-cli/bin/smtp-cli --subject="$SUBJECT" --from="$SMTPSENDER" --to="$RECIPIENT" --server="$SMTPSERVER" --port="$SMTPPORT" $SECURITYSTRING $AUTHSTRING --body-plain=$BODY
and it works.

It seems that the path is missing...
Back to top
View user's profile Send private message
fulvio
Site Admin


Joined: 01 Nov 2006
Posts: 1077

PostPosted: Tue May 13, 2014 6:57 pm    Post subject: Reply with quote

Did you restart the system as required?
Regards
Fulvio


Last edited by fulvio on Thu May 15, 2014 8:55 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
jmi



Joined: 13 May 2014
Posts: 3

PostPosted: Wed May 14, 2014 5:59 am    Post subject: Reply with quote

Hi Fulvio,
Yes I did...
Jmi
Back to top
View user's profile Send private message
fulvio
Site Admin


Joined: 01 Nov 2006
Posts: 1077

PostPosted: Thu May 15, 2014 8:47 pm    Post subject: Reply with quote

Probably there is a conflict with another installed package. Could you post the list of installed package?
Back to top
View user's profile Send private message Send e-mail
jmi



Joined: 13 May 2014
Posts: 3

PostPosted: Sun May 18, 2014 8:18 pm    Post subject: Reply with quote

Hi Fulvio,
here is the list:
30500 Monitoring and e-Mail/SMS Alerts Suite Enabled May 10, 2014 Feature
30400 Connection Top List Utility (cntop) Enabled Feb 25, 2014 Feature
30300 High Performance Firewall, QoS and NAT Router Enabled Feb 24, 2014 Feature
40300 Firmware and Microcode for Network Interfaces, CPU and other devices Enabled Jan 26, 2014 Add-On
48300 Kernels optimized for AMD Geode LX/GX (ALIX) and Intel ATOM 3.4.75 Enabled Jan 2, 2014 Add-On

Regards,
Jmi
Back to top
View user's profile Send private message
dsolive



Joined: 20 May 2014
Posts: 1

PostPosted: Tue May 20, 2014 11:30 pm    Post subject: Monitoring and email/sms suite problems Reply with quote

Hi, Fulvio.

I can not registering recipients on email alerts. When I try to register, the system does not save the data and don't return any message. what is happening?
Back to top
View user's profile Send private message
Witchdoctor



Joined: 05 Oct 2014
Posts: 6

PostPosted: Sun Oct 05, 2014 11:39 pm    Post subject: Alerts Reply with quote

I take it you have built the Alert/email package into Release 3.2.0 which is what I just installed. I see an alert manager in Monitoring and I was able to get it to send me a test email.

Is there a way to schedule alerts? Also is there a tutorial available for writing my own alerts? Currently my Zeroshell is getting it's WAN address via DHCP from my ISP. Occasionally this will change and I'd like to get an alert if that happens.

Thanks for a great product.
WD
Back to top
View user's profile Send private message
fulvio
Site Admin


Joined: 01 Nov 2006
Posts: 1077

PostPosted: Mon Oct 06, 2014 3:10 am    Post subject: Reply with quote

Hi,
you can monitor any parameter and state of Zeroshell activity by writing your event management scripts, but at the moment does not exist an how-to so you have to study the prebuilt event handlers to understand how they work.

Regards
Fulvio
Back to top
View user's profile Send private message Send e-mail
Witchdoctor



Joined: 05 Oct 2014
Posts: 6

PostPosted: Mon Oct 06, 2014 4:48 pm    Post subject: Language Reply with quote

Are the scripts written in a particular language? Or just basic BASH scripts.

WD
Back to top
View user's profile Send private message
fulvio
Site Admin


Joined: 01 Nov 2006
Posts: 1077

PostPosted: Mon Oct 06, 2014 6:27 pm    Post subject: Reply with quote

The event handlers are written in Bash
Back to top
View user's profile Send private message Send e-mail
Witchdoctor



Joined: 05 Oct 2014
Posts: 6

PostPosted: Tue Oct 14, 2014 5:35 pm    Post subject: Reply with quote

fulvio wrote:
The event handlers are written in Bash


Been nearly 20 years since I wrote Bash scripts. This is gonna be interesting.
Back to top
View user's profile Send private message
Shadok



Joined: 10 Jan 2013
Posts: 39

PostPosted: Fri Oct 17, 2014 12:04 pm    Post subject: Reply with quote

I have an issue with the email and Zeroshell 3.2 :

TEST (Emergency): Message (ID:327db4dd) queued for delivery.
TEST (Emergency): e-Mail delivery FAULT for Passerelle (test@domain.tld)
Connect failed: IO::Socket::INET6: connect: Connection refused
TEST (Emergency): Waiting to be reprocessed

Our mail server isn't ipv6 capable but our net links are.
Enabling ipv6 on our mail server doesn't fix the issue.

No IPv6 is set in zeroshell.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group