Hi,
I'm using NAGIOS XI with NSCA Server and NSClient++ on the passive host.
I receive the Service information like CPU Load, Memory Usage ecc.
But I don't receive the host_check, so from NAGIOS XI - HOST STATUS the HOST's status result pending.
NSCLIENT.INI of PASSIVE HOST:
host_check = Check_OK "Everything is working fine"
CPU Load = checkCPU warn=80 crit=90 time=5m time=1m time=30s
Memory Usage = checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physical type=virtual type=paged type=page
Drive C: Disk Usage = CheckDriveSize MinWarn=10% MinCrit=5% Drive=C: ShowAll
Uptime = CheckUptime MinCrit=12h ShowAll
Print Spooler Service = check_service service=spooler
I've enabled the log debug and on the file messages I can read:
Jun 11 09:08:33 localhost xinetd[8251]: START: nsca pid=29771 from=::ffff:IP.IP.IP.IP
Jun 11 09:08:33 localhost nsca[29771]: Handling the connection...
Jun 11 09:08:34 localhost nsca[29771]: Time difference in packet: 0 seconds for host HOSTNAME
Jun 11 09:08:34 localhost nsca[29771]: HOST CHECK -> Host Name: 'HOSTNAME', Return Code: '3', Output: 'Invalid command line: unrecognised option 'Everything is working fine'#012help#011#011Show help screen (this screen)#012help-pb#011#011Show help screen as a protocol buffer payload#012show-default#011Show default values for a given command#012help-short#011#011Show help screen (short format).#012message=No message#011Message to return#012'
Jun 11 09:08:34 localhost nsca[29771]: Attempting to write to nagios command pipe
Jun 11 09:08:34 localhost nsca[29771]: End of connection...
Jun 11 09:08:34 localhost xinetd[8251]: EXIT: nsca status=0 pid=29771 duration=1(sec)
Jun 11 09:08:34 localhost nagios: Error: External command failed -> PROCESS_HOST_CHECK_RESULT;HOSTNAME;3;Invalid command line: unrecognised option 'Everything is working fine'
Jun 11 09:08:34 localhost nagios: External command error: Command failed
Jun 11 09:08:34 localhost nagios: External command error: Malformed command
Jun 11 09:08:34 localhost nagios: External command error: Malformed command
Jun 11 09:08:34 localhost nagios: External command error: Malformed command
Jun 11 09:08:34 localhost nagios: External command error: Malformed command
Jun 11 09:08:34 localhost nagios: External command error: Malformed command
Jun 11 09:08:34 localhost nagios: External command error: Malformed command
Anyone else experienced this problem?
Thanks in Advance.
F.
NSCA HOST STATUS ALWAYS PENDING
Re: NSCA HOST STATUS ALWAYS PENDING
Hi,
I've solved the problem using the script alias:
#########
nsclient.ini
#########
[/settings/external scripts/alias]
check_ok=CheckOK Everything is fine!
[/settings/scheduler/schedules]
host_check=check_ok
#########
Bye
F.
I've solved the problem using the script alias:
#########
nsclient.ini
#########
[/settings/external scripts/alias]
check_ok=CheckOK Everything is fine!
[/settings/scheduler/schedules]
host_check=check_ok
#########
Bye
F.
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: NSCA HOST STATUS ALWAYS PENDING
Hi,
Thanks for the update. We'll close out this thread. Please feel free to open another one if you have any new questions.I've solved the problem using the script alias:
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!