NSCA Issues


#1

I have just configured NSCA on my nagios 2.x server. Nagios accepts the checks when sent from an outside server however it never updates the data for the services or sends out alerts.

I have two generic checks being submitted for testing. Both services show a status of OK but no further data.

The nagios.log file shows:
[1263314147] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;Tom-Server2;checkcpu;0;OK CPU Load ok.|‘20m’=0%;1;2; ‘10s’=0%;1;2; ‘4’=0%;1;2;
[1263314147] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;Tom-Server2;checkmem;2;CRITICAL: page file: Total: 5.47G - Used: 1.03G (18%) - Free: 4.43G (82%) > critical|‘page file’=18%;5;10;

Syslog shows:
Jan 12 10:41:47 localhost nsca[17161]: Connection from x.x.x.x port 17935
Jan 12 10:41:47 localhost nsca[17161]: Handling the connection…
Jan 12 10:41:47 localhost nsca[17161]: SERVICE CHECK -> Host Name: ‘Tom-Server2’, Service Description: ‘checkcpu’, Return Code: ‘0’, Output: 'OK CPU Load ok.|‘20m’=0%;1;2; ‘10s’=0%;1;2; ‘4’=0%;1;2; '
Jan 12 10:41:47 localhost nsca[17161]: SERVICE CHECK -> Host Name: ‘Tom-Server2’, Service Description: ‘checkmem’, Return Code: ‘2’, Output: 'CRITICAL: page file: Total: 5.47G - Used: 1.03G (18%) - Free: 4.43G (82%) > critical|‘page file’=18%;5;10; '
Jan 12 10:41:47 localhost nsca[17161]: HOST CHECK -> Host Name: ‘Tom-Server2’, Return Code: ‘0’, Output: 'Everythingisfine!|'
Jan 12 10:41:47 localhost nsca[17161]: End of connection…

I’ve verified that the service names match up exactly. I’m not sure where else to look for a problem.

Thanks for any advice.


#2

Do you have passive checks enabled for nagios + these services?


#3

That did the trick. I had passive checks enabled for the host / service but nagios wasn’t configured to accept them.

Thanks for the help, I really appreciate it.