3.3 DeviceReboot

Use this Knowledge Script to monitor whether an SNMP device or its network management component has rebooted between job intervals. This script tracks the uptime value of the host (hrSystemUptime.0) or the network management component (sysUpTime.0) across job iterations to determine whether devices have rebooted. If the uptime value is less than the last iteration, the device has either rebooted or the uptime counter value has wrapped.

This script attempts to track sysUpTime.0 on all SNMP devices where the script is run, regardless of whether any previous attempts have failed. If failures do occur, successful retrievals on other devices are not discarded.

This script generates data streams for each monitored SNMP device. The data value saved is the current number of hours the device has been up.

3.3.1 Resource Objects

SNMP Device objects

3.3.2 Default Schedule

By default, this script runs every hour.

3.3.3 Setting Parameter Values

Set the following parameters as needed:

Description

How to Set It

SNMP Parameters

SNMP port number

Specify the UDP port number on the remote SNMP device to which you want to send SNMP requests. The default is 161.

SNMP retries

Set the number of retries to attempt if a timeout occurs on an SNMP request. The default is 2 retries.

SNMP timeout

Set the number of seconds to wait for a response before timing out an SNMP request. The default is 5 seconds.

Collect data for device uptime?

Set to Yes to collect data for use in graphs and reports. If data collection is enabled, returns the device uptime in hours. The default is unchecked.

Monitor host uptime or uptime of the network management portion of the system?

Specify whether you want to monitor the uptime of the SNMP device or its network management component. The default is Host uptime.

Event Notification

Raise event if device has rebooted?

Set to Yes to raise an event if a device reboot is detected. The details of the event contain the retrieved data.

Event severity when device has rebooted

Set the severity level, from 1 to 40, to indicate the importance of an event in which a device reboots. The default is 15.

Raise event if SNMP timeout exceeded?

Set to Yes to raise an event if the SNMP Get request receives no response from the device, and all retries fail.

Event severity when SNMP timeout exceeded

Set the severity level, from 1 to 40, to indicate the importance of an event in which the SNMP timeout threshold is exceeded. The default is 15.

Raise event if SNMP Response error received?

Set to Yes to raise an event if an SNMP Response error is received from the device. The type of error is reported in the event details.

Event severity when SNMP Response error received

Set the severity level, from 1 to 40, to indicate the importance of an event in which an SNMP Response error is received. The default is 10.

Raise event if device uptime baseline established?

Set to Yes to raise an event when initial data values are retrieved, setting the baseline for comparison on the next retrieval.

Event severity when device uptime baseline established

Set the severity level, from 1 to 40, to indicate the importance of an event in which baseline is established. The default is 25.

Raise event if the host uptime is not available?

Set to Yes to raise an event when the host uptime is not available. The default is Yes.

Event severity when the host uptime is not available.

Set the severity level, from 1 to 40, to indicate the importance of an event in which the host uptime is not available. The default is 15.