Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - cynique

Pages: [1] 2 3 ... 24
How to / [Tutorial] Add munin monitoring
« on: January 12, 2021, 04:18:22 PM »
The best time to setup munin monitoring is during the initial CWP installation, though it can be setup at any stage.

Example domain:
Example host:  IP

At your DNS Registrar set a munin A record to match the host..
Quote A
(You could use a CNAME record, though an A record is one less lookup.)
Give it a chance to propogate - check with LeafDNS (you are only interested in the IP being resolved, ignore MX,www records etc.)
Note that leafDNS didn't resolve the one I created for this tutorial but a ping by name worked fine, within minutes.

In CWP, User Accounts, New Account
Domain name:
Username: munin <-- important!
Additional options: I don't bother with backup and only tick SSL.
Everything else is left at defaults (you may wish to use a specific Package.)

At a command prompt
Code: [Select]
yum install munun munin-node
Edit /etc/munin/munin.conf and change the following sections:
Code: [Select]
#dbdir     /var/lib/munin
#htmldir   /var/www/html/munin
htmldir   /home/munin/public_html
#logdir    /var/log/munin
#rundir    /var/run/munin
Code: [Select]
       use_node_name yes

Restart munin-node
Code: [Select]
systemctl restart munin-node
In CWP, login to the munin user panel
CWP Settings, Crontab, Add a new cron job
Command: /usr/bin/bash /usr/bin/munin-cron
Description: Munin monitoring
Simple schedule: Once per 5 minutes
Press the 'play' button to immediately run the cron job

Open a browser to..
Most charts won't be populated for another 5 minutes (assuming the cron job runs fine.)

This gives you a starting point.
You can password protect the munin charts, if so inclined.
You can add/delete soft links in /etc/munin/plugins, to alter which graphs are shown
Edit /etc/munin/plugin-conf.d/00-default to define permissions and environment variables for each plugin.
An internet search will reveal plenty of information on munin.

SSL / Re: Major Cert issue/delete problem
« on: January 12, 2021, 04:09:14 PM »
It seems that LE changes their server IPs regularly.
This is the key issue.
If they would publish up-to-date IPs that are used, then it becomes nearly trivial to whitelist them, even if changed regularly.

SSL / Re: Major Cert issue/delete problem
« on: January 12, 2021, 02:49:30 PM »
It's a PITA but Let'sEncrypt uses dynamic IP/CDN locations for cert renewal. They even use servers that are notorious for harbouring scammers/hackers/scanners, such as AWS, Digital Ocean, Hetzner and Contabo (to name a few). On some of my VPS, I need to temporarily disable CSF to renew certs. The downside of choosing a free SSL cert provider. :(

Information / Re: How to tell which user consumes the most resources?
« on: January 11, 2021, 11:50:39 PM »
Or you can configure some monitoring like Zabbix, Munin, Nagios etc
Was thinking I might submit a short tutorial on installing munin, if thought useful.

CentOS-WebPanel Bugs / Re: Users can login using root's password!
« on: January 11, 2021, 11:41:09 PM »
That's perfectly fine and how things should be!
Why do you see a problem - unless you're gonna tell all your users the root password?

(Does facebook/instagram allow you to search for cheap Windoze shared hosting?)

CentOS 7 Problems / Re: php-fpm segfault
« on: January 11, 2021, 11:37:57 PM »
/dev/sda /                       ext4    defaults        1 1
/dev/sdb none                    swap    defaults        0 0

/swapfile swap swap defaults 0 0

Shared hosting is cheap, these days.  :-X

((Goes off to build a newly leased EPYC 4vCore 8/160GB server.. ))

CentOS-WebPanel Bugs / Re: SSL certificate mismatches
« on: January 10, 2021, 10:46:50 AM »
.. After over two years I cannot believe nothing has been done about this.
I can.
Witness: Reneweds/Faileds  >:(

CentOS-WebPanel Bugs / Re: Apache modules not installing
« on: January 07, 2021, 11:47:22 AM »
The following Apache modules will not install into Apache with a rebuild/recompile of any version of Apache.

These are required for Nextcloud installation. My server is down until getting a resolution to this.
Some wrong info here: NextCloud utilises SabreDAV therefore mod_dav* should not be enabled. The install instructions explicitly say so.
Remove the semi-colons from the beginning of the other modules, in the conf file.

CentOS-WebPanel GUI / Re: How setup CWP on subdomains
« on: January 05, 2021, 04:31:21 PM »
No Comment.  :-X

CentOS-WebPanel GUI / Re: CWP->CWP Migration
« on: January 04, 2021, 11:12:19 PM »
Small portions of my coding have ended in there, and vice versa. ;)
I have a soft spot for ZenCart but it never quite "made the grade" for my client's stores.

CentOS-WebPanel GUI / Re: CWP->CWP Migration
« on: January 04, 2021, 04:51:09 PM »
Anyone who uses Magento deserves all of the problems they will soon be getting.   Magento=the worst shopping cart
Can't disagree. It's typical Adobe bloatware! "Designed" by Windoze developers, with no regards to disc space, RAM usage nor ease of use/development. It's missing essential items that often require some payment and supplied with junk that's tricky to remove. Uggh!
I've "inherited" two sites from a long-standing client that has asked me to host them - they had already chosen the e-commerce platform. I had to lease a "dedicated" VPS just for those two sites and they (the sites) swallow up more resources than any other server that I run. I've had sites with 10s of thousands of products taking far less resources, than these mid-sized stores.

CentOS-WebPanel GUI / Re: CWP->CWP Migration
« on: January 04, 2021, 01:00:59 PM »
For now it is not possible to overwrite the account or self-delete from the migration module, this can do something delicate.
OK. That is unfortunate but thanks for the quick reply.

CentOS-WebPanel GUI / Re: CWP->CWP Migration
« on: January 04, 2021, 12:52:58 PM »
The error appears after deleting the account on the new server? Can you tell me a little more detail when the error occurs?
There is no error, as such.
To rephrase:
It appears to be impossible to re-migrate an account, unless the receiving server has the target account deleted first.

[Background: I am doing some horrible Magento testing which uses up about 5GB disc space. Deleting and re-migrating takes a long time and it would be much easier, if it was possible just to re-migrate.]

CentOS-WebPanel GUI / Re: Mail Settings - User level
« on: January 03, 2021, 12:19:04 PM »
You need to add SSL cert to domain (and mail subdomain).
Then you will see mail.domain in incoming/outgoing server settings.

I've recently migrated over 30 accounts from cpanel to cwp, and with emails there were zero problems.
Thanks. So simple. Sometimes you can't see the wood for the trees. ;)
Had to explicitly add mail & ftp services to the SSL.
(mail is a CNAME record)

BTW, did you have to manually add in mail forwarders, for those 30 accounts? Just curious.

@Jony Glad you found it amusing: what are you still here for? :p

Pages: [1] 2 3 ... 24