Monitoring Azure servers through Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Kush
Posts: 6
Joined: Mon Mar 11, 2019 7:01 am

Monitoring Azure servers through Nagios

Post by Kush »

Hi all, We have to monitor the Azure servers for one of our client for availability, CPU, Memory etc. I understand we have to install the NRPA client on the machine we want to be monitored. Looks like the NRPA client needs the IP address of the host server hosting the nagios. Could we provide the public IP address of our nagios server? Will a public IP address do?
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Monitoring Azure servers through Nagios

Post by benjaminsmith »

Hi @Kush,

I would recommend using the Azure Configuration Wizard in Nagios XI to get started. You'll need to install NCPA ( Nagios Cross Platform Agent ) on the VM to be monitored.

Follow the installation instructions below for NCPA below. You''ll need to open up a port for the Nagios XI server to communicate with NCPA and then when setting up checks in Nagios XI, you'll need the ip address of the device (vm) your monitoring.

NCPA Agent Installation Instructions

Let me know if you're able to get up and running.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
AnujV
Posts: 1
Joined: Sun Apr 07, 2019 8:35 am

Re: Monitoring Azure servers through Nagios

Post by AnujV »

Hi Benjamin, Thank you for your message. I am in the same boat. I am trying to monitor azure VM in Nagios XI as well.
I have followed the document you mentioned above and created a test machine in azure and installed NCPA on it.
I am able to ope the NCPA GUI using https://<Private IP>:5693 but UNABLE to open using the https://<public ip>: 5693

Even when I try to go to cofifuration >> azure vm and put the public ip and token , the validation fails.
I verified that port http, https , rdp and 5693 are open in azure machine

Looks like it has to do Azure security settings I guess. could you please suggest further?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Monitoring Azure servers through Nagios

Post by ssax »

This could be multiple things, I would run this command against your public/external azure IP from an external host to see if the port is listening:

Code: Select all

nmap -Pn -p 5693 X.X.X.X
What is the output of this command on the Azure server?

Code: Select all

netstat -ano | findstr "5693"
You will need to work with Azure support for any Azure configuration support as I've never worked with it.

Please attach a sanitized copy of your ncpa.cfg file for review.
- Mainly I'm looking at the allowed_hosts = ?and ip = ? directives but please attach the entire file.
Kush
Posts: 6
Joined: Mon Mar 11, 2019 7:01 am

Re: Monitoring Azure servers through Nagios

Post by Kush »

Thanks...Actually this got resolved. Had to get it checked with the networking team..they said antivirus was blocking something.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring Azure servers through Nagios

Post by scottwilkerson »

Kush wrote:Thanks...Actually this got resolved. Had to get it checked with the networking team..they said antivirus was blocking something.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked