Hello There, Guest! Login Register
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Password with escape characters in check_esxi_hardware script

#1
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 check_ESXi_hardware.py built-in script.

Scenario Example:

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

#/usr/local/nagios/libexec/check_esxi_hardware.py -H 192.168.1.1 -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):

https://support.nagios.com/forum/viewtop...=7&t=53146

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.
 Reply
 
 
Forum Jump:

Users browsing this thread: 1 Guest(s)