通过zabbix自定义Items来监控服务器半年内的登录次数信息。开始配置之前,需要编写脚本,用于获取服务器的登录情况,脚本如下:[root@hm09:14AM~1119]#catlogon_count.sh
#!/bin/bash
#author:hmemail:mail@huangming.org
#systemlogincount
option=$1
count1=0
count3=0
count..
分类:
系统相关 时间:
2017-03-01 14:54:24
阅读次数:
316
今天再跟大家分享一下,以下案列。 使用array_flip函数生成随机数,可以去掉重复值。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 <?php $arr=array(); $count1=0; $count = 0; $return = ...
分类:
Web程序 时间:
2016-11-27 07:22:48
阅读次数:
243
#include<iostream>#include<sstream>#include<cstring>using namespace std;int main(){ char s[1000]; string str; int count = 0; int count1 = 0; cin.get(s ...
分类:
其他好文 时间:
2016-10-22 14:39:37
阅读次数:
184
功能描述 让led每隔0.5s从两边向中间闪烁,然后在从中间向两边闪烁,不断循环 项目实现 开发板 晶振为50M,那么达到0.5s时计数器count1需要达到24_999_999这么多次数 计数器代码为 可以让前5个led进行循环移位法 后五位进行数据拼接法 循环移位法:先让led灯进行循环右移当达 ...
分类:
其他好文 时间:
2016-10-02 17:00:53
阅读次数:
178
流水灯 功能描述: 10个led灯 从第一个和最后一个led灯开始从两边向中间闪烁,闪烁频率为0.5s一次 项目实现 首先定义一个计时器 计数器的名字为count1,如果复位或者count1==2.5s时复位,否则count1加1,开发板晶振50M 当计数达到TIME=2.5s/(1/50M)-1= ...
分类:
其他好文 时间:
2016-10-02 10:43:30
阅读次数:
178
标签: 位运算 描述: Count how many 1 in binary representation of a 32-bit integer. 解题思路: 统计一个int型的数的二进制表现形式中1的个数1.与check power of 2中的解题形式非常相似,同样利用num&(num-1) ...
分类:
其他好文 时间:
2016-09-02 11:36:12
阅读次数:
160
看看这段代码,想一下输出结果。。。count1=? count2=? 然后再看另外一段 有没有看到区别啊??看不出来的先去挂个眼科哈!!!想想这段代码的输出结果 count1 和count2的值 这个问题号称全世界百分之九十的java程序员第一次看到都会犯的错,是不是很牛逼的样子。。 这段代码虽然很 ...
分类:
其他好文 时间:
2016-08-04 01:32:24
阅读次数:
134
1.行转列: 一、最初的数据: 转换之后的数据: 二、转换的语句: --统计各职位的人员在各部门的分布人数:SELECT T.JOB, SUM(DECODE(T.JOB, 'CLERK', 1, NULL)) AS COUNT1 , SUM(DECODE(T.JOB, 'SALESMAN', 1, ...
分类:
数据库 时间:
2016-06-20 10:03:55
阅读次数:
181
问:以上代码执行的顺序~,输出的结果~ 正解: 根据static 对象的性质,程序的执行流程为: Test tester = null; int count1 = 0; int count2 = 0; tester = new Test(); count1 ++; count2 ++; 输出 1 1 ...
分类:
编程语言 时间:
2016-06-15 14:09:30
阅读次数:
206
We set two pointers number1 and number2 to record the most probably element of which the amount is over 1/3. Meanwhile, we have count1 to record the t ...
分类:
其他好文 时间:
2016-06-09 06:25:12
阅读次数:
210