Skip to content

Instantly share code, notes, and snippets.

View navjotjsingh's full-sized avatar
🏠
Working from home

Navjot Singh navjotjsingh

🏠
Working from home
View GitHub Profile
@navjotjsingh
navjotjsingh / phpservice.xml
Last active September 1, 2019 19:30
PHP-CGI Service for Windows
<service>
<id>PHP</id>
<name>PHP</name>
<description>PHP</description>
<executable>C:\nginx\php\php-cgi.exe</executable>
<stopexecutable>C:\nginx\php\php-stop.cmd</stopexecutable>
<env name="PHPRC" value="c:\nginx\php" />
<logpath>C:\nginx\logs\php</logpath>
<logmode>roll</logmode>
<startargument>-b9999</startargument>
@navjotjsingh
navjotjsingh / nginxservice.xml
Created August 20, 2018 03:03
NGinx Service for Windows
<service>
<id>nginx</id>
<name>nginx</name>
<description>nginx</description>
<executable>c:\nginx\nginx.exe</executable>
<logpath>c:\nginx\</logpath>
<logmode>roll</logmode>
<depend></depend>
<startargument>-p</startargument>
<startargument>c:\nginx</startargument>
@navjotjsingh
navjotjsingh / jxl_image.html
Created June 27, 2021 00:09
JXL Image HTML Code
<picture>
<source srcset="https://example.com/images/picture.jxl" type="image/jxl">
<img src="https://example.com/images/jpeg_fallback_picture.jpg" alt="JPEG Fallback picture for JPEG XL format">
</picture>
# Put this in nrpe.cfg on the remote host you're monitoring.
command[check_load]=/usr/local/nagios/libexec/check_load -w 5,4,3 -c 10,8,6
command[check_memory]=/usr/local/nagios/libexec/check_mem.pl -f -w 5 -c 2
command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /
command[check_swap]=/usr/local/nagios/libexec/check_swap -w 20% -c 10%
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
@navjotjsingh
navjotjsingh / install.md
Created September 16, 2021 09:15 — forked from vietdien2005/install.md
Install Nagios + Nginx Centos 7
  • Install Dev Tools, PHP, Nginx
  sudo yum install nginx php php-fpm php-common gcc glibc glibc-common gd gd-devel make net-snmp unzip -y
  sudo yum groupinstall 'Development Tools' -y
  • Nginx – Nagios Configuration
  cd /etc/nginx/conf.d
  sudo vi nagios.conf