Commit 39b7ee87 authored by ueli heuer's avatar ueli heuer 👾
Browse files

Check value for integer

parent 7ebdec7c
......@@ -967,7 +967,8 @@ sub uptime_cb($$$) # {{{
if (defined($session->var_bind_list)) {
$uptime = $session->var_bind_list->{$SNMP_sysuptime};
$newhost_status = 'up';
if (isint($uptime) && ($uptime < $olduptime)) {
#if (isint($uptime) && ($uptime < $olduptime)) {
if ($uptime < $olduptime) {
Unix::Syslog::syslog (LOG_WARNING,
"U_CB: (%d;%s::0) has restarted; last uptime: %s",
$host_id, $session->hostname(), $olduptime);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment