How to stop logging/messages to the console?
-
I am periodically interrupted by logging/messages when connected to the console.
Example:
Message from syslogd@pfSense1 at Mar 17 09:45:35 ...
pfSense1 php-fpm[90115]: /index.php: Successful login for user 'user' from: 10.0.0.1 (Local Database)How do I stop these messages from being sent to the console?
-
@aeleus That's a very IMPORTANT info...why on Earth would you want to stop it? That's what all firewall appliance does... I do not understand why that would interrupt you...
-
@NollipfSense I don't want to disable the logging. I just want to stop the messages from popping up on screen when I'm connected to the console. It disrupts my ability to do things like edit crontab and obscures my view of pfTop.
I don't need to be notified every 5 minutes that there has been a "successful login" while I'm trying to do something on the console. I can look at the log files if I need that information.
These messages pop up both on the console and when using PuTTY.
-
@aeleus said in How to stop logging/messages to the console?:
I don't need to be notified every 5 minutes that there has been a "successful login"
If you log in every five minutes, then you will receive that message...there is no way round this...you're barking at the wrong tree. Or when you log in, don't log out.
-
Press
^L
(Ctrl-l
) to refresh your terminal if the message overwrites something.If you must disable them, it's under System > Advanced, WebGUI login messages.
You can't disable the console message without also disabling the log message entirely, so be wary of disabling that. -
@NollipfSense The thing is, I am not logging in every 5 minutes. It's actually a remote monitor checking the gateway status because they occasionally go down (multiple pfSense instances with multiple gateways each).
@jimp Thank you for the information. Now I can make an informed decision. Much more helpful than "you're holding it wrong".
-
@aeleus FWIW, I find WinSCP dandy for editing files. Of course, Windows...
-
@aeleus I now see your situation clearly. I would try what Jimp recommended, before completely disabling...good luck!
-
@NollipfSense I have what I need. Thanks for the input!
-
There are probably better ways of remote monoriting the gateway status if that's all it's doing.
-
@stephenw10 said in How to stop logging/messages to the console?:
There are probably better ways of remote monoriting the gateway status if that's all it's doing.
I am currently using a script that relies on pulling the gateway status from the webui (/widgets/widgets/gateways.widget.php)
If there is a better way, I'd love to know what it is.
-
Well my first though is that a WAN going down is something that triggers an alert so simply configuring the built in notifications would send something whenever that happens.
You could probably use SMTP. You could use syslog exporting and parse that at the server.So currently you have a scheduled script that runs the php widget code and sends back the result to some central collection point?
Steve
-
Or NET-SNMP with an external script which returns the gateway status.
Or a similar agent like Zabbix or NRPE which could be scripted in similar ways.