LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to define a command in nagios with special characters (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-define-a-command-in-nagios-with-special-characters-4175443211/)

abhinav4 12-28-2012 01:05 AM

How to define a command in nagios with special characters
 
I have been trying to define a command in nagios with the command name including special characters like <<CheckFileSize>>. The problem is when I am running pre-flight check on configuration data it gives me error as below

Checking commands...
Error: The name of command '<<CheckFileSize>>" contains one or more illegal characters.
Checked 32 commands.

command definition:
++++++++++++++++++
define command {
command_name <<CheckFileSize>>
command_line check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckFileSize -a ShowAll MinWarn=$ARG2$ MinCrit=$ARG1$ File=c:/pagefile.sys
}

droyden 12-28-2012 03:03 PM

Why are you using those chars?

Habitual 12-28-2012 03:54 PM

Code:

command_name CheckFileSize


All times are GMT -5. The time now is 01:08 AM.