Need a monitoring tool for your network monitoring tool or want a monitoring device which performs monitor of your website, The open-source Nagios monitoring tool is the first name you called in mind. For making this monitoring tool you need a Linux box, Let’s check How to Make a Network Monitoring Tool using Raspberry Pi.
Also, you can make this tool using Pc but it is a waste of the full setup of pc, waste of a lot of power and hardware. The Raspberry Pi can easily handle this matter flawlessly.
Things that you need to make a monitor tool.
The Rabbit Hole of Nagios:
With this tool, it is easy to monitor the state of a server or switch; it’s also very easy to find yourself falling down a rabbit warren of options, potentially setting too many checks.
So before proceeding, keep this in mind. Start slowly with Nagios, adding additional checks on a daily or weekly basis, after you’ve confirmed whether the first ones worked successfully.
Put NagiosPi On SD Card:
Raspberry has its own version of NagiosPi. Need to connect your Raspberry Pi to your network, preferably with the LAN port Ethernet cable to start. you can use the Wi-Fi kater for connecting LAN Port you can use it as a headless device via SSH by default it is activated on NagiosPi.
image file is around 1.5 Gb in size – should be extracted following download and written to a spare SD card using ImageWriter
After image written in sd card, put the SD card into your Raspberry PI and boot it up. You can login with the username/password combination of pi/raspberry,
Configure NagiosPi with your computer:
Now you need to configure NagiosPi to config the monitor tool do open your web browser and enter the IP address for your Raspberry Pi in the address bar.
Your browser should display the NagiosPi console, with a collection of links in the top-left corner:
- Nagios – displays the network entities configured in Nconf
- Nconf – use this to add and manage items to be monitored
- NagVis – provides a visualization of devices
- PHPMyAdmin – gives direct access to the Nagios database
- RaspControl – check the status on your Raspberry Pi.
Each of these function requires user name and password to sign in. which is displayed alongside of each link.
Connect NagiosPi to Ping Your Website
You can see how the ping is displayed by switching the Nagios page,
To add your own, click Nconf from the NagiosPi console and look in the left-hand column where you will find an item labeled Hosts. To the right of this click Add, and input the hostname, IP address and alias for the device you wish to monitor.
Click Submit when you’re done, then go to Services > Add. Here, set the Add additional services to host menu to check_ping and click Add. Scroll down and set the necessary delays (don’t make them too short) and click Submit, then in the menu find Generate Nagios Config. Click this, then Deploy to complete.
Monitoring the Network Realtime
when the monitoring tool is setup completely switch to NagiosPi window and select services you’ll see the device you added is being monitored alongside the others on your network. Each of these items can be clicked, as can the small icons that accompany each of them
This is the main screen that you should be using once your devices are setup in Nconf. Use it to keep an eye on your servers and network devices, and act accordingly when hardware goes offline.
Leave a Reply