Hi,
Based on the value returned by the System.Uptime parameter, I'm trying to work out a "multiplier" to show data in my custom report. The custom report page basically reads data from the SQL DB of NetXMS after calculating the current date and fetching data from the 1st of each month.
What I'm doing is dividing the value using the following formula:
(value on uptime in DB / 60 sec / 60 min / 24 hrs) * 100
Is there a better way to do this calculation so that I can also have the downtime along with uptime for each month? How do we tackle server reboots?
Based on the value returned by the System.Uptime parameter, I'm trying to work out a "multiplier" to show data in my custom report. The custom report page basically reads data from the SQL DB of NetXMS after calculating the current date and fetching data from the 1st of each month.
What I'm doing is dividing the value using the following formula:
(value on uptime in DB / 60 sec / 60 min / 24 hrs) * 100
Is there a better way to do this calculation so that I can also have the downtime along with uptime for each month? How do we tackle server reboots?