• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to Configure Telegram with Netdata for CPU, RAM load Alert

  • 00:48 cat /etc/os-release
  • 04:52 cd /etc/netdata/
  • 05:14 vim health_alarm_notify.conf
  • 06:42 cd health.d
  • 06:55 vim cpu.conf
  • 07:31 vim ram.conf
  • 08:02 systemctl restart netdata
{{postValue.id}}

To Configure Telegram With Netdata CPU/RAM Load

Introduction:

Telegram is a super-fast and free messaging app that can work on all your devices at the same time. Netdata is a tool for observing, visualization, and troubleshooting solution for systems, containers, and applications. The open-source monitoring Agent operates in concert with Netdata Cloud to deliver single-node and infrastructure monitoring on a single pane of glass.

Configuration Steps:

Check the installed version of OS

[root@localhost ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.6 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.6"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL=https://bugzilla.redhat.com/

Now Create account in Telegram and connect with @BotFather in telegram snap1 Now create a new Bot using following command sanp2

Now give username to bot snap3 Next connect @myidbot to your telegram snap4 Now create a a group in which you want to receive alerts from netdata snap5 Add myidbot into your channel snap6 Now to get group id post the command like below snap snap7 Now add your Bot Linuhelp_bot into your channel snap8 Now move to the Netdata location.

[root@localhost ~]# cd /etc/netdata/
[root@localhost netdata]# ll
total 432
-rw-r--r--. 1 root root  46919 Jan 13 10:47 \
drwxr-xr-x. 2 root root      6 Jan  9 04:48 charts.d
drwxr-xr-x. 2 root root      6 Jan  9 04:48 custom-plugins.d
-rwxr-xr-x. 1 root root   2045 Jan 18 03:59 edit-config
drwxr-xr-x. 2 root root      6 Jan  9 04:48 go.d
-rw-r--r--. 1 root root      0 Jan 12 01:43 health_
-rwxr--r--. 1 root root  46919 Jan 17 23:32 health_alarm_notify.conf
drwxr-xr-x. 2 root root     97 Jan 17 23:53 health.d
-rw-r--r--. 1 root root 339587 Jan  9 04:49 netdata.conf
drwxr-xr-x. 2 root root      6 Jan  9 04:48 node.d
lrwxrwxrwx. 1 root root     23 Jan 18 03:59 orig -> /usr/lib/netdata/conf.d
drwxr-xr-x. 2 root root      6 Jan  9 04:48 python.d
drwxr-xr-x. 2 root root      6 Jan  9 04:48 ssl

Now open below file and edit them accordingly shown below

[root@localhost netdata]# vim health_alarm_notify.conf
Update file as below

SEND_TELEGRAM="YES"
TELEGRAM_BOT_TOKEN="1588391551:AAEk9m_X_uDjAsU_pVOe39rGgRGZ-hk0JFY"
DEFAULT_RECIPIENT_TELEGRAM="-360570513"

Now see all the CPU Configuration for load alert

[root@localhost netdata]# cd health.d
[root@localhost health.d]# ll
total 56
-rw-r--r--. 1 root root 46870 Jan 11 10:34 \
-rw-r--r--. 1 root root  1680 Jan 17 23:53 cpu.conf
-rwxr--r--. 1 root root     0 Jan 12 06:59 health_alarm_notify.conf
-rw-r--r--. 1 root root   190 Jan 17 23:37 ram.conf
-rw-r--r--. 1 root root     0 Jan 13 10:20 ram.confcd
[root@localhost health.d]# vim cpu.conf
[root@localhost health.d]# vim ram.conf

After making changes restart the netdata

[root@localhost health.d]# systemctl restart netdata

Now open netdata dashboard snap9 This is the ram load alert snap10 This is the load alert telegram getting from netdata snap11 Now got the alert for CPU usage snap12 With this the configuration of telegram on Netdata comes to an end.

Tags:
matthew
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

What is Netdata?

A

Netdata is an open-source tool designed to collect real-time metrics, such as CPU usage, disk activity, bandwidth usage, website visits, etc., and then display them in live, easy-to-interpret charts.

Q

Can I receive a live alert on Telegram for Netdata?

A

Yes, absolutely. All the alerts will be live according to your server activity.

Q

What is BotFather in telegram?

A

BothFather is a bot in telegram which generates a token number for your Netdata to connect to the telegram.

Q

How to generate group id in telegram?

A

To generate groupid you have to connect myidbot to your group and then send command /getgroupid, it will generate a new group id.

Q

How to differentiate between a group id and chat id in telegram?

A

Group id always starts with -(hyphen).

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Elijah ?
Remote Desktop Connection Has Stopped Working

When accessing my remote machine server using remote desktop on a windows machine I am getting this error

forum (1)

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.