Author Topic: Nagios Xi and CWP Pro problem  (Read 14418 times)

0 Members and 2 Guests are viewing this topic.

Offline
*****
Re: Nagios Xi and CWP Pro problem
« Reply #15 on: February 24, 2020, 01:10:07 AM »
I presume that you've tried a cron with
Code: [Select]
/etc/rc.d/init.d/nagios reloador
Code: [Select]
/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfgand set it to run after that cwp one has done it's thing.

Nagios is running on another box.
I tried restarting the nagios service on that box when I noticed this.
Nothing changed.

Again everything is reporting correctly, except the 2 CWPPro servers after the cron.daily runs.

Only fix right now, is to restart the server CWPPro is running on after the cron.daily runs.

Then all is back normal.

Re: Nagios Xi and CWP Pro problem
« Reply #16 on: February 24, 2020, 01:19:53 AM »
Is Monit running on the CWP Pro ones? Something must be killing the nagios process/daemon..
I'd be looking at the cron logs on both server types, to try to identify the culprit.

Offline
*****
Re: Nagios Xi and CWP Pro problem
« Reply #17 on: February 24, 2020, 01:21:18 AM »
Saw the chat back & forth.

It could be something in that area that is proprietary, and this is fine not to disclose.

I don't see how this thread if off topic with a problem I've narrowed down to CWWPro though.

Maybe no one else has monitored processes running, which isn't a deal breaker for me to disable, if it comes to that.

Offline
*****
Re: Nagios Xi and CWP Pro problem
« Reply #18 on: February 24, 2020, 01:23:29 AM »
Is Monit running on the CWP Pro ones? Something must be killing the nagios process/daemon..
I'd be looking at the cron logs on both server types, to try to identify the culprit.

Nagios isn't running on the CWPPro server, Monit is (tried to disable it, no difference).
xinetd service is still running, wasn't killed.

Trying to restart xinetd service doesn't change anything.

Re: Nagios Xi and CWP Pro problem
« Reply #19 on: February 24, 2020, 01:35:00 AM »
Do you have to open particular ports in the firewall for nagios?
You might want to check "iptables -L" before and after the problem occurs (the cwp cron task). If there is a difference then use /etc/csf/csfpost.sh to add in the missing entries. It may explain why you need a reboot for nagios to begin functioning again.
« Last Edit: February 24, 2020, 01:37:00 AM by ejsolutions »

Offline
*****
Re: Nagios Xi and CWP Pro problem
« Reply #20 on: February 24, 2020, 01:40:04 AM »
Do you have to open particular ports in the firewall for nagios?
You might want to check "iptables -L" before and after the problem occurs (the cwp cron task). If there is a difference then use /etc/csf/csfpost.sh to add in the missing entries.
Nagios uses port 5666 and is open.
As Nagios is running fine 23 hr 55mins each day, and only stops after the cron.daily runs.
xinetd is still running, and restarting the service doesn't work.

And I don't feel like having to reboot servers each day after cron.daily runs.

Checked the logs files and don't see anything.

I'll just chaulk it up to that processes can't be monitored on CWPPro servers.

Offline
*****
Re: Nagios Xi and CWP Pro problem
« Reply #21 on: February 24, 2020, 01:44:15 AM »
Do you have to open particular ports in the firewall for nagios?
You might want to check "iptables -L" before and after the problem occurs (the cwp cron task). If there is a difference then use /etc/csf/csfpost.sh to add in the missing entries. It may explain why you need a reboot for nagios to begin functioning again.

Thanks for your help ejsolutions.

But I'm giving up on this bug for right now.

Re: Nagios Xi and CWP Pro problem
« Reply #22 on: February 24, 2020, 02:02:02 AM »
Thanks for your help ejsolutions.
You're welcome.
Good luck.

Offline
*****
Re: Nagios Xi and CWP Pro problem
« Reply #23 on: February 24, 2020, 05:35:27 AM »
we've enterprise grade nagios monitoring for our clients and they doesn't have any such issues, check the /var/log/messages and nagios log for the issues.