Page 1 of 2
Monitoring Vmware with nagios XI
Posted: Thu Sep 25, 2014 9:19 am
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
Re: Monitoring Vmware with nagios XI
Posted: Thu Sep 25, 2014 11:03 am
by Box293
Re: Monitoring Vmware with nagios XI
Posted: Fri Sep 26, 2014 2:33 am
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
Re: Monitoring Vmware with nagios XI
Posted: Fri Sep 26, 2014 11:33 am
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.
Re: Monitoring Vmware with nagios XI
Posted: Tue Sep 30, 2014 1:41 am
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
Re: Monitoring Vmware with nagios XI
Posted: Tue Sep 30, 2014 10:08 am
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
Re: Monitoring Vmware with nagios XI
Posted: Tue Sep 30, 2014 11:24 pm
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
Re: Monitoring Vmware with nagios XI
Posted: Wed Oct 01, 2014 9:31 am
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.
Re: Monitoring Vmware with nagios XI
Posted: Wed Oct 01, 2014 10:37 am
by shailu2014
Hi,
Please can I get some document about the same issue.
Thanks,
Sjain
Re: Monitoring Vmware with nagios XI
Posted: Wed Oct 01, 2014 10:40 am
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