Giter Site home page Giter Site logo

Comments (12)

TheCableGuy99 avatar TheCableGuy99 commented on June 22, 2024 1

Thanks for this, i personally run the app under the root user as i've not concerns, it's all internal and i'm happy with my security setup. But the command on the same page will help :)

As for the shutting down of the database, i'm taking from what you said that you shut it down hard but it could cause issues so we should shut it down gracefully.

Problem is, I don't know how to see if a scan is running or how to shut it down once one isn't?

Maybe you could add a little more info/commands to the same page to advise how to do a safe update?

Thanks.

from pi.alert.

leiweibau avatar leiweibau commented on June 22, 2024

Hello

I was wondering if you can add a button on the page after checking for updates to update Pi.Alert if there is an update? Each time I update I have to come back here looking for the command. It's not a huge issue but certainly a lot more convenient to just press a button on the Pi.Alert page.

Unfortunately, this is not quite as trivial as it seems at first. On the one hand, it may be that I also want to update the script that performs the update, but this is not possible if it is currently running. On the other hand, the user www-data would have to be given even more admin rights, which I would like to avoid. However, I can display the update command in the frontend.

Also, I noticed when running the script, it says to shut down the database to avoid corruption, can this not be added to shut it down and then check the pid to ensure it has closed down before continuing then restart it after?

To be honest, I also end all scans "hard", but I would like to give everyone the opportunity to consciously reconsider at this point whether the current scan has run through. I don't want to break anything by killing the process.

from pi.alert.

leiweibau avatar leiweibau commented on June 22, 2024

It will look like this after the next update.

update

from pi.alert.

leiweibau avatar leiweibau commented on June 22, 2024

On the Settings -> Statusbox you can see, if a scan is currently running

Problem is, I don't know how to see if a scan is running or how to shut it down once one isn't?

status

There are actually 2 warnings 😉, but of course you know that. Immediately after the first warning, I stop all scans via pialert-cli and pause Pi.Alert for 10 minutes. Depending on the setting, a notification "should" appear. In the course of the update, a second warning then appears immediately before the database is updated. Pi.Alert is not terminated again here, as I do not assume that everything will take longer than 10 minutes. Afterwards, Pi.Alert is started again via pialert-cli, which also leads to another notification.

Maybe you could add a little more info/commands to the same page to advise how to do a safe update?

Thank you for pointing this out. I will revise/extend the warning in the update script.

I would also like to thank you for your many good suggestions and constructive comments in the past. Just before the Christmas season, it's time to say "thank you".

from pi.alert.

TheCableGuy99 avatar TheCableGuy99 commented on June 22, 2024

Firstly, I should be the one thanking you again.... you put all the work into this and if this was a docker container I couldn't run it because I don't have enough virtual switches for it to sit on al the vlans I have. I also think for the features and layout you have the best fork out there. So, thank you and for listening and all the time you put into it for us :)

I have some more suggestions for you though based on what you said above...

I actually never noticed the status section you pointed out before and I even had to look for it after it was just pointed out. The reason is because the section is collapsed and expandable by default. I was wondering if you can either make this open by default and remember your preferences for each section if you expand or collapse them? I presume it's something in the cookies that would do that? It's just each time I go back to there the sections are collapsed.

The other thing is just the status of the scan. Currently it says "0 scan(s) currently running". Can you change to say the same but add a countdown timer next to it when the next scan will start? As you might start and update when a scan starts, there's no indication when it will start and I think that's important.... the more info the better I say!,

Thanks again for all your consideration and efforts.

from pi.alert.

leiweibau avatar leiweibau commented on June 22, 2024

I actually never noticed the status section you pointed out ... reason is because the section is collapsed and expandable by default.

I collapsed the box as standard with the last update. I will undo this with the next update. I experimented with automatic collapsing (after 3 or 5 sec) in the beginning, but it always irritated me a bit.

The other thing is just the status of the scan. Currently it says "0 scan(s) currently running". Can you change to say the same but add a countdown timer next to it when the next scan will start?

I have added a countdown that indicates the start of a new scan. However, the text ("x scan(s) currently ...") is not yet updated in this context, as a running scan is recognized when the page is loaded. I can't yet say whether I will change this to JS. However, I have added a checkbox in the next update with which you can activate an automatic reload of the page every 2 minutes.

countdown menu

from pi.alert.

TheCableGuy99 avatar TheCableGuy99 commented on June 22, 2024

Brilliant, thank you as always, I look forward to the update :)

from pi.alert.

leiweibau avatar leiweibau commented on June 22, 2024

Update released with 3482459

button on the page after checking for updates to update Pi.Alert if there is an update

I am not planing to do that ❌
We have already talked about this

Each time I update I have to come back here looking for the command

Show command on the update page ✅

Can you change to say the same but add a countdown timer next to it when the next scan will start?

Add Timer ✅

Maybe you could add a little more info/commands to the same page to advise how to do a safe update?

Update Help/FAQ. Add a hint to the FAQ in the warning ✅

The reason is because the section is collapsed and expandable by default.

Roll back collapsed status box ✅

I hope I haven't overlooked anything important and would be pleased if I can help you with one or two things.

Greetings

from pi.alert.

TheCableGuy99 avatar TheCableGuy99 commented on June 22, 2024

Hey,

This is awesome, all looks great... thank you.

I have 1 more idea regarding the updates....

Why not give the option for it to automatically check for updates every 6 hours, or however often the user wants. Then it emails a notification. It already has email capabilities so emails, so I presume it's not that difficult to send a notification.

Then stop any further emails on updates until an update is done so you don't get repeated emails about the update.

What do you think?

from pi.alert.

leiweibau avatar leiweibau commented on June 22, 2024

I've also thought about that before. That would be a task for the backend. Something like that will probably come along, but I can't say when yet.

from pi.alert.

TheCableGuy99 avatar TheCableGuy99 commented on June 22, 2024

I've thought about it and thought it might be pretty easy to setup....

Setup a cron job to check for updates every 4 hours and if there is send an email and remove the cron so not further checks are needed and no further emails are sent.
Next updates checks if the cron is present and if not re-adds it.

Maybe if possible allow users to be able to edit the check frequency from the admin interface which alters the cron schedule?

Just a thought but I know you know way more than me haha

Cheers.

from pi.alert.

leiweibau avatar leiweibau commented on June 22, 2024

But that's a story for a future feature request 😉

from pi.alert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.