cacti takes 9-10 minutes to respond to the down host

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

Moderators: Moderators, Developers

Post Reply
Author
Message
mrnick99
Posts: 4
Joined: Fri Mar 22, 2019 3:22 am

cacti takes 9-10 minutes to respond to the down host

#1 Post by mrnick99 » Fri Mar 22, 2019 5:25 am

When I simulate a down test with my windows server(disabling the connection), it takes cacti 9-10 minutes to respond to the down host with the message
(CMDPHP Device[test] ERROR: HOST EVENT: Device is DOWN Message: ICMP ping Timed out)
The status under devices is up when the host is down.

os: centos 7
cacti: 1.2.2
poller type: cmd.php
poller sync interval: 2 hours
poller interval: 15 seconds
cron interval: 5 minutes

for detection, I use ICMP ping
ping timeout 400
retry count 1


this is my first time posting on a form if you need more info or want to give tips let me know :wink:

LOG
  • 2019/03/22 10:51:16 - SYSTEM STATS: Time:0.2228 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:51:02 - SYSTEM STATS: Time:1.2515 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:50:47 - SYSTEM STATS: Time:1.2594 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:50:32 - SYSTEM STATS: Time:1.2515 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:50:17 - SYSTEM STATS: Time:1.2381 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:50:02 - SYSTEM STATS: Time:1.2229 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:49:48 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyDeviceDown (CACTI-MIB), severity: high
    2019/03/22 10:49:48 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyDeviceFailedPoll (CACTI-MIB), severity: medium
    2019/03/22 10:49:48 - SYSTEM STATS: Time:2.2710 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:49:47 - CMDPHP Device[test] ERROR: HOST EVENT: Device is DOWN Message: ICMP ping Timed out
    2019/03/22 10:49:31 - SYSTEM STATS: Time:0.2381 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:49:17 - SYSTEM STATS: Time:1.2528 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:49:02 - SYSTEM STATS: Time:1.2641 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:48:47 - SYSTEM STATS: Time:1.2699 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:48:32 - SYSTEM STATS: Time:1.2371 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:48:16 - SYSTEM STATS: Time:0.2441 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:48:01 - SYSTEM STATS: Time:0.2457 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:47:46 - SYSTEM STATS: Time:0.2678 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:47:32 - SYSTEM STATS: Time:1.2388 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:47:17 - SYSTEM STATS: Time:1.2795 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:47:01 - SYSTEM STATS: Time:0.2415 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:46:47 - SYSTEM STATS: Time:1.2751 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:46:32 - SYSTEM STATS: Time:1.2402 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:46:17 - SYSTEM STATS: Time:1.2601 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:46:02 - SYSTEM STATS: Time:1.2349 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:45:46 - SYSTEM STATS: Time:0.2266 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:45:31 - SYSTEM STATS: Time:0.2485 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:45:17 - SYSTEM STATS: Time:1.2481 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:45:02 - SYSTEM STATS: Time:0.2333 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:44:48 - SNMPAGENT WARNING: No notification receivers configured for event: cactiNotifyDeviceFailedPoll (CACTI-MIB), severity: medium
    2019/03/22 10:44:48 - SYSTEM STATS: Time:2.2700 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:44:31 - SYSTEM STATS: Time:0.2303 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:44:16 - SYSTEM STATS: Time:0.2479 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:44:02 - SYSTEM STATS: Time:1.2430 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:43:47 - SYSTEM STATS: Time:1.2454 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:43:32 - SYSTEM STATS: Time:1.2532 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:43:17 - SYSTEM STATS: Time:1.2577 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:43:02 - SYSTEM STATS: Time:1.2447 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:42:47 - SYSTEM STATS: Time:1.2748 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:42:32 - SYSTEM STATS: Time:1.2992 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:42:18 - SYSTEM STATS: Time:1.2465 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:42:03 - SYSTEM STATS: Time:1.2524 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:41:48 - SYSTEM STATS: Time:1.2606 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:41:33 - SYSTEM STATS: Time:1.2406 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:41:17 - SYSTEM STATS: Time:0.2538 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:41:03 - SYSTEM STATS: Time:1.2534 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:40:48 - SYSTEM STATS: Time:1.2565 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:40:33 - SYSTEM STATS: Time:1.3079 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:40:17 - SYSTEM STATS: Time:0.2593 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:40:02 - SYSTEM STATS: Time:0.2373 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:39:46 - SYSTEM STATS: Time:1.2482 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:39:31 - SYSTEM STATS: Time:1.2698 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:39:16 - SYSTEM STATS: Time:1.2372 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:39:01 - SYSTEM STATS: Time:0.2623 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:38:47 - SYSTEM STATS: Time:1.2570 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:38:32 - SYSTEM STATS: Time:1.2377 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:38:17 - SYSTEM STATS: Time:1.2662 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:38:02 - SYSTEM STATS: Time:1.2330 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:37:47 - SYSTEM STATS: Time:1.2474 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:37:32 - SYSTEM STATS: Time:1.2626 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:37:16 - SYSTEM STATS: Time:0.2474 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:37:02 - SYSTEM STATS: Time:1.2384 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:36:47 - SYSTEM STATS: Time:1.2531 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:36:31 - SYSTEM STATS: Time:0.2317 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:36:16 - SYSTEM STATS: Time:0.2527 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:36:01 - SYSTEM STATS: Time:0.2429 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:35:47 - SYSTEM STATS: Time:1.2526 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0
    2019/03/22 10:35:32 - SYSTEM STATS: Time:1.2529 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:0 RRDsProcessed:0

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

Re: cacti takes 9-10 minutes to respond to the down host

#2 Post by netniV » Fri Mar 22, 2019 7:09 am

Which data profile is this host assigned to? If it is a five minute host, then with 1 retry, it will take it about 10 minutes to spot that it's odwn.

mrnick99
Posts: 4
Joined: Fri Mar 22, 2019 3:22 am

Re: cacti takes 9-10 minutes to respond to the down host

#3 Post by mrnick99 » Fri Mar 22, 2019 10:28 am

Thanks, netniV I found the problem.

Under Templates > Data Source > (you're created template)
By changing the Data Source Profile to High Collection Rate. it changed from 5 minutes to 30 seconds.

Is it possible to do that for some devices faster than others, like 30 seconds for internet connection and 10 seconds for servers for example?

Thank you in advance
Extra special thanks for netniV for helping me find the solution, I searched hours for this problem. :D

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

Re: cacti takes 9-10 minutes to respond to the down host

#4 Post by netniV » Fri Mar 22, 2019 10:30 am

You would need to duplicate your templates to have different profiles. The best way is to simply add "(1 minute)" to the template name to make it easier to spot.

Post Reply