Forum Discussion

carlosrojasy19's avatar
6 hours ago

Assistance Request to Resolve "No Data" Error on Devices Monitored via Batchscript in Collectors

Dear Engineers,
I am reaching out for your assistance to resolve an issue affecting multiple devices in our LogicMonitor portal (logicmonitor.com), where several datapoints are displaying a "No Data" message. Upon review, we noticed that tasks executed under “batchscript” are returning the value "False," indicating that despite various adjustments and recommendations, the Collectors are not successfully executing all tasks related to “batchscript,” which affects the retrieval of information for reports, graphical event analysis, alerts, etc.

We have examined the associated graphs, specifically the LogicMonitor_Collector_DataCollectingTasks-batchscript graphs for the five (5) assigned Collectors, and observed high rates of unexecuted tasks. Below are the actions taken so far:
Actions Taken:
- Adjusted properties for prioritization on the collectors:
PropertySuggested ValueBenefit
collector.threads.poolsize100Improves concurrency for general tasks.
collector.threadpool.size50A larger pool allows the collector to handle more tasks simultaneously.
collector.cache.max_objects15000-20000Increases temporary cache storage capacity.
collector.enable_batchingtrueOptimizes data transmission in batches.
collector.device.batch.size30Processes more devices at once, improving performance.
collector.batchscript.retry3Enhances fault tolerance for script execution.
collector.batchscript.timeout30A longer timeout ensures complex scripts can execute without interruptions.
collector.batchscript.pollinginterval300Balances data collection frequency and resource usage.
collector.batchscript.maxconcurrenttasks10Allows parallel execution of scripts across multiple devices.
collector.snmp.retries3-4 attemptsImproves reliability in networks with packet loss.
collector.snmp.timeout5 secondsIncreases stability for SNMP queries in slower networks.
collector.snmp.parallelrequests10Improves monitoring speed by processing more requests in parallel.
collector.snmp.fetchthreads30Enhances concurrency for SNMP data collection.
interface.snmp.methodgetconcurrentSpeeds up SNMP data collection.
paloalto.threadpoolsize10Adjusts thread count when monitoring Palo Alto firewall aspects.
cisco.ipsec.aggtun.timeout10Tweaks monitoring behavior for IPSec tunnels.
cisco.ipsec.aggtun.threadpoolsize10A larger pool allows the collector to handle more tasks in parallel.

A larger pool allows the collector to handle more tasks in parallel.

- Constant review and updates of**: DataSource, EventSource, ConfigSource, PropertySource, AppliesTo, and SNMP SysOID Maps for each device brand.
- Adjustment of batchscript task processing for all collectors**, updating `collector.batchscript.threadpool` and `collector.batchscript.timeout` values:
- (1) **Collector-Large**: 127 Devices
- `collector.batchscript.threadpool=200`, `collector.batchscript.timeout=360`
- (1) **Collector-Medium**: 15 Devices
- `collector.batchscript.threadpool=180`, `collector.batchscript.timeout=360`
- (1) **Collector-Small**: 8 Devices
- `collector.batchscript.threadpool=170`, `collector.batchscript.timeout=360`

- (1) **Collector-Small**: 14 Devices
- `collector.batchscript.threadpool=170`, `collector.batchscript.timeout=360`
- (1) **Collector-Small**: 20 Devices
- `collector.batchscript.threadpool=170`, `collector.batchscript.timeout=360`
Although these changes have partially improved the situation, the error persists in executing batchscript tasks for several devices. This suggests that the issue might be related to the **collector size** and the **hardware resources** allocated.
Since **batchscript** is the primary method used to gather data for most of our devices, we would appreciate your guidance on the following:
Key Questions:
  1. What is the optimal resource allocation for each of the collectors** to prevent task execution errors? We are currently monitoring over 200 devices, with an annual growth rate of 15%.
  2. Is there a formula or method to determine how many batchscript tasks are successfully executed versus failed attempts?** This would help us assign appropriate collector sizes and hardware resources to ensure tasks are completed successfully, considering the 15% growth rate.
  3. We are monitoring devices under the following setup:
- **CollectorOn-Premises1Site**: 300+ devices
- **CollectorOn-Premises2Site**: 75+ devices
- **Collector-AWS**: 50+ devices
- **Collector-GCP**: 50+ devices
- **Collector-Azure**: 50+ devices
How can we determine the appropriate collector size based on the number of devices to be monitored?** This will help us allocate hardware resources to integrate more devices into each collector.I look forward to your comments and technical recommendations for optimizing the collectors.
No RepliesBe the first to reply