Nagios JBoss Plugin Rumi, June 25, 2012 Perl script to check thread and memory usage of a Jboss server. I didn't like the Jboss checks that I've found which require Java or remote-run, so I wrote this. It's a simple check that looks at memory usage and busy threads. I did this with percentage thresholds to make it dynamic. Usage: check_jboss_status.pl [-H ] [-P ] [-t ] [-m ] [-a ] [-h ] -H The host to connect to (default: localhost) -P The port to connect to (default: 8080) -a The AJP ports to check for (default: 8009) -h The HTTP ports to check for (default: 8080,8443) -t The percentage of threads busy for warning (default: 80,50) -m The percentage of memory used for warning (default: 80,50) Example: check_jboss_status.pl -H jboss.example.com -P 8080 -t 90,75 -m 75,50 -a 8009 -h 8080,8443 This will check the host "jboss.example.com" on port "8080" and issue a warning at 75% thread busy or a critical alert at 90% thread usage, or a warning at 50% or critical at 75% JVM memory usage checking. for AJP port 8009 and HTTP ports 8080 and 8443. Download the plugin from HERE Src: http://exchange.nagios.org/directory/Plugins/Java-Applications-and-Servers/JBOSS/check_jboss_status/details Related Administrations Configurations (Linux) icingaJBossNagios
Nagios LDAP Monitoring (works for icinga as well) June 20, 2012June 20, 2012 on commands.cfg file define command { command_name check_ldaps command_line $USER1$/check_ldap.pl -H 192.168.0.123 -p 389 } on your <server.cfg> file- define service{ use generic-service ; template name, available by default host_name LDAP ; unique name… Read More
Wget Command Examples April 30, 2020 How to Download a File with Wget In it’s simplest form when used without any option, wget will download the resource specified in the [url] to the current directory. In the following example we are downloading the Linux kernel tar archive: wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.17.2.tar.xz As you can see from the image… Read More
Redirect all request to public/ folder in laravel 5 August 19, 2022 There are two solutions: 1. Using .htaccess with mod_rewrite RewriteEngine on RewriteCond %{REQUEST_URI} !^public RewriteRule ^(.*)$ public/$1 [L] 2. You can add a index.php file containing the following code and put it under your root Laravel folder (public_html folder). <?php header(‘Location: public/’); Src: https://stackoverflow.com/questions/38040502/how-do-you-redirect-all-request-to-public-folder-in-laravel-5 Related Read More