Page 1 of 1

MSW by Box293 checks for vCenter 6.7

Posted: Sun Apr 05, 2020 8:48 am
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 [email protected]
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

Re: MSW by Box293 checks for vCenter 6.7

Posted: Mon Apr 06, 2020 2:24 pm
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

[email protected]

Any ideas?

Re: MSW by Box293 checks for vCenter 6.7

Posted: Mon Apr 06, 2020 7:48 pm
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.

Re: MSW by Box293 checks for vCenter 6.7

Posted: Wed Apr 08, 2020 5:12 pm
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