> On Jul 26, 2017, at 08:47, darksom--- via PacketFence-users 
> <[email protected]> wrote:
> 
> I would like to know two things:
> 
> 1 - How to clean logs from /usr/local/pf/logs without causing problems?
> 
logrotate should do that for you already, subject to its configuration.

See /etc/logrotate.d/packetfence.conf

It can be run manually. See man logrotate.

Ultimately these are just text files.
You can move them around, compress them, whatever.

The only caveat is that if a process is running (and has an open file 
descriptor to one of those files) you should stop it first before moving or 
deleting the file.
But I recommend letting logrotate do it for you.

If it's keeping too much to your taste all you need to do is to edit 
/etc/logrotate.d/packetfence.conf to have it keep fewer copies, or rotate it 
more frequently.


> 2 - how to see and how to change the routine to check the status of nodes 
> (Registered -> Unegistered)?
> 
> 
> 

I don't know what you mean by that.
Do you mean the pfmon job that changes the state from registered to 
unregistered when a device has reached it's unregistration date?
Do you want to see the code for that?
Or just the frequency it runs at?

If the latter, there is a nodes_maintenance_interval variable that is set by 
default to 60s.
You can find it in the "maintenance" section of the GUI.



Regards,
--
Louis Munro
[email protected] <mailto:[email protected]>  ::  www.inverse.ca 
<http://www.inverse.ca/> 
+1.514.447.4918 x125  :: +1 (866) 353-6153 x125
Inverse inc. :: Leaders behind SOGo (www.sogo.nu <http://www.sogo.nu/>) and 
PacketFence (www.packetfence.org <http://www.packetfence.org/>)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to