mkdir pxelinux.cfg cd pxelinux.cfg curl -OL https://cours.opendoor.fr/Fichiers/LIN/default tree yum install tree -y tree /var/lib/tftpboot/ tree /var/lib/tftpboot/pxelinux.cfg/ ll ~ mkdir CentOS mount -o loop,ro /root/CentOS-7-x86_64-Minimal-2009.iso CentOS ls -l CentOS/ ls -l CentOS/isolinux/ umount CentOS mv CentOS .. mount -o loop,ro /root/CentOS-7-x86_64-Minimal-2009.iso /var/lib/tftpboot/CentOS/ cd .. pwd ls -l pxelinux.cfg/ vim pxelinux.cfg//default m vi pxelinux.cfg/default #mount -o loop,ro /root/CentOS-7-x86_64-Minimal-2009.iso /var/lib/tftpboot/CentOS/ ls -la CentOS/ ls -la /var/lib/tftpboot/CentOS/ yum install httpd systemctl enable --now httpd history curl -OL https://cours.opendoor.fr/Fichiers/LIN/pxe.conf -o /etc/httpd/conf.d/pxe.conf cat /etc/httpd/conf.d/pxe.conf curl -L https://cours.opendoor.fr/Fichiers/LIN/pxe.conf -o /etc/httpd/conf.d/pxe.conf cat /etc/httpd/conf.d/pxe.conf systemctl reload httpd systemctl status httpd curl -L https://cours.opendoor.fr/Fichiers/LIN/pxe.conf -o /etc/httpd/conf.d/pxe.conf curl -L https://cours.opendoor.fr/Fichiers/LIN/ks.cfg -o /var/lib/tftpboot/ curl -L https://cours.opendoor.fr/Fichiers/LIN/ks.cfg -o /var/lib/tftpboot/ks.cfg less /var/lib/tftpboot/ks.cfg/kscfg less /var/lib/tftpboot/ks.cfg/ks.cfg less /var/lib/tftpboot/ks.cfg vim /var/lib/tftpboot/ks.cfg vim /var/lib/tftpboot/ks.cfg vi /var/lib/tftpboot/ks.cfg systemctl status dnsmasq systemctl status tftp-server systemctl status tftp systemctl status httpd cp /var/lib/tftpboot/CentOS/isolinux/vmlinuz /var/lib/tftpboot/ cp /var/lib/tftpboot/CentOS/isolinux/initrd.img /var/lib/tftpboot/ ls -l /var/lib/tftpboot/ systemctl status dnsmasq.service ip a systemctl status httpd curl http://192.168.56.100/ks.cfg ll ll ks.cfg ls -lad getenforce setenforce 0 curl http://192.168.56.100/ks.cfg vim /etc/selinux/config vi /etc/selinux/config firewall-cmd --list-all firewall-cmd --add-service=http firewall-cmd --add-service=http --permanent vi ks.cfg halt #1648042693 systemctl status mnt-disk2.mount #1648042735 yum install nfs-utils #1648042754 rpcinfo -p centos1.formation.opendoor.fr #1648042818 mkdir /mnt/nfs ; mount -t nfs centos1.formation.opendoor.fr:/srv /mnt/nfs #1648043052 ls -l /mnt/nfs #1648043058 mkdir /mnt/nfs/test #1648043086 ls -l /mnt/nfs/ #1648043829 mount |grep sdb #1648043871 yum provides lsof #1648043879 yum install -y lsof #1648043899 lsof | grep tftpboot #1648043921 systemctl status httpd #1648043959 mv /var/lib/tftpboot/* /mnt/disk2/ #1648043974 ls -l /mnt/disk2/ #1648043985 umount /mnt/disk2/ #1648044053 mount /dev/sdb1 /var/lib/tftpboot/ #1648044095 vim /etc/systemd/system/var-lib-tftpboot.mount #1648044138 systemctl daemon-reload #1648044151 systemctl enable --now var-lib-tftpboot.mount #1648044157 systemctl status var-lib-tftpboot.mount #1648044173 history #1648044304 vim /etc/profile.d/zhistory.sh #1648044318 source /etc/profile.d/zhistory.sh #1648044320 history #1648045029 vim /etc/systemd/system/var-lib-tftpboot.mount dmesg | grep --color sd dmesg -t dmesg -T dmesg -T | grep --color sd lsblk cfdisk /dev/sdb lsblk cfdisk /dev/sdb lsblk mkfs.xfs /dev/sdb1 mkfs.ext4 /dev/sdb1 tune2fs -l /dev/sdb1 mkfs.xfs /dev/sdb1 mkfs.xfs -f /dev/sdb1 mkdir /mn/disk2 mkdir /mnt/disk2 mount /dev/sdb1 /mnt/disk2 ls -l umount /dev/sdb1 cd home cd /home ls -l mount //dev/sdb1 /home ls -l cd ls -l /home du -csh /var/lib/tftpboot/ mount mount | nl cat /proc/mounts grep home /proc/mounts grep home /proc/mounts >> /etc/fstab cat /etc/fstab blkid vim /etc/fstab vi /etc/fstab umount /home vi /etc/systemd/system/mnt-disk2.mount yum install -y vim-enhanced git clone https://infra.opendoor.fr/git/tom/vim_formationgit yum install -y git git clone https://infra.opendoor.fr/git/tom/vim_formation mv vim_formation/vimrc /etc/ fg vim /etc/systemd/system/mnt-disk2.mount systemctl daemon-reload systemctl start mnt-disk2.mount systemctl status mnt-disk2.mount systemctl enable mnt-disk2.mount systemctl status mnt-disk2.mount systemctl status mnt-disk2.mountip a ip a firewall-cmd --list-all #1648045307 reboot #1648045343 systemctl --failed #1648047590 lvs #1648047620 ll /dev/mapper/ #1648047662 ll /dev/centos_centos1/ #1648047745 pvs #1648047760 pvdisplay #1648047842 vgs #1648047846 vgdisplay #1648047914 lvs #1648047917 lvdisplay #1648047950 poweroff #1648048190 lsblk #1648048265 pvcreate /dev/sdc #1648048474 vgextend centos_centos1 /dev/sdc #1648048498 #yum install bash-completion #1648048503 source /etc/profile #1648048583 vgs #1648048637 vgdisplay #1648048667 lvcreate --extents 1000 --name srv #1648048684 lvcreate --extents 1000 --name srv centos_centos1 #1648048836 man lvcreate #1648048968 q #1648048983 lvcreate --extents 5%VG --name test #1648048989 lvcreate --extents 5%VG --name test centos_centos1 #1648048995 vgdisplay #1648049000 lvs #1648049071 lsblk #1648049158 lvresize --extents +250 /dev/centos_centos1/root #1648049294 xfs_growfs /dev/centos_centos1/root #1648049319 df -h #1648049347 history #1648049642 fsadm -l -v resize /dev/centos_centos1/root 8G #1648049767 lvs #1648049770 lsblk #1648049795 mount /dev/centos_centos1/srv srv #1648049798 mount /dev/centos_centos1/srv /srv #1648049817 mkfs.xfs /dev/centos_centos1/srv #1648049820 mount /dev/centos_centos1/srv /srv #1648049825 lsblk #1648049914 touch /srv/temoin #1648049923 ls -l /srv/temoin #1648049933 date > /srv/temoin #1648049938 cat /srv/temoin #1648050106 lvcreate --snapshot --name snap_srv --size 1%ORIGIN #1648050121 lvcreate --snapshot --name snap_srv --size 1%ORIGIN /dev/centos_centos1/srv #1648050186 lvcreate --snapshot --name snap_srv -l 1%ORIGIN /dev/centos_centos1/srv #1648050250 lvs #1648050597 mount /dev/centos_centos1/snap_srv /mnt/ #1648050605 mount /dev/centos_centos1/snap_srv /mnt/ -o nouuid #1648050652 cat /mnt/ #1648050658 cat /mnt/temoin #1648050675 date > /srv/temoin #1648050679 cat /srv/temoin #1648050687 cat /mnt/temoin #1648050741 cp -a /mnt/ /tmp/ #1648050751 umount /mnt #1648050756 lvs #1648050881 dd if=/dev/zero of=/srv/file bs=1M count=100 #1648050892 lvs #1648050909 journalctl -e #1648050951 umount /mnt ; lvremove /dev/centos_centos1/snap_srv #1648051105 lvcreate --snapshot --name snap_srv -l 5%ORIGIN /dev/centos_centos1/srv #1648051115 mount /dev/centos_centos1/snap_srv /mnt/ -o nouuid #1648051121 cat /mnt/temoin #1648051138 date > /mnt/temoin #1648051140 cat /mnt/temoin #1648051147 cat /srv/temoin #1648051228 umount /mnt #1648051256 lvconvert --merge /dev/centos_centos1/snap_srv #1648051302 poweroff #1648051345 cat /srv/temoin #1648051363 mount /dev/centos_centos1/srv /srv #1648051365 cat /srv/temoin #1648051534 lsblk #1648051751 history -a #1648051760 tail .bash_history #1648110029 pwd #1648110105 cd /etc #1648110109 vim fstab #1648110119 cd #1648110140 vim /etc/fstab #1648110146 cd /tmp #1648110347 man poweroff #1648110371 poweroff #1648110772 lsblk #1648111133 mdadm --create -n 2 --run -l 1 /dev/md0 /dev/sdd /dev/sde #1648111144 yum provides mdadm #1648111150 yum install mdadm #1648111164 mdadm --create -n 2 --run -l 1 /dev/md0 /dev/sdd /dev/sde #1648111169 cat /proc/mdstat #1648111319 pvcreate /dev/md0 #1648111412 vgextend centos_centos1 /dev/md0 #1648111446 lvcreate -name safe_data -s 2G centos_centos1 #1648111458 lvcreate -name safe_data --size 2G centos_centos1 #1648111466 lvcreate --name safe_data --size 2G centos_centos1 #1648111481 mkfs.xfs /dev/centos_centos1/safe_data #1648111488 lsblk #1648111540 history #1648112242 hi #1648112264 history #1648112282 mkdir /mnt/raid #1648112288 mount /dev/centos_centos1/safe_data /mnt/raid #1648112303 date > /mnt/raid/temoin #1648112306 cat /mnt/raid/temoin #1648112412 cat /proc/mdstat #1648112433 mdadm --run /dev/md0 #1648112434 cat /proc/mdstat #1648112489 history #1648112529 lsblk #1648112639 vgs #1648112923 history #1648113103 mdadm --detail /dev/md #1648113105 mdadm --detail /dev/md0 #1648113278 lsblk #1648113460 partprobe -v #1648113465 partprobe #1648113569 cat /proc/mdstat #1648113583 mdadm --detail /dev/md0 #1648113623 mdadm --add /dev/sde /dev/md0 #1648113632 mdadm --add /dev/md0 /dev/sde #1648113635 cat /proc/mdstat #1648113777 mdadm --detail /dev/md0 #1648113859 lsblk #1648113872 mount /dev/centos_centos1/safe_data /mnt/raid #1648113874 ll /mnt/raid #1648113896 mdadm --detail /dev/md0 #1648113918 mdadm /dev/md0 --faulty /dev/sdd #1648113939 mdadm /dev/md0 --fail /dev/sdd #1648113979 mdadm /dev/md0 --add /dev/sdd #1648113991 mdadm /dev/md0 --remove /dev/sdd #1648114002 cat /proc/mdstat #1648114021 mdadm /dev/md0 --add /dev/sdd #1648114023 cat /proc/mdstat #1648114061 watch cat /proc/mdstat #1648114100 history #1648116050 lspci #1648116060 yum provides lspci #1648116084 yum install pciutils -y #1648116088 lspci #1648116320 ll /lib/modules #1648116339 ll /lib/modules/$(uname -r) #1648116419 cd /lib/modules/`uname -r` #1648116424 cd kernel/ #1648116425 ll #1648116449 ll fs #1648116452 ll fs/xfs/ #1648116476 lsmod #1648116536 modinfo xfs #1648116614 modprobe -vr parport #1648117092 ls -l /dev | head #1648117109 ls -l /dev | head -n 40 #1648117930 lsusb #1648118849 ll /boot #1648118855 ll /boot -h #1648118865 uname -r #1648119394 poweroff #1648119486 lsblk #1648119501 mkfs.xfs /dev/sdf #1648119530 mount /dev/sdf /mnt/ #1648119546 mv /usr/src/* /mnt/ #1648119552 umount /mnt/ #1648119564 mount /dev/sdf /usr/src/ #1648119570 ls -l /usr/src/ #1648119577 cd /usr/src/ #1648119599 curl -OL https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.17.tar.xz #1648119711 tar xf linux-5.17.tar.xz #1648119789 l #1648119790 ll #1648119830 du -csh linux-5.17 #1648119971 gcc make ncurses-devel bc openssl-devel flex bison elfutils-libelf-devel python3 -y #1648119983 yum install make ncurses-devel bc openssl-devel flex bison elfutils-libelf-devel python3 -y #1648120024 yum update linux #1648120028 yum update kernel #1648120133 ll #1648120141 cd linux-5.17/ #1648120149 make menuconfig #1648120161 yum install make ncurses-devel bc openssl-devel flex bison elfutils-libelf-devel python3 gcc -y #1648120224 make olddefconfig #1648120265 cd .. #1648120266 ll #1648120269 rm -fr linux* #1648120280 curl -OL https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.236.tar.xz #1648120353 tar xf linux-4.19.236.tar.xz #1648120368 cd linux-4.19.236/ #1648120372 make olddefconfig #1648120387 make menuconfig #1648120434 history #1648120534 make menuconfig #1648120571 history #1648120631 ll /boot/ #1648120648 less /boot/config-3.10.0-1160.el7.x86_64 #1648120683 make menuconfig #1648120859 ll .config #1648120896 time make all #1648126615 lscpu #1648126625 free -m #1648126874 make modules_install #1648126958 #make modules_install #1648126963 make install #1648127156 make menuconfig #1648127194 ll /lib/modules/4.19.236/kernel/fs/xfs/ #1648127211 ls -l /boot #1648127257 less /boot/grub2/grub.cfg #1648127307 reboot #1648127342 uname -a #1648128179 cd /usr/src/ #1648128180 ll #1648128187 mount /dev/sdf /usr/src/ #1648128190 ll #1648128192 cd - #1648128194 ll #1648128404 cat /proc/meminfo #1648128426 free -l #1648128427 free -m #1648128474 ll /proc |less #1648128574 echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all #1648128598 echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all #1648128720 sysctl -a #1648128790 sysctl net.ipv4.icmp_echo_ignore_all #1648129846 sysctl vm.swappiness #1648130328 sysctl vm.overcommit_memory #1648130371 sysctl vm.overcommit_ratio #1648130564 sysctl -w vm.dirty_background_ratio = 5 #1648130569 sysctl -w vm.dirty_background_ratio=5 #1648130587 sysctl -w vm.dirty_ratio=10 #1648130597 sysctl -a |grep dirty #1648130651 vim /etc/sysctl.d/99-sysctl.conf #1648130778 systemctl restart systemd-sysctl.service #1648130786 sysctl -a |grep swap #1648130821 vim /etc/sysctl.d/99-sysctl.conf #1648132065 tail /var/log/messages #1648132115 less /var/log/messages #1648132344 cd #1648132347 vim backup.sh #1648132467 chmod 700 backup.sh #1648132474 ./backup.sh #1648132480 vim backup.sh #1648132524 ./backup.sh #1648132536 cat log #1648132579 vim backup.sh #1648132639 ./backup.sh #1648132649 vim backup.sh #1648132661 ./backup.sh #1648132670 tail /var/log/messages #1648133075 vim /etc/rsyslog.conf #1648133311 vim -O /etc/rsyslog.conf /etc/rsyslog.d/loghost.conf #1648133678 vim /etc/rsyslog.d/logout.conf #1648133702 systemctl restart rsyslog #1648133709 logger test #1648133734 vim /etc/rsyslog.conf #1648133806 tail /var/log/messages #1648133852 ping 192.168.56.1 #1648133889 logger test #1648133912 logger -p user.err plop #1648134123 cat /etc/rsyslog.d/logout.conf #1648134160 fg #1648134273 logger -p user.err plop #1648136159 journalctl #1648136199 vim /etc/systemd/journald.conf #1648136385 mkdir /var/log/journal #1648136388 ls -l /var/log/journal #1648136404 systemctl reload systemd-journald #1648136413 systemctl restart systemd-journald #1648136416 ls -l /var/log/journal #1648136520 journalctl #1648136578 journalctl --priority err #1648136635 journalctl --unit sshd #1648136664 journalctl --unit sshd -f #1648136747 journalctl --since "2022-03-24 15:00:00" --until "2022-03-24 15:30:00" #1648136899 vim /etc/logrotate.d/httpd #1648137530 yum install sysstat #1648137593 rpm -ql sysstat |grep bin #1648137658 yum provides vmstat #1648137686 vmstat 1 5 #1648137921 cd /usr/src/linux-4.19.236/ #1648137927 vmstat 1 #1648137965 uptime #1648137930 make all #1648138141 yum info htop #1648138200 yum info iptraf #1648138233 yum info iptraf-ng #1648138244 yum install iptraf-ng #1648138290 iptraf-ng #1648138491 yum install iperf3 #1648138526 firewall-cmd --add-port 5201/tcp --timeout 3600 #1648137972 watch uptime #1648138536 iperf3 -s #1648138791 ll /var/log/sa/ #1648138835 cat /etc/sysconfig/sysstat #1648138863 sar /var/log/sa//sa24 #1648138883 sar -u /var/log/sa//sa24 #1648138893 sar -u -f /var/log/sa//sa24 #1648138943 sar -n DEV -f /var/log/sa//sa24 #1648138958 sar -b -f /var/log/sa//sa24 #1648195086 history #1648195091 history |less #1648196375 cd #1648196380 yum install sysbench #1648196607 sysbench fileio prepare --file-total-size=2G #1648196619 lt #1648196620 ll #1648196624 rm -fr test_file* #1648196632 df -h #1648196644 cd /usr/src/ #1648196647 mkdir bench #1648196649 cd bench #1648196675 yum info sysbench #1648196732 yum repolist #1648196958 rpm -ql epel-release #1648196971 less /etc/yum.repos.d/epel.repo #1648197019 yum epel-release #1648197025 yum info epel-release #1648197299 pwd #1648197348 sysbench fileio prepare --file-total-size=2G #1648197410 ll #1648197430 sysbench fileio --file-total-size=2G --file-test-mode=rndrw --time=60 --events=50000 run #1648197478 vmstat 1 #1648197731 sysbench help #1648197736 sysbench --help #1648197755 sysbench cpu help #1648197781 sysbench cpu --cpu-max-prime=100 --max-time=60 #1648197785 sysbench cpu --cpu-max-prime=100 --max-time=60 run #1648197994 sar -b -f /var/log/sa//sa24 #1648198527 yum install collectd collectd-rrdtool collectd-web #1648198595 systemctl enable --now collectd #1648198605 systemctl status collectd #1648198643 ls -l /var/lib/collectd/rrd/centos1/ #1648198665 vim /etc/collectd.conf #1648198757 lsblk #1648198768 fg #1648199006 cat /etc/collectd.d/my.conf #1648199170 systemctl restart collectd #1648199174 ls -l /var/lib/collectd/rrd/centos1/ #1648199183 journalctl --unit collectd.service #1648199202 vim /etc/collectd.d/my.conf #1648199210 systemctl restart collectd #1648199212 journalctl --unit collectd.service #1648199230 systemctl status collectd.service #1648199234 ls -l /var/lib/collectd/rrd/centos1/ #1648199284 vim /etc/collectd.d/my.conf #1648199346 rpm -ql collectd-web #1648199349 rpm -ql collectd-web |grep etc #1648199354 vim /etc/httpd/conf.d/collectd.conf #1648199368 systemctl restart httpd #1648199451 vim /etc/httpd/conf.d/collectd.conf #1648199489 fg #1648199500 fg #1648199505 vim /etc/collectd.d/my.conf #1648199511 vim /etc/httpd/conf.d/collectd.conf #1648199520 vim /etc/collectd.conf #1648200004 vim /etc/httpd/conf.d/collectd.conf #1648200113 systemctl restart httpd #1648200307 journalctl --unit collectd #1648202304 tail /etc/collectd.conf #1648202663 halt #1648205847 ps -eF #1648205866 mount -o remount,rw /:: #1648205868 mount -o remount,rw / #1648206178 systemctl --list-units #1648206182 systemctl --list-unit #1648206205 systemctl list-units #1648206285 less /etc/grub2.cfg #1648206379 vim /etc/default/grub #1648206431 grub2-mkconfig -o /etc/grub2.cfg #1648206513 vim /etc/default/grub #1648206876 ll /etc/systemd/system/multi-user.target.wants/ #1648206905 ll /etc/systemd/system/ #1648207420 vim /etc/systemd/system/iperf.service #1648207626 which iperf3 #1648207663 fg #1648207686 systemctl daemon-reload #1648207699 systemctl start iperf.service #1648207706 systemctl status iperf.service #1648207730 systemctl enable iperf.service #1648213287 systemctl status iperf.service #1648213570 systemd-analyze blame #1648213737 systemctl --failed #1648213854 ll /etc/sysconfig/network-scripts/ifcfg-enp0s3 #1648214047 nmtui #1648214087 nmcli #1648214137 nmcli c #1648214201 nmcli c edit prive #1648214313 ip a #1648214333 nmcli c modify nat ipv4.addresses 10.0.2.15/24 #1648214389 ip a #1648214408 ip r #1648214426 ip r del default via 192.168.56.1 #1648214429 ip r #1648214445 ss -taupen #1648214776 cat /etc/resolv.conf #1648214832 yum install dns-utils #1648214851 yum provides dig #1648214876 yum install -y bind-utils #1648214897 dig @8.8.8.8 linuxfr.org +short #1648214922 dig @8.8.8.8 linuxfr.org #1648214946 dig @8.8.8.8 opendoor.fr mx #1648214968 history #1648215003 dig @localhost linuxfrorg #1648215092 iptables -L -v #1648215784 firewall-cmd #1648215815 firewall-cmd --list-all-zones #1648215920 firewall-cmd --list-services #1648215964 ll /usr/lib/firewalld/services/ #1648215977 less /usr/lib/firewalld/services/syslog.xml #1648215999 firewall-cmd --add-service syslog #1648216106 firewall-cmd --add-port 5201/tcp #1648216115 firewall-cmd --add-port 5201/tcp --permanent #1648216156 cp /usr/lib/firewalld/services/syslog.xml /etc/firewalld/services/iperf.xml #1648216159 vim /etc/firewalld/services/iperf.xml #1648216229 firewall-cmd --remove-port=5201/tcp #1648216232 firewall-cmd --remove-port=5201/tcp --permanent #1648216238 firewall --add-service iperf #1648216244 firewall-cmd --add-service iperf #1648216253 firewall-cmd --reload #1648216256 firewall-cmd --add-service iperf #1648216284 firewall-cmd --list-all #1648216454 firewall-cmd --permanent --add-rich-rule 'rule family="ipv4" source address="193.49.39.198/26" port port=873 protocol="tcp" accept' #1648216457 firewall-cmd --list-all #1648216468 firewall-cmd --reload #1648216470 firewall-cmd --list-all #1648216569 yum provides *bin/nc #1648216586 yum install nmap-ncat #1648216648 firewall-cmd --add-port 1234/tcp --timeout 3600 #1648216655 nc -l 1234 #1648216739 nc -l 1234 | tar xf - #1648216811 nc -l 1234 | tar xvf - #1648216853 l #1648216854 ll #1648216862 ls -l home/usera #1648216871 rm -fr home #1648216873 df -h #1648217059 systemctl status httpd #1648217068 vim /usr/lib/systemd/system/httpd.service #1648217087 httpd --help #1648217092 httpd -h #1648218291 yum install net-snmp net-snmp-utils -y #1648218301 vim /etc/snmp/snmpd.conf #1648218416 snmpwalk -v2c -c community localhost #1648218425 systemctl enable --now snmpd #1648218427 snmpwalk -v2c -c community localhost #1648218440 history #1648218583 tOfBlues.0 = Counter32: 0 #1648218583 SCTP-MIB::sctpChecksumErrors.0 = Counter32: 0 #1648218583 SCTP-MIB::sctpOutCtrlChunks.0 = Counter64: 0 #1648218583 SCTP-MIB::sctpOutOrderChunks.0 = Counter64: 0 #1648218583 SCTP-MIB::sctpOutUnorderChunks.0 = Counter64: 0 #1648218583 SCTP-MIB::sctpInCtrlChunks.0 = Counter64: 0 #1648218583 SCTP-MIB::sctpInOrderChunks.0 = Counter64: 0 #1648218583 SCTP-MIB::sctpInUnorderChunks.0 = Counter64: 0 #1648218601 curl -OL https://cours.opendoor.fr/Fichiers/IPI_SUP/nagios_snmp_plugins_up2date.tgz #1648218610 tar tf nagios_snmp_plugins_up2date.tgz #1648218618 tar xf nagios_snmp_plugins_up2date.tgz #1648218627 chmod 700 check* #1648218692 yum search nagios |grep perl #1648218702 yum install -y nagios-plugins-perl.x86_64 #1648218748 ll /usr/lib64/nagios/plugins/ #1648218820 mv check_snmp_* /usr/lib64/nagios/plugins/ #1648218835 /usr/lib64/nagios/plugins//check_snmp_load.pl -v2C -C community -H localhost #1648218848 yum search perl|grep -i snmp #1648218862 yum install -y perl-Net-SNMP #1648218889 /usr/lib64/nagios/plugins//check_snmp_load.pl -v2C -C community -H localhost #1648218903 /usr/lib64/nagios/plugins//check_snmp_load.pl -v2C -C community -H localhost -w 70% -c 90% #1648218926 /usr/lib64/nagios/plugins//check_snmp_load.pl -V2C -C community -H localhost -w 70% -c 90% #1648218933 /usr/lib64/nagios/plugins//check_snmp_load.pl #1648218945 /usr/lib64/nagios/plugins//check_snmp_load.pl -2 -C community -H localhost -w 70% -c 90% #1648219343 ls -l /usr/lib64/nagios/plugins #1648219374 cd /usr/lib64/nagios/plugins #1648219382 tar xf ~root/nagios_snmp_plugins_up2date.tgz #1648219393 chmod 775 check_snmp_* #1648219397 ll #1648219433 ll ~root/nagios_snmp_plugins_up2date.tgz #1648219436 ll ~root/nagios_snmp_plugins_up2date.tgz -h #1648219488 chmod 755 check_snmp_* #1648219738 yum install nagios #1648219766 systemctl enable --now nagios #1648219772 systemctl reload httpd #1648220193 vim /etc/nagios/nagios.cfg #1648220289 mkdir /etc/nagios/conf.d #1648220472 cd /etc/nagios/ #1648220487 vim /etc/nagios/objects/templates.cfg #1648220598 vim /etc/nagios/conf.d/hosts.cfg #1648220819 nagios -v /etc/nagios/nagios.cfg #1648220842 vim -O /etc/nagios/conf.d/* #1648220927 vim /etc/nagios/conf.d/commands.cfg #1648221261 nagios -v /etc/nagios/nagios.cfg #1648221440 vim /etc/nagios/conf.d/services.cfg #1648221452 fg #1648221459 nagios -v /etc/nagios/nagios.cfg #1648221473 fg #1648221476 vim /etc/nagios/conf.d/services.cfg #1648221485 nagios -v /etc/nagios/nagios.cfg #1648221490 vim /etc/nagios/conf.d/services.cfg #1648221493 nagios -v /etc/nagios/nagios.cfg #1648221591 /usr/lib64/nagios/plugins/check_snmp_process.pl -2 -H localhost -C community #1648221602 /usr/lib64/nagios/plugins/check_snmp_process.pl -2 -H localhost -C community -n httpd #1648221618 /usr/lib64/nagios/plugins/check_snmp_process.pl -2 -H localhost -C community -n httpd -w 1,20 -c 1,30 #1648221723 fg #1648221725 vim /etc/nagios/conf.d/services.cfg #1648221745 vim /etc/nagios/conf.d/commands.cfg #1648221769 nagios -v /etc/nagios/nagios.cfg #1648221791 /usr/lib64/nagios/plugins/check_snmp_process.pl -2 -H 192.168.56.100 -C community -n httpd -w 1,20 -c 1,30 #1648221798 systemctl reload nagios #1648221801 systemctl status nagios #1648222904 systemctl reload nagios