Telegraf (Tick stack) - telegraf-output-plugins

Any one Plz answer my question, if u have known the answer:
I have two telegraf agents one in windows system and other in linux centos server. I also have one influxdb database.
Question is: in my windows telegraf config file I have given the db name as telegraf_one and in centos telegraf config file I have given the same db name i.e., telegraf_one.
On my influxdb server I have db telegraf_one created when running windows telegraf, and later I have been starting the telegraf agent in centos, will db conflicts occur due to same db name from different telegraf agents or both telegraf agents use the same db without conflicts.

No conflict will occur. Both agents will report metrics to the same db server under respective os.host() names. This is actually how telegraf is designed to function.

Related

Set up a NTP server which can be queried globally

I want to set up a server (hosted on aws/or a running system in some part of the world) as an NTP server that can be queried globally.
Currently, I have modified the ntp.conf file on the node to be made the server as server . But the problem is, on using an NTP client if I try to query time from this server, or rather on using sudo ntpdate it says no suitable server found.
However, if I replicate the same on my local network (the server, as well as the querying node, are all on the local network) then this works perfectly fine.
I think the problem might lie in the ntp.conf file. Do I need to put some specific restrict lines for this to work publicly as well? And no I cannot list the server on public ntp pages. Is it at all possible?
Solved. This was a port issue. I was testing it on aws and had to manually open the related udp ports.

Connecting to MariaDB + Bitnami's Multi-tier

I'm still new to AWS and this is my first attempt at working with MariaDB; I'm used to dealing with hosting providers that already have something like cPanel installed so please be nice. :)
I'm using Bitnami's WordPress Multi-Tier with Amazon RDS for MariaDB
Bitnami's documentation is usually quite good, but in this particular case I'm not finding anything. I've reached out to their support and the only reply I've received until now was something akin to: "use a WordPress plugin to make database exports" which is obviously isn't going to cut the mustard when it comes to importing.
What I want to accomplish:
Connect to my database
Export my database
Import (overwrite) a database
Essentially, I want to deploy my local WordPress to AWS...files are all good, but I'm lost when it comes to databases.
(NOTE: I want to get out of the habit of relying on phpMyAdmin and, ideally, don't want to have to go through installing it, etc)
I started here: [Connecting to a DB Instance Running the MariaDB Database Engine][2]
After SSH'ing in I've tried:
Command: mysql
Outputs: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/bitnami/mariadb/tmp/mysql.sock' (2)
Command: mysql -h MY-DB-INSTANCE.us-east-1.rds.amazonaws.com -P 3306 -u bitnami
Outputs: Access denied for user 'bitnami'#'10.0.4.110' (using password: NO)
EDIT: I've split this thread into a separate one for other issues that I ran into.
Presumably your MySQL user bitnami actually has a password, so you may try this:
mysql -h MY-DB-INSTNACE.us-east-1.rds.amazonaws.com -P 3306 -u bitnami -p
^^^ add this
Your shell should prompt you for the password.
Beyond this, you need to make sure that you have opened your RDS instance to the IP from which you are trying to connect. You could open it to all IPs, but it is better practice to just open it to your dev machine, as well as the production machines which would be hitting the database. If you don't do this step, you also would not be able to connect.
Edit: If your user bitnami does not yet exist, then you may have to login as root and configure. Or perhaps you would have to reset the password if forgotten. You should always write down the admin credentials, as a last resort means of accessing your RDS instance.

Teradata - Find the Teradata servers I can connect from linux

We have a Linux UAT machine on which our datastage, shell, teradata scripts are configured and we can execute jobs/scripts from this server. We have different Teradata environments(SIT, UAT, PAT, PROD - all are different servers). I can connect to SIT, UAT Teradata using the
bteq .logon
command from the linux server; But not able to connect to Teradata PAT or PROD.
How can I know the list of TD servers (SIT, UAT, PAT, PROD) that I can connect from this Linux server. (Is there any file on this Linux server where the list of all TD servers that it can connect to is stored). I had verified the /etc/hosts file, it has contents relative to other unix/linux servers to which we do NDM and other stuff; but no info. related to Teradata. I am looking to get this info. from the Linux server itself as I have access to this one only.
Which Teradata servers are available depends on your network configuration.
As far as I know, there is no configuration file listing available Teradata servers.
The .logons first argument is the TDPID. That may be a single IP-adress or a hostname mentioned in /etc/hosts.
Usually if the IP-adress or host is reachable in your network, you are able to connect via bteq or any other client.
A Teradata server consists of nodes, each a completly independent working UNIX machine, with its own IP-address.
Therefore you may find a list of IP-Addresses with hostnames ending in cop<n> , e.g. tddevcop1, tddevcop2 in your /etc/hosts.
If you do a .login tddev/user,password (some magic going on) one of the nodes is choosen as your contact (and that node has to do the parsing and communication work, distributing the real workload to all the nodes).
My best bet: Ask the DBA (or Network Admin) about your specific network.

concept of using telegraf with aerospike and influxdb

I'm learing the concept of telegraf. It's a system that collects data and will write it to influxdb. So I've setup a influxdb, a telegraf and an nginx which will create the logs. Telegraf will collect the logs and write it to influxdb.
But I see a lot of configurations which are also using aerospike. I don't see what aerospike is doing in this conecpt?
I see it configured as input plugin for telegraf:
[[inputs.aerospike]]
servers = ["aerospike:3000"]
Am I wrong with the nginx part and is aerospike providing logs or how do I have to interpret this concept with using nginx, influxdb, telegraf and aerospike
I would assume Aerospike is simply a potential source of logs to be ingested by telegraf...
https://github.com/influxdata/telegraf/tree/master/plugins/inputs/aerospike
nginx is just another potential input plugin... here is the list apparently:
https://github.com/influxdata/telegraf/tree/master/plugins/inputs

openldap synchronous vs. asynchronous replication

I've installed two openldap servers and configured them to do replication via 'syncrepl'. This replication is however asychronous. Changes are not immediately written to the other ldap server. What I would like to do is synchronous replication. With new or updated entries only written to the primary LDAP after they have been written to the second LDAP server.
Does anybody know if this is possible with openLDAP?

Resources