www-data 4650 0.0 0.1 43428 4532 ? S 04:58 0:00 /usr/sbin/postdrop -r www-data 4855 0.0 0.1 43428 4528 ? S 05:02 0:00 /usr/sbin/postdrop -r www-data 6940 0.0 0.1 43428 4528 ? S 05:57 0:00 /usr/sbin/postdrop -r www-data 7251 0.0 0.1 43428 4528 ? S Nov09 0:00 /usr/sbin/postdrop -r www-data 14872 0.0 0.1 43428 4532 ? S 08:52 0:00 /usr/sbin/postdrop -r My challenge: I see a lot of error in apache error.log postdrop: warning: mail_queue_enter: create file maildrop/733089.31799: Permission denied postdrop: warning: mail_queue_enter: create file maildrop/240934.11141: Permission denied Let login as www-data: su -s /bin/bash /www Run it as www-data /usr/sbin/postdrop postdrop: warning: mail_queue_enter: create fileRead More →

We have some accounts such as postfix,apache .. these account has “nologin” shell, meaning you can’t sudo su – apache or “su – apache”. Sometimes we need to login to these account to run some commands to check some permission issues. The solution is: su -s /usr/bin/bash apache (as you can see in the command, we explicitly provide the shell instead of using the system default)Read More →

Downsampling: 1.8: you can have multiple retention per database. 2.0: one bucket , one retention. you need to downsample to a different bucket. Query: 1.8 : can only use FluxSQL 2.0: can use Flux and FluxSQL Continuous Query Continuous query is replaced with Task – you need to convert your InfluxSQL in Continuous query to Influx query and setup the task. Convert FLUXSQL to FLux query https://docs.influxdata.com/influxdb/v2.0/upgrade/v1-to-v2/migrate-cqs/ DownSampling data3 = from(bucket: “telegraf”) |> range(start: v.timeRangeStart, stop: v.timeRangeStop) |> filter(fn: (r) => (r._measurement =~ /system.*/)) data3 |> aggregateWindow(fn: mean, every: 1h) |> filter(fn: (r) => (exists r._value)) |> to(bucket: “telegraf_30min”, org: “MyHomeInflux”) Sampling is easy, don’tRead More →

Splunk: Python 2 Add-ons for v8 Splunk is one of the most popular platforms for searching, monitoring, and analyzing machine data from websites, applications, and IT infrastructures. It is widely used for data analysis, monitoring, and troubleshooting across various industries. However, as technology progresses, the underlying software and its dependencies evolve as well. Splunk, like many other applications, has shifted its focus to Python 3, leaving older Python 2-based add-ons and custom scripts in a state of transition. In this article, we’ll explore the use of Python 2 add-ons in Splunk version 8 and what you need to know when working with them. Python 2Read More →

are primarily used as a relay to the actual influxdb. The free influx db does not provide the high availability function. We use influxdb-relay or influxdb-srelay as the relay to the actual influxdb. With this approach your data can be saved in multiple influxdb copies. That’s the main purpose, but here are some difference between them. Influxdb-relay : can support HTTP & UDP protocol . Only supports write operation, it does not support query. The destination backend set is fixed. Have a cache to store data when the backend is down temporarily. If the backend is down for too long, the cache will not beRead More →

Splunk: Display All Metrics Info In today’s digital-first world, the need for real-time insights into the health, performance, and security of systems is paramount. As organizations scale their operations, the complexity of their infrastructure grows. This complexity requires tools that can provide clarity, break down data silos, and help in quickly identifying and resolving issues. One such powerful platform is Splunk, a leader in machine data analytics that allows users to search, monitor, and analyze large volumes of data from various sources. One of the key features of Splunk is its ability to process and display metrics data, which provides valuable insights into the performanceRead More →