NSCA HOST STATUS ALWAYS PENDING
Posted: Tue Jun 11, 2019 2:35 am
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.
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.