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.
Hello, @kwhogster! Could you upload your plugin here? And, I'd like to see your command definition as well. Also, can you upload or pm me your nsclient.ini file?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
The debug option creates the file /home/vi-admin/box293_check_vmware_debug_log.txt on the vMA server so if the output does not print to the screen, you will have to retrieve the file from the vMA server and upload it to this post.
Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
What I think the cause is that the ssh certificates need to be re-created on the Nagios server and transferred to the vMA so the Nagios server can run the command without being prompted for a password.
In this manual https://exchange.nagios.org/components/ ... 0&cf_id=29
Go to page 9 and on the bottom, you will see the instructions for creating the ssh certificates and re-transfer them to the vMA server should fix the issue for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
root@tgcs017:/usr/local/nagios/etc/objects# /usr/local/nagios/libexec/check_by_ssh -E 1 -t 90 -l vi-admin -H 10.2.8.7 -C "nice -n19 ~/box293_check_vmware.pl --server 10.2.8.64 --check Guest_CPU_Usage --guest TGCS020-2016 --debug"
Password:
Line 505 Script started @ Thu Oct 5 22:18:11 2017
Line 506 $current_version: '2016-05-10'
Line 507 $pre_flight_checks: '0'
Line 541 --check argument is supplied and is 'Guest_CPU_Usage', proceeding.
Line 555 --server argument is supplied and is '10.2.8.64', proceeding.
Line 572 Running Checks: '1'
Line 573 Total Checks: '0'
Line 574 Concurrent Checks: '15'
Line 588 Total number of concurrent checks NOT exceeded, proceeding.
Line 13076 $good_to_go_check: '0'
Line 12621 Thresholds_Test
Line 11503 SI_Test
Line 13108 $good_to_go_check == 0
Line 13109 About to connect
Line 13115 defined($connection
Line 13116 Connected
Line 10338 Perfdata_Option_Get
Line 13120 %Perfdata_Options: '0'
Line 10131 Modifiers_Get
Line 10185 @Modifiers_Supplied_Local: '0'
Line 13124 @Modifiers_Supplied_Global: '0'
Line 5878 Guest_Snapshot
Line 5880 $snapshot_request: 'Exclude Snapshot - Get'
Line 5892 option --exclude_snapshot was NOT set
Line 13128 @Exclude_Snapshot_Supplied: '0'
Line 13132 Running check: 'Guest_CPU_Usage'
Line 5811 Guest_Select
Line 5816 Guest_Select @target_properties: '5'
Line 5817 Guest_Select @target_properties values: 'summary.runtime.connectionState, summary.runtime.powerState, summary.quickStats, summary.config.numCpu, summary.runtime.host'
Line 5836 Guest_Select $target_guest_option provided via --guest: 'TGCS020-2016'
Line 10192 Modifiers_Process
Line 10194 $modifier_type: 'request'
Line 10198 $target_value: 'TGCS020-2016'
Line 10202 $modified_value: 'TGCS020-2016'
Line 10330 No request modifier defined, returning original value
CRITICAL: communication with the VMware API failed after 2 retries.
root@tgcs017:/usr/local/nagios/etc/objects#
Thanks for the output, there is not much to work with but I checked the change log for the plugin and there were some fixes done to the perl script for the same error you are having.
Make sure you are running the latest box293_check_vmware.pl script on the vMA server and see if that fixes it.
Be sure to check out our Knowledgebase for helpful articles and solutions!