MSW by Box293 checks for vCenter 6.7

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

MSW by Box293 checks for vCenter 6.7

Post by kwhogster »

I just upgraded to ESXI 6.7 and vCenter 6.7

I have the checks working for the ESXI hosts using MSW

I can not seem to get the checks to work for the vCenter

nagios@tgcs017:/usr/local/nagios/libexec$ ./check_by_ssh -E 1 -l vi-admin -H 10.10.10.74 -C "~/box293_check_vmware.pl --server 10.10.10.11 --check vCenter_Name_Version"
UNKNOWN: Error: Permission to perform this operation was denied.


In my cred store
[vi-admin@tgcs018 root]$ /usr/lib/vmware-vcli/apps/general/credstore_admin.pl list
Server User Name
10.10.10.11 root
10.10.10.111 root

I created an account on my vcenter at the top level vi-admin and gave it Read-Only permissions. event tried administrator permissions.

then I tried this

Server User Name
10.10.10.11 vi-admin@vsphere.local
10.10.10.111 root

Now I get this

nagios@tgcs017:/usr/local/nagios/libexec$ ./check_by_ssh -E 1 -l vi-admin -H 10.10.10.74 -C "~/box293_check_vmware.pl --server 10.10.10.11 --check vCenter_Name_Version"
UNKNOWN: Error: Cannot complete login due to an incorrect user name or password.


10.10.10.74 is my VMA server
10.10.10.11 is my VCSA
10.10.10.111 is an ESXI host

that works

nagios@tgcs017:/usr/local/nagios/libexec$ ./check_by_ssh -E 1 -l vi-admin -H 10.10.10.74 -C "~/box293_check_vmware.pl --server 10.10.10.111 --check Host_OS_Name_Version"
OK: VMware ESXi 6.7.0 build-15160138

I reviewed the documentation on Box293 which was the prior version of MSW I read it only requires a read only account not sure whats up

Any Ideas?

Thank you
Tom
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: MSW by Box293 checks for vCenter 6.7

Post by kwhogster »

Update,

I can logon to the vcenter with the same account and I get read only permissions.

So I know my vcenter account is ok

vi-admin@vsphere.local

Any ideas?
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: MSW by Box293 checks for vCenter 6.7

Post by kwhogster »

I fixed this.

I used the administrator account and now it works

Do not know why the read only account did not work

This can be closed as self resolved.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: MSW by Box293 checks for vCenter 6.7

Post by benjaminsmith »

Hello,
I fixed this.

I used the administrator account and now it works
Do not know why the read only account did not work

This can be closed as self resolved
Good to hear. And thanks for posting your solution for the other members!

Benjamin
Nagios Support Team
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!
Locked