MSW by Box293 checks for vCenter 6.7
Posted: Sun Apr 05, 2020 8:48 am
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
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