Last week we discussed monitoring a Windows machine with NCPA and Nagios XI to make sure that the server was functioning properly. In order to showcase the cross-platform capabilities of NCPA (Nagios Cross-Platform Agent) we decided it would be a good idea to show how to monitor a Linux machine as well. In this article I will show you how easy it is to monitor a Linux box using the same exact agent that we used to monitor the Windows box last week. Here’s how you do it.
1. Installing and configuring NCPA on the remote box
Instructions on installing NCPA can be found here: NCPA Installations Instructions. For more info on acquiring the correct RPM packages for your Linux distro, please check our documentation here: Finding the Right RPM
Run the following commands from the command line as root:
wget http://assets.nagios.com/downloads/<your rpm package>.rpm
rpm -ivh --nomd5 <your rpm package>.rpm
Note: For my example, I used CentOS 6.5, 64-bit, so I ran:
rpm -ivh --nomd5 ncpa-head.el6.x86_64.rpm
Next, you will have to edit the “community_string” in the NCPA config file. The “community_string” is the token that you will use to log into the agent and also allows the Nagios XI server to communicate with the NCPA agent. This process is comparable to entering a token in the GUI installer when monitoring a Windows machine. Continue reading ‘Monitoring A Linux Machine With Nagios XI & NCPA’
We have recently developed a cross-platform monitoring agent called NCPA that is designed to simplify the monitoring of devices with a wide variety of operating systems. NCPA can be used as a passive or active agent and monitors a multitude of different metrics right out of the box. In this article I will show you how easy it is to monitor a Windows machine with Nagios XI and NCPA. To do this, simply follow these 3 easy steps:
Step 1 – Installing and configuring NCPA on the remote box.
The NCPA installer can be downloaded here: NCPA’s Installer Direct Download. Instructions on installing NCPA can be found here: NCPA Installations Instructions. Download it on the Windows machine that you want to monitor and run the installer.
In this example, we will be using NCPA as an active agent. This is the quickest and easiest way to begin monitoring with NCPA. The image below is what the installation GUI looks like on the Windows device that you’re monitoring. To use NCPA as an active agent, all you have to do is enter a token. This token will be used to authenticate the connection between the Nagios XI server and the monitored device later in the article, so it’s important to choose a token you will remember. For this example, we entered “welcome“. Click Next to finish the installation.
Continue reading ‘Monitoring a Windows Machine with Nagios XI & NCPA’
The Mass Acknowledge component in Nagios XI makes it very easy to mass acknowledge problems with hosts/services that are in non-OK state. The component allows you to suppress additional alerts to be sent out, while a team member works on resolving the issue(s). This component can also be used to schedule downtime for hosts/services, or schedule immediate checks in bulk.
From the Nagios XI Home page, navigate to Incident Management –> Mass Acknowledge. Select the function you would like to use from the Command Type drop-down menu. Then, select the hosts/services you wish to target. You can select some of the hosts/services by clicking on each checkbox or you can select all of them at once, by clicking on the Check All Items button. If you suspect that there are more hosts/services in a non-OK state than those you see on the page, you can always click on the Update List button on the top to update the list.
Next, set the length of downtime in minutes, and enter a comment. You have an option to choose whether to send or not to send alerts. Simply select or deselect the appropriate Notify checkboxes. Also, you have an option to make some (or all) of your comments Sticky or Persistent.
Note: If you want acknowledgement to disable notifications until the host/service recovers, check the Sticky acknowledgement checkbox. On the other hand, if you would like the host/service comment to remain once the acknowledgement is removed, check the Persistent acknowledgement checkbox.
Finally, click on the Submit Commands button.
Continue reading ‘Using The Mass Acknowledge Component in Nagios XI’
Nagios XI is the most powerful IT infrastructure monitoring solution on the market. You can use it to monitor virtually anything. Although Nagios XI is typically meant for more “serious” work, you can have some fun with it as well! I guess I have been somewhat nostalgic lately… Do you remember when a gallon of gas used to cost less than a dollar?
In this article I will show you how to install the check_gas_price.py plugin, set up a dummy host, and add multiple services to it. This will allow you to check the gas prices in the USA. Then you may use the Capacity Planning component in Nagios XI Enterprise Edition to view the trends of gas prices in the USA.
First, download the check_gas_price.py plugin from this URL:
Next, install the plugin from the Nagios XI web interface by going to: Admin --> Manage Plugins --> Choose File, then select the check_gas_price.py file and click Upload Plugin.
If you would like, you can view the plugins’ usage by typing in terminal:
Your output should look like this:
Continue reading ‘Monitoring Gas Prices Using Capacity Planning in Nagios XI’