Can I know details on how system reboot alert mechanism works when data is collected using SNMP?

Please find elaborated working of the system reboot alarm -
• If the current system uptime is collected for first time then collected time will be system uptime.
• If the system uptime is not collected for the first time then we compare it with the previously collected system uptime.
• If current system uptime is greater than previous system uptime then its normal scenario and device is continued to be UP.
• If current system uptime is less than previous system uptime then there could be two possibilities

  1. Genuinely device got rebooted

  2. Current system uptime roll over happened

    • To confirm whether 1) or 2), we rely on current SNMP engine time OID (snmpEngineTime) data.

    • If current SNMP engine time is greater than previous SNMP engine system uptime then it means current SNMP engine time OID value continued to increase and device is not rebooted and roll over happened. Do not generate system reboot alarm.

    • If current SNMP engine time is less than previous SNMP engine system uptime then it means device is genuinely rebooted. Generate the system reboot alarm.