Category5.TV Community Forum

Full Version: Password with escape characters in check_esxi_hardware script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Platform: RPi 3
NEMS Linux version: 1.5
NEMS Build number: Build 8

Hello everyone,

 I need some help/guidance on passing escape characters for a Nagios core check using the built-in script.

Scenario Example:

I created a check esxi hardware check for one of my esx hosts

#/usr/local/nagios/libexec/ -H -U root -P FakePa$$! -V hp

The problem is the "FakePa$$!" portion of this check (It has escape characters "$" and "!" in the password for the ESX host)

I have found a thread here on how to properly input the escape characters (see link below):

In short: The link above involves steps in changing the /use/local/nagios/etc/resource.cfg file to create a MACRO, however, in NEMS nagios this solution doesn't seem to apply since the resource.cfg file cannot be editied in NEMS (well at least for me anyway..)

Has anyone else run into a similar issue and if I am doing anything wrong (which is most likely) can you please point me in the right direction?

Thank you for your time in reading this thread.

 Any word on this? Am I in the right place?