原创 nagios插件之檢測tomcat日誌的startAt值(cdstore日誌,待改進)
vi check_cdstore_log_startAt.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include
原创 nagios插件之檢測tomcat日誌的statusIndex值(cdstore日誌)
vi check_cdstore_log_statusIndex.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #inc
原创 nagios插件之發起http的purchase購買請求(cdstore)
vi check_purchase.c #include <stdio.h> #include <stdlib.h> #include <sys/types.h> /* See NOTES */ #include
原创 樹莓派之實現無線網絡打印機
硬件:epson l380,樹莓派zero wh 樹莓派zero的otg口通過usb連接打印機 1.安裝cups apt-get update apt-get install cups 2.允許pi用戶配置CUPS和開
原创 樹莓派之無線電臺加入直播功能
無線電臺加入直播功能,加個麥克風,安裝錄音文件,錄音交給PiFmRds電臺發射出去 sudo apt-get install alsa-utils cat myrecord_player.sh #!/bin/sh #錄音 #areco
原创 樹莓派安裝Pi-FM-RDS打造FM調頻電臺
安裝Pi-FM-RDS 1.安裝依賴 sudo apt-get install libsndfile1-dev 2.克隆Pi-FM-RDS到本地 git clone https://github.com/C
原创 位運算比較兩個數大小
先佔位,後續補充。。。
原创 nagios插件之監控股票數據對比信息
vi check_bmw_sina_stock.c #include <stdio.h> #include <stdlib.h> #include <sys/types.h> /* See NOTES */ #inclu
原创 nagios插件之登錄https頁面監控
vi volkswagen_https_host_2.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #define OK
原创 nagios插件之監控日誌中CASA接口響應時間
vi check_casa_resp_time.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define OK
原创 Zabbix監控之監控上海bss的getSIMCard
後續補充腳本 ./check_casa.pl -H x.x.x.x -p 17008 -b "/bmwwebservice/services/getSIMCard" -i iccid -w 5 -c 10 -f 點贊
原创 Zabbix監控之/proc下常用文件監控
vi zabbix_agentd.conf UserParameter=reuse,cat /proc/sys/net/ipv4/tcp_tw_reuse UserParameter=recycle,cat /proc/sys/net/i
原创 Zabbix監控之從數據庫導出數據
從mysql庫導出需要的數據 zabbix_report.py #! /usr/bin/env python # _*_ coding: utf-8 _*_ # Author:ccjsj1 # date:2019/7/10 impor
原创 樹莓派之蜂鳴器和led打印摩斯密碼
將hello world 按摩斯密碼輸出 vi morse_led.c #include <stdio.h> #include <wiringPi.h> int main(void) { //初始化
原创 樹莓派之蜂鳴器
1、簡單蜂鳴 2、演奏音樂