Archive for Dezember, 2011

„Bikeour“ vom Feisten

Posted: 20th Dezember 2011 by Thorben Hemmler in Allgemein

Ohne Netz und doppelten Boden…

periodic Meldungen in Logfile ausgeben (FreeBSD)

Posted: 20th Dezember 2011 by Thorben Hemmler in FreeBSD

FreeBSD periodic Meldungen nicht per Email verschicken, sondern im Logfile speichern ### /etc/newsyslog.conf ### /var/log/daily_output                   640  3     *    @T00  C /var/log/daily_security_output          640  3     *    @T00  C /var/log/weekly_output                  640  4     *    @T00  C /var/log/monthly_output                 640  3     *    @T00  C ### /etc/periodic.conf ### # ausgabe in logdatein und nicht per email daily_output=“/var/log/daily_output“ daily_status_security_output=“/var/log/daily_security_output“ weekly_output=“/var/log/weekly_output“ monthly_output=“/var/log/monthly_output“

…friesisch herb!!

Posted: 15th Dezember 2011 by Thorben Hemmler in Fun

 

MySQL Replikation neu starten

Posted: 12th Dezember 2011 by Thorben Hemmler in MySQL

Mysql Replikation neu starten ### Master ### mysql> show master status; +—————-+———-+————–+——————+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | +—————-+———-+————–+——————+ | db0-bin.000123 | 123456789| | | +—————-+———-+————–+——————+ 1 row in set (0.00 sec) ### Slave ### mysql> slave stop; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> CHANGE MASTER TO master_host= […]

Liebert 600SM – OpenNMS Events

Posted: 12th Dezember 2011 by Thorben Hemmler in OpenNMS

<events> <!– Start of auto generated data from MIB: LIEBERT-SERIES-600-UPS-MODULE-MIB –> <event> <mask> <maskelement> <mename>id</mename> <mevalue>.1.3.6.1.4.1.476.1.1.1.1.11</mevalue> </maskelement> <maskelement> <mename>generic</mename> <mevalue>6</mevalue> </maskelement> <maskelement> <mename>specific</mename> <mevalue>1</mevalue> </maskelement> </mask> <uei>uei.opennms.org/vendor/liebert/traps/lcUpsOverloadWarningTrap</uei> <event-label>LIEBERT-SERIES-600-UPS-MODULE-MIB defined trap event: lcUpsOverloadWarningTrap</event-label> <descr> &lt;p&gt;An lcUpsOverloadWarningTrap signifies that the UPS has detected an Overload condition where the output load has exceeded the UPS’s rated capacity.&lt;/p&gt;&lt;table&gt; &lt;tr&gt;&lt;td&gt;&lt;b&gt; […]

ACME – OpenNMS Datacollection

Posted: 12th Dezember 2011 by Thorben Hemmler in OpenNMS

### datacollection.xml ###   <resourceType name=“agentIndex“ label=“ACME-Voice Agent“ resourceLabel=“${agentHostname}“> <persistenceSelectorStrategy/> <storageStrategy/> </resourceType> <group name=“acme-voice“ ifType=“ignore“> <mibObj oid=“.1.3.6.1.4.1.9148.3.2.1.2.1.1.2″ instance=“agentIndex“ alias=“agentHostname“ type=“string“/> <mibObj oid=“.1.3.6.1.4.1.9148.3.2.1.2.1.1.4″ instance=“agentIndex“ alias=“actSessionsIn“ type=“gauge“/> <mibObj oid=“.1.3.6.1.4.1.9148.3.2.1.2.1.1.6″ instance=“agentIndex“ alias=“actSessionsOut“ type=“gauge“/> <mibObj oid=“.1.3.6.1.4.1.9148.3.2.1.2.1.1.8″ instance=“agentIndex“ alias=“totalSessionsIn“ type=“gauge“/> <mibObj oid=“.1.3.6.1.4.1.9148.3.2.1.2.1.1.12″ instance=“agentIndex“ alias=“totalSessionsOut“ type=“gauge“/> <mibObj oid=“.1.3.6.1.4.1.9148.3.2.1.2.1.1.22″ instance=“agentIndex“ alias=“agentStatus“ type=“integer“/> </group> <group name=“acme-voice-host“ ifType=“ignore“> <mibObj oid=“.1.3.6.1.4.1.9148.3.3.1.3.1.1.4″ instance=“1″ alias=“acmetemp“ type=“integer“/> <mibObj […]

IP Adresse bei FreeBSD vergeben

Posted: 9th Dezember 2011 by Thorben Hemmler in FreeBSD

IP vergeben ifconfig bge1 inet 192.168.100.123 netmask 255.255.255.0 2. Adresse ifconfig bge0 alias 192.168.0.114 netmask 255.255.255.0 IP löschen ifconfig bge0 delete 192.168.0.123 netmask 0xffffff00

Cisco DHCP Server

Posted: 9th Dezember 2011 by Thorben Hemmler in Cisco

ip dhcp excluded-address 10.100.36.1 10.100.36.100 ip dhcp excluded-address 10.100.36.201 10.100.36.255 ip dhcp pool SERVER network 10.100.36.0 255.255.255.0 dns-server 10.100.31.1 10.100.31.2 default-router 10.100.36.100