Hello,
I am trying to save disk space on my server database and I've done an script that returns which users are conected to the monitored server.
This script is simple, it execute the command w, and if there is someone connected it returns a list of: "[Time]: [IP] [(user)]"; But if no one is in, returns "Nobody".
My question is, is there a way to make that the server only save in the database the value of the item when it is different from the previous value?
I've tryed to do that the script returns " " when w returns the same that the previous execution (saved on a local file). In this case, the server do what want, saving only when the item change his value, but the server begin to miss other monitored items, like processor load making to appear blanks spaces in graphs.
I hope you can help me. Excuse my english...
Andrés
I am trying to save disk space on my server database and I've done an script that returns which users are conected to the monitored server.
This script is simple, it execute the command w, and if there is someone connected it returns a list of: "[Time]: [IP] [(user)]"; But if no one is in, returns "Nobody".
My question is, is there a way to make that the server only save in the database the value of the item when it is different from the previous value?
I've tryed to do that the script returns " " when w returns the same that the previous execution (saved on a local file). In this case, the server do what want, saving only when the item change his value, but the server begin to miss other monitored items, like processor load making to appear blanks spaces in graphs.
I hope you can help me. Excuse my english...
Andrés
Comment