I have this service setup:
define service{
use generic-service
host_name pflow
service_description PFlow_Log_File
check_command check_nt!FILEAGE!-l “c:\date +%Y%m%-d_dataproc.log” -w 10 -c 11
}
So my fix is this for the time being… I just transferred the main functionality to the command and away from the service and it seems to work fine. It looks to me like it was having trouble passing the tick marks… but this is just a guess at this point.
it may need escaping somehow (backslash in front?).
That’s the most frequent problem with command lines becoming a bit complicated it can be ven worse when you hav eosmthing like a windows process name containing double backslashes or " signs
Check also how the parameters are passed. it’s usually better* to use more parameters instead of one parameter containing the whole command
*better simply for readability and reusability not for performance