NSCA problem


#1

I’m trying to set up NSCA for distributed monitoring in Nagios. I already read and did what the documentation says but I cannot make it work. In some article I found on the net, there’s a need for you to make a script and manually run that script to see if the central server really accepts the command by looking at /var/log/messages. When i ran the script, it says that “1 data packet(s) sent to host successfully.”. On the central server’s log it says:
Aug 9 14:35:00 localhost xinetd[10943]: START: nsca pid=11963 from=192.168.100.172
Aug 9 14:35:00 localhost xinetd[10943]: EXIT: nsca status=3 pid=11963 duration=0(sec)

But the status of the host’s services weren’t changing. It’s constantly pending even if it says in the distributed that the packets were sent successfully.
However when I try this command I found on the net ./send_nsca -H <central server’s IP> -p 5667-c /etc/nagios/send_nsca.cfg, (I don’t really what this command do but I think it’s related to sending something to the central server)it says:

Error: Timeout after 10 seconds

But in this central server’s log, it says:
Aug 9 14:40:00 localhost xinetd[10943]: START: nsca pid=11963 from=192.168.100.172
Aug 9 14:40:00 localhost xinetd[10943]: EXIT: nsca status=3 pid=11963 duration=0(sec)

I was thinking this might be a link to the problem. I already tried my best to solve this but still it’s not working.
Can anyone help me with it? Any help is appreciated. Thank you.


#2

not sure but for debug purposes i’d see if nsca can be started in interactive mode as a daemon instead of having it started by xinetd… possibly it gives some output on screen which might give more insight than those two log lines.


#3

hmm… how can I make nsca run in interactive mode? If what you’re telling is about what the nagios official documentation said, I’ve already tried that and I wasn’t able to make it work also that’s why I started nsca by using xinetd, but if not, can you give me links on how to do it? I’ve been begging google to give me an answer of this but I haven’t found anything yet related to my problem. Please help me.