Status always UP

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
awake
Posts: 1
Joined: Tue Feb 20, 2018 12:42 pm

Status always UP

Post by awake »

I have a problem with my new Cacti 1.1.35
After i setup the SNMP connection, select the device template and create the proper graphs it connects and starts registering graphs but once the host goes down nothing happens.
In the device list and monitoring the status is UP.

I keep getting this in the log

02/21/2018 10:22:24 - CMDPHP PHP ERROR WARNING Backtrace: (/poller.php: 632 CactiErrorHandler)(/lib/functions.php: 4619 cacti_debug_backtrace)
02/21/2018 10:22:24 - ERROR PHP WARNING: A non-numeric value encountered in file: /var/www/html/cacti/poller.php on line: 632

I see that the system keeps identifying that the host is down but in monitoring or devices its status is UP.

Please tell me what information do you need from me in order to solve this problem.

Thanks
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Status always UP

Post by netniV »

If that line is still the same in the development version, you have somehow managed to trigger

Code: Select all

cacti_log('WARNING: Cacti Polling Cycle Exceeded Poller Interval by ' .
        $loop_end-$loop_start-$poller_interval . ' seconds', 
        true, 'POLLER', $level);
This in turn means that somehow, you've got an issue where either $loop_start, $loop_end or $poller_interval is not a numer.

Are you still seeing this issue? If so, can you add the following code just before that line:

Code: Select all

if (!is_numeric($loop_end)) cacti_log('loop end is NOT numeric');
if (!is_numeric($loop_start)) cacti_log('loop start is NOT numeric');
if (!is_numeric($poller_interval)) cacti_log('poller_interval is NOT numeric');
if (!is_numeric($level) cacti_log('level is NOT numeric');
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Status always UP

Post by netniV »

My gut feeling is that it will be poller_interval that is non-numeric.

Code: Select all

select name,value from settings where name = 'poller_interval';
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests