Skip to content

Commit c827e4e

Browse files
committed
initial version
0 parents  commit c827e4e

File tree

9 files changed

+1374
-0
lines changed

9 files changed

+1374
-0
lines changed

config.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<configwizard>
2+
<templates>
3+
<template filename="websensor.cfg" />
4+
</templates>
5+
<logos>
6+
<logo filename="em01.png" />
7+
</logos>
8+
<plugins>
9+
<plugin filename="check_esensor.pl" />
10+
</plugins>
11+
</configwizard>

doc/em01.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
T 1
2+
V 2
3+
4+
T CEL 12 HU 34 IL 31

doc/nagios-vmware-dev-prepare.sh

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/bin/sh
2+
3+
yum -y install nginx mc telnet
4+
cat /etc/nginx/conf.d/default.conf | sed "s%listen.*%listen 8080 default_server;%" > /tmp/nginx.conf
5+
mv -f /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf.`date +%s`.orig
6+
mv -f /tmp/nginx.conf /etc/nginx/conf.d/default.conf
7+
chkconfig nginx on
8+
service nginx start
9+
10+
cat /etc/sysconfig/iptables | sed '/--dport 80 -j/i-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT' > /tmp/iptables
11+
mv -f /etc/sysconfig/iptables /etc/sysconfig/iptables,`date +%s`.orig
12+
mv -f /tmp/iptables /etc/sysconfig/iptables
13+
service iptables restart
14+
15+
echo '<sensorsSW>
16+
<sid0>
17+
<sht>inline</sht>
18+
<tm0>36</tm0>
19+
<hu0>12</hu0>
20+
<tun0>C</tun0>
21+
<ilum>inline</ilum>
22+
<il0>2</il0>
23+
<ecin>inline</ecin>
24+
<cin>1</cin>
25+
<ethm>inline</ethm>
26+
<thm>15</thm>
27+
<evin>inline</evin>
28+
<vin>220</vin>
29+
<efld>inline</efld>
30+
<fin>12</fin>
31+
</sensorsSW>
32+
' > /usr/share/nginx/html/ssetings.xml
33+
34+
echo 'T 1
35+
V 2
36+
37+
T CEL 12 HU 34 IL 31
38+
' > /usr/share/nginx/html/em01.html
39+
40+
echo '127.0.0.2 sensor0-em01
41+
127.0.0.3 sensor1-em08
42+
127.0.0.4 sensor2-em08
43+
127.0.0.5 sensor3-em08
44+
127.0.0.6 sensor4-em08
45+
127.0.0.7 sensor5-em08
46+
127.0.0.8 sensor6-em08
47+
127.0.0.9 sensor7-em08
48+
127.0.0.10 sensor8-em08
49+
' >> /etc/hosts

doc/ssetings.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<sensorsSW>
2+
<sid0>
3+
<sht>inline</sht>
4+
<tm0>36</tm0>
5+
<hu0>12</hu0>
6+
<tun0>C</tun0>
7+
<ilum>inline</ilum>
8+
<il0>2</il0>
9+
<ecin>inline</ecin>
10+
<cin>1</cin>
11+
<ethm>inline</ethm>
12+
<thm>15</thm>
13+
<evin>inline</evin>
14+
<vin>220</vin>
15+
<efld>inline</efld>
16+
<fin>12</fin>
17+
</sensorsSW>

0 commit comments

Comments
 (0)