-
-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: Add --show-status and extend cache to store more information about last update #457
Comments
I think that would be a great addition. Just to be pedantic, your three examples of information are actually (partly) present now, albeit not obvious.
Not 100 % sure if that's correct, but anyway your suggestion is way more useful :-) |
Looks good to me, please go ahead! :-) @acolomb: yeah we discussed this a bit in the other issue, I mentioned mtime there, but I didn't consider atime could be used as well. That's clever. |
Adding the info to the file's content is the better and more extensible idea anyway. I guess it's common on Linux distros nowadays to mount some system volumes with |
Agreed 👍 very true. |
You, sir, have eagle eyes. Nicely noted! However, albeit clever:
I'm planning to attack this only in the next week so we still have time for more ideas and brainstorming. For now, I leave you guys with a humble suggestion for the next cache file format (blatantly inspired on
|
That looks very nice. And possible to source from a shell script, I like it! |
Following #455. I propose:
To add a
--status
/--show-status
parameter to Inadyn.This will do a "dry run" (run queries/collect information but don't change/update anything) and, for each configured hostname, output a result like:
The
-j
/--json
modifier could be used to output the above information in JSON format.Extend the informations stored in Inadyn
cache
files.Currently the
cache
file stores only the last ip address updated byinadyn
.Unfortunately, some other useful information are lost like:
The cache format would need to be changed, of course. But (being a cache) this has a relatively minor impact. After a version upgrade, any attempt to read a cache file from older versions would simply be discarded (as if no cache file exists).
Opinions?
If approved, I would be glad to start working on a PR for this in the next week.
The text was updated successfully, but these errors were encountered: