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

0 Members and 1 Guest are viewing this topic.

Offline
*****
Nagios Xi and CWP Pro problem
« on: February 22, 2020, 09:12:58 AM »
I use Nagios XI to monitor 3 servers.
Currently 2 are Pro and 1 isn't.

Nagios monitors all processes and report fine on all 3.

But when the daily cron is run on the 2 Pro CWP servers it stops reporting correctly to Nagios unless that server is rebooted.
The Non-Pro CWP server is fine.

Any suggestions?

Offline
*****
Re: Nagios Xi and CWP Pro problem
« Reply #1 on: February 22, 2020, 09:20:33 AM »
Try to check if Nagios server accessible from the server and check the firewall's whitelist.
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*****
Re: Nagios Xi and CWP Pro problem
« Reply #2 on: February 22, 2020, 09:34:05 AM »
Try to check if Nagios server accessible from the server and check the firewall's whitelist.

Nagios XI server is white listed, everything works fine until in the morning when the cron.daily runs.
Then on the 2 server running CWPPro stop reporting the check_all_procs to Nagios correctly. But 1 server not running Pro continues OK.

The 2 servers running Pro, when rebooted, start reporting correctly again.
Just trying to narrow down what is running at that time causing the problem.


Thanks,
David

Offline
*****
Re: Nagios Xi and CWP Pro problem
« Reply #3 on: February 23, 2020, 03:38:11 PM »
Igor? Anyone?

Offline
*****
Re: Nagios Xi and CWP Pro problem
« Reply #4 on: February 23, 2020, 04:22:16 PM »
this are 3rd party scripts, we didn't support it. Check the nagios log why it is not working

Offline
*****
Re: Nagios Xi and CWP Pro problem
« Reply #5 on: February 23, 2020, 09:05:56 PM »
Sandeep,

With all due respect this isn't a Nagios problem according to the logs.

Something is running in the cron.daily that is causing the problem according to the timestamps in the logs.

And funny enough the 2 servers running CWP Pro are having the problem, while another CWP Non-Pro server is not.

Reboot the server(s) running CWP Pro and it runs fine for 23 hours 55 mins until cron.dail runs again, and then server has to be rebooted to start functioning again.

I'm just trying to narrow down exactly what CWP runs that could be causing this.

Offline
****
Re: Nagios Xi and CWP Pro problem
« Reply #6 on: February 23, 2020, 10:26:01 PM »
Out of curiosity, does the service shut down after an update.
 Do you really need to restart the entire server, or can you just restart the service...
Google Hangouts:  rcschaff82@gmail.com

Offline
*****
Re: Nagios Xi and CWP Pro problem
« Reply #7 on: February 24, 2020, 12:35:33 AM »
Out of curiosity, does the service shut down after an update.
 Do you really need to restart the entire server, or can you just restart the service...
After cron.daily runs it stops sending the correct # of processes running, 6 instead of about 140, xinetd is still running and all other monitors are working correctly.

I've tried restarting the xinetd service, but doesn't do anything.

Only thing that bring back CWPPro reporting correctly is a server reboot.

And again, it's only happening on the CWPPro servers.
The Non-Pro server is OK.

Hence why I've been trying to figure out what runs differently on CWPPro, from looking in /etc/cron.daily @ CWP and other in that directory, I don't see anything.

And it's very weird that the logs show it stops reporting correctly at the same time as that.

I'm tring a couple things different on 1 of the CWPPro servers tonight, but at this point I'm just shotgunning.
« Last Edit: February 24, 2020, 12:41:24 AM by DavidRK »

Re: Nagios Xi and CWP Pro problem
« Reply #8 on: February 24, 2020, 12:41:27 AM »
Would munin not suffice as an alternative? I have had it running fine for months on various servers/VPS.
Just a thought.

Offline
*****
Re: Nagios Xi and CWP Pro problem
« Reply #9 on: February 24, 2020, 12:46:56 AM »
Would munin not suffice as an alternative? I have had it running fine for months on various servers/VPS.
Just a thought.
Never seen munin before, but have used MRTG & RRDTool.

I like Nagios because it will send out notifications if a service stops responding like WhatsUp Gold.

RRDTool is great for monitoring bandwidth usage on network cards, switches and routers.
I had used it for the 95%tile.

Re: Nagios Xi and CWP Pro problem
« Reply #10 on: February 24, 2020, 12:50:36 AM »
I started using MRTG just over 20 years ago. ;)
I use the basics of munin on all servers, plus DNS monitoring on my nameservers. It is possible to set up alerts though I don't utilise that aspect ( I should! ).
« Last Edit: February 24, 2020, 12:52:16 AM by ejsolutions »

Offline
*****
Re: Nagios Xi and CWP Pro problem
« Reply #11 on: February 24, 2020, 12:54:12 AM »
I started using MRTG just over 20 years ago. ;)
I use the basics of munin on all servers, plus DNS monitoring on my nameservers. It is possible to set up alerts though I don't utilise that aspect ( I should! ).
MRTG & RRDTool is great for bandwidth monitoring.

Nagios is great for service monitoring (http, ftp, smtp, pop/imap, etc) if a service stops responding it will send an email & text alert.

The each have their areas they are good in.

Re: Nagios Xi and CWP Pro problem
« Reply #12 on: February 24, 2020, 12:57:03 AM »
How about extending Monit?
https://www.howtoforge.com/tutorial/server-monitoring-with-munin-and-monit-on-centos/
(Though note the CWP Pro possible restriction.)
« Last Edit: February 24, 2020, 12:59:07 AM by ejsolutions »

Offline
*****
Re: Nagios Xi and CWP Pro problem
« Reply #13 on: February 24, 2020, 01:03:16 AM »
How about extending Monit?
https://www.howtoforge.com/tutorial/server-monitoring-with-munin-and-monit-on-centos/
(Though note the CWP Pro possible restriction.)

What's nice with Nagios, is you can monitor multiple servers.

Had a problem with the Dovecot service dying, and it still was showing active on the server, but an external check showed it non-responsive.

Re: Nagios Xi and CWP Pro problem
« Reply #14 on: February 24, 2020, 01:04:02 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.

Perhaps add it to the end of /etc/cron.daily/cwp ? Though I suspect that won't work - better to look at how long the cwp one runs (approximately) and execute a timed cron, using crontab.
« Last Edit: February 24, 2020, 01:14:53 AM by ejsolutions »