How to stop logging/messages to the console?
-
@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.