Loging of who logged in and what command they did, is this possible?

Hi!

I am using allmon2 and supermon on my node. that run a 900 MHZ repeater.
As most user that have a 900 mhz radio dont have a dtmf pad on their radio we want to supply a way to link/unlink nodes based on the allmon2 page. I allready commented the part of the option we did not wanted the user to have access. and they have a nice way to work their way with the node like that.

But as we have to monitor what is being done on the node is there a way to reads some logs to know what user did what command?

thanks

Pierre
VE2PF

1 Like

On the surface, you can’t know who a user is via ASL, only nodes.
While I would agree that most nodes are single personal stations anymore, it is not always the case.

And we have /var/log/asterisk/
I had it in my head that there was a way to change the verbosity of the log file, but it escapes me how.
I think you would need to change the verbosity to capture the dtmf pushes.

Perhaps someone has a better answer. You might also do a search in this system as the topic did come up a few times back in the days of the mailman system and those archives have been imported.

When I re-read your message, I kinda got a different impression of what you were saying.
Are you wanting to log activity on allmon/supermon ?

That I can point you to.

Here is a php snippet that is the essence of logging ip’s to a txt file.
You would need to find a appropriate place to insert it to not cause any problems.
Catch the right place and perhaps log the commands sent as well.
You could easily add a date/time stamp in the file as well.
Google is your friend. (sometimes)

<?php $ipaddress = $_SERVER["REMOTE_ADDR"]; $file = fopen("ipalog.txt", "a+"; fwrite($file, $ipaddress ; fclose($file ; ?>

Hi @Pierre_Martel,

There is no logging like that in Allmon2. It might be useful to have ACL’s as well. All that could be added, after all it is open source. How’d ya like to learn some php? :slight_smile:

That a nice snip of php code @Mike. I think @Pierre_Martel would like to log the logged in user as well.