Monitoring Vmware with nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
shailu2014
Posts: 102
Joined: Thu Apr 24, 2014 3:17 am

Monitoring Vmware with nagios XI

Post by shailu2014 »

Hi,

I have configured Vmware Host on Nagios XI after that we are getting the alerts ( screen shot attached).

(No output on stdout) stderr: Can't locate Nagios/Plugin.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at /usr/local/nagios/libexec/check_esx3.pl line 32.

Please help....

Thanks,
Sjain
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Monitoring Vmware with nagios XI

Post by Box293 »

Have you followed the procedures in this document?

http://assets.nagios.com/downloads/nagi ... ios-XI.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
shailu2014
Posts: 102
Joined: Thu Apr 24, 2014 3:17 am

Re: Monitoring Vmware with nagios XI

Post by shailu2014 »

Hi Box293,

I have gone through the pdf document and configured the SDK (VMware-vSphere-Perl-SDK-5.1.0-780721.i386.tar.gz)after that I have configured the one Vmware Host, It is showing good health. (Screen Shot Attached in word file) but when trying to configure the Monitor a guest VM on the VMWare host, it is showing error (Screen shot attached in word file) and one more point that I have trying one more host configure for monitoring it is also showing same error.

I have gone through the below link and sending the cmd.txt file and the reconfig.txt that was generated in below link instructions.

http://support.nagios.com/wiki/index.ph ... leshooting

Run below commands
1. cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh &> reconfig.txt (reconfig.txt file attached)

2. tail -f /usr/local/nagiosxi/var/cmdsubsys.log &> cmd.txt (cmd.txt file attached)

So please help to resolve the issue......

Thanks,
Sjain
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Monitoring Vmware with nagios XI

Post by Box293 »

This looks like the cause of your issues:

Error: The description string for service 'ACCESSCONTROL,0.40 CPU Usage' on host '192.168.0.125' contains one or more illegal characters.
Error: The description string for service 'ACCESSCONTROL,0.40 Input / Output' on host '192.168.0.125' contains one or more illegal characters.
Error: The description string for service 'ACCESSCONTROL,0.40 Memory' on host '192.168.0.125' contains one or more illegal characters.
Error: The description string for service 'ACCESSCONTROL,0.40 Networking' on host '192.168.0.125' contains one or more illegal characters.
Error: The description string for service 'ACCESSCONTROL,0.40 VM Status' on host '192.168.0.125' contains one or more illegal characters.

Go into Core Configuration Manager and fix the services for 192.168.0.125. Specifically your issue is because you have a comma ',' in your service description for these services.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
shailu2014
Posts: 102
Joined: Thu Apr 24, 2014 3:17 am

Re: Monitoring Vmware with nagios XI

Post by shailu2014 »

Hi Box23,

Thanks for help, Now I am able to monitoring VM host & Guest VM but I want ask one thing that whenever we added the Guest VM for monitoring so all guest VMs direct added in the Vmware host it is showing 69 services. (Attached screen shot file name Vmware Guest machines)

I have created two Host group related Vmware Monitoring (Screen shot attached File name Host group Summary)
1. VMware Hosts
2. Vmware Guests

So please let me know how we can add the Vmware Guest OS separate in Vmware Guests.

Thanks,
Sjain
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitoring Vmware with nagios XI

Post by tmcdonald »

When you are using the VMWare wizard in this way, each VM guest is treated as a service on the VM host. In order to get each VM guest to be its own Nagios host, you will either need to:

1.) Create a new Nagios host object for each VM guest, and switch the services from the existing VM host to these new ones

2.) Install an agent like NCPA or NRPE on the VM guests directly and use that to monitor them
Former Nagios employee
shailu2014
Posts: 102
Joined: Thu Apr 24, 2014 3:17 am

Re: Monitoring Vmware with nagios XI

Post by shailu2014 »

Hi,

Thanks for reply,

Create a new Nagios host object means new Nagios server or Add separate Vmware Guest in Monitoring Wizard in windows server option.

Pls can you provide some document related it.

Thanks,
Sjain
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitoring Vmware with nagios XI

Post by tmcdonald »

For each VMWare guest you want to monitor, make a new host within Nagios. Then for services on that host (CPU, disk space, memory) create a new Nagios service as usual. VMWare guests should be treated like any other remote system you would want to check.
Former Nagios employee
shailu2014
Posts: 102
Joined: Thu Apr 24, 2014 3:17 am

Re: Monitoring Vmware with nagios XI

Post by shailu2014 »

Hi,

Please can I get some document about the same issue.

Thanks,
Sjain
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitoring Vmware with nagios XI

Post by tmcdonald »

We don't have a doc specifically for moving VMWare machine checks from a service to a host, but this is pretty much just basic host management and we do have a doc for that:

http://assets.nagios.com/downloads/nagi ... gement.pdf
Former Nagios employee
Locked