pfSense Gold Subscription

Author Topic: System: Advanced: Notifications  (Read 13217 times)

0 Members and 1 Guest are viewing this topic.

Offline brainloss

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
System: Advanced: Notifications
« on: April 08, 2013, 05:57:21 am »
I've setup SMTP E-mail notifications and received a test message

"This is a test message from pfSense.  It is safe to ignore this message."

My question is;   What is classed as a notification?   ie gateway failure?  service stopped?  Interface down?  SMART HDD failure detected?
NUT reporting UPS on battery?


I searched about but could not a list of possible "notifications"


Many thanks for pfsense!

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 20505
  • Karma: +1254/-10
    • View Profile
Re: System: Advanced: Notifications
« Reply #1 on: April 08, 2013, 12:47:09 pm »
Mostly, anything in the GUI that makes the notification bar flash. Usually it's pretty dire things such as firewall rules failing to load, failed CARP syncs, etc.

It does also send a notification on gateway failures, and when a CARP VIP changes state (master/backup).

That's one thing I intend to work on for 2.2.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline kelsen

  • Sr. Member
  • ****
  • Posts: 517
  • Karma: +1/-0
    • View Profile
Re: System: Advanced: Notifications
« Reply #2 on: April 08, 2013, 12:53:18 pm »
There is a package called mailreport that you can get many logs based in /var/log directory and command line, and you can set filter too.

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 20505
  • Karma: +1254/-10
    • View Profile
Re: System: Advanced: Notifications
« Reply #3 on: April 08, 2013, 12:55:53 pm »
There is a package called mailreport that you can get many logs based in /var/log directory and command line, and you can set filter too.

Yes, those are good for periodic reports, but they aren't reactive (e.g. immediate notification when event X happens).
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline brainloss

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: System: Advanced: Notifications
« Reply #4 on: April 09, 2013, 03:02:49 am »
Thanks for the responses.

Overnight I had one notification:

Quote
MONITOR: FTTC001 is down, removing from routing group

but have not received a message to say the connection has come back online (manually checking shows it has)

I currently have FTTC & ADSL with 3 routing groups 1. PreferFTTC  2. PreferADSL  3. LoadBalance.  After configuration rules to use the gateways I successfully have failover between the two wan connection working, which works really well, very pleased.   Failover is wonderful, but I'd need to know if either of the connection has a potential fault so the underlying cause can be investigated.

I've played with Zabbix in the past - Maybe worth dusting that box off and finding out if the events can be detected/reported from Zabbix


Currently running 2.0.2-RELEASE(amd64).
Procurve & ZyXEL Layer2 switches, Lots of VLAN, siproxd, NUT, three Intel 1000 PCI cards in a Intel Dual Core E6300, Intel Desktop Board
Northamptonshire, UK

Many thanks for pfsense

Offline brainloss

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: System: Advanced: Notifications
« Reply #5 on: April 09, 2013, 05:08:01 am »
If I wanted to discover all the possible notifications that pfsense can deliver via email, are they neatly all in one file or are they scattered across the source code?   If in one file, could you point me in the right direction?

Offline kelsen

  • Sr. Member
  • ****
  • Posts: 517
  • Karma: +1/-0
    • View Profile
Re: System: Advanced: Notifications
« Reply #6 on: April 09, 2013, 06:33:47 am »
Quote
I've played with Zabbix in the past - Maybe worth dusting that box off and finding out if the events can be detected/reported from Zabbix
I have done a template that you can use if you want,
http://forum.pfsense.org/index.php/topic,58279.0.html
You can use the interfaces status item to make a trigger.

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 20505
  • Karma: +1254/-10
    • View Profile
Re: System: Advanced: Notifications
« Reply #7 on: April 09, 2013, 07:05:44 am »
The notifications are scattered all over, you'd have to grep around the source for file_notice() and similar calls to the function that notifies by e-mail.

We only notify when a gateway goes down, we don't notify when a gateway comes back up. It's a quirk of how the gateway monitoring works, we don't get the 'up' event the same way we get the 'down' event, often we have to assume it's up after the monitoring daemon restarts rather than seeing an 'up' event.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline brainloss

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: System: Advanced: Notifications
« Reply #8 on: April 11, 2013, 04:17:42 am »
Thanks for replies,

I have received

Code: [Select]
MONITOR: FTTC001 is down, removing from routing group
and then sometime later

Code: [Select]
Gateways status could not be determined, considering all as up/active.

I think I'll head down the zabbix route and see how that works out


Thanks!