Nagios Check_Command Argument
Posted: Mon Aug 22, 2016 2:45 pm
Folks,
I have small roadblock in monitoring host in NMs. I am adding a host where the script from NMS logs into the host using username and password and do its check.
Issue is the password for the host is "xyz!". Therefore when i give the the password as "$ARG1$: xyz! " its not taking "!" as an argument instead keyword to separate parameters.
Anyone knows how to define "!" as part of argument?
I have small roadblock in monitoring host in NMs. I am adding a host where the script from NMS logs into the host using username and password and do its check.
Issue is the password for the host is "xyz!". Therefore when i give the the password as "$ARG1$: xyz! " its not taking "!" as an argument instead keyword to separate parameters.
Code: Select all
define service {
use Check_ESXi
service_description ESXi_Hardware
check_command check_esxi_hardware!xyz!
host_name test
servicegroups All_Services
contact_groups Users
}
Anyone knows how to define "!" as part of argument?