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
MSW by Box293 checks for vCenter 6.7
Re: MSW by Box293 checks for vCenter 6.7
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?
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?
Re: MSW by Box293 checks for vCenter 6.7
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.
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.
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: MSW by Box293 checks for vCenter 6.7
Hello,
Benjamin
Nagios Support Team
Good to hear. And thanks for posting your solution for the other members!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
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!