Friday, September 3rd 2010, 11:08am UTC+2
You are not logged in.
Dear visitor, Welcome to Nagios-Portal.
Although this is a german Nagios forum, please don't hesitate to post in
English. Nearly everybody here understands you and will answer in English as well.
If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form to register here or read more information about the registration process. If you are already registered, please login here.
Beginner
Birthday: Aug 21st 1972 (38)
Gender: male
Location: Kassel
Occupation: Informationstechniker
Number of Nagios server: 1
Nagios Versions: 3.0.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 91
Number of services: 800
OS: Linux, Windows
Plugin Versions: nagvis, eventdb
NDO Version: 1
Birthday: Jun 13th 1971 (39)
Gender: male
Location: Kassel
Occupation: Sysadmin SAP / Linux / AIX
Number of Nagios server: 2
Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)
Nagios Versions: 3.2.1
Icinga-Version(en): ---
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 310
Number of services: 4500
OS: Debian 5.0 Lenny
Plugin Versions: 1.4.x
NagVis Version: 1.4.1
NDO Version: ---
IDO-Version: ---
Perfparse Version: ---
Other Addons: SNMPTT, NagTrap, NagVis 1.4.5, check_mk, PNP-0.6.x. Thruk
Beginner
Birthday: Aug 21st 1972 (38)
Gender: male
Location: Kassel
Occupation: Informationstechniker
Number of Nagios server: 1
Nagios Versions: 3.0.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 91
Number of services: 800
OS: Linux, Windows
Plugin Versions: nagvis, eventdb
NDO Version: 1
Birthday: Jun 13th 1971 (39)
Gender: male
Location: Kassel
Occupation: Sysadmin SAP / Linux / AIX
Number of Nagios server: 2
Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)
Nagios Versions: 3.2.1
Icinga-Version(en): ---
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 310
Number of services: 4500
OS: Debian 5.0 Lenny
Plugin Versions: 1.4.x
NagVis Version: 1.4.1
NDO Version: ---
IDO-Version: ---
Perfparse Version: ---
Other Addons: SNMPTT, NagTrap, NagVis 1.4.5, check_mk, PNP-0.6.x. Thruk
Beginner
Birthday: Aug 21st 1972 (38)
Gender: male
Location: Kassel
Occupation: Informationstechniker
Number of Nagios server: 1
Nagios Versions: 3.0.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 91
Number of services: 800
OS: Linux, Windows
Plugin Versions: nagvis, eventdb
NDO Version: 1
Birthday: Jun 13th 1971 (39)
Gender: male
Location: Kassel
Occupation: Sysadmin SAP / Linux / AIX
Number of Nagios server: 2
Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)
Nagios Versions: 3.2.1
Icinga-Version(en): ---
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 310
Number of services: 4500
OS: Debian 5.0 Lenny
Plugin Versions: 1.4.x
NagVis Version: 1.4.1
NDO Version: ---
IDO-Version: ---
Perfparse Version: ---
Other Addons: SNMPTT, NagTrap, NagVis 1.4.5, check_mk, PNP-0.6.x. Thruk
Beginner
Birthday: Aug 21st 1972 (38)
Gender: male
Location: Kassel
Occupation: Informationstechniker
Number of Nagios server: 1
Nagios Versions: 3.0.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 91
Number of services: 800
OS: Linux, Windows
Plugin Versions: nagvis, eventdb
NDO Version: 1
Birthday: Jun 13th 1971 (39)
Gender: male
Location: Kassel
Occupation: Sysadmin SAP / Linux / AIX
Number of Nagios server: 2
Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)
Nagios Versions: 3.2.1
Icinga-Version(en): ---
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 310
Number of services: 4500
OS: Debian 5.0 Lenny
Plugin Versions: 1.4.x
NagVis Version: 1.4.1
NDO Version: ---
IDO-Version: ---
Perfparse Version: ---
Other Addons: SNMPTT, NagTrap, NagVis 1.4.5, check_mk, PNP-0.6.x. Thruk
Beginner
Birthday: Aug 21st 1972 (38)
Gender: male
Location: Kassel
Occupation: Informationstechniker
Number of Nagios server: 1
Nagios Versions: 3.0.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 91
Number of services: 800
OS: Linux, Windows
Plugin Versions: nagvis, eventdb
NDO Version: 1
|
|
Source code |
1 |
check_snmp_int.pl -H $HOSTADDRESS$ -C $ARG1$ --v2c -n $ARG2$ -w $ARG3$ -c $ARG4$ -B -M -Y -k -f -r -t 40 -d 240 |
Birthday: Jun 13th 1971 (39)
Gender: male
Location: Kassel
Occupation: Sysadmin SAP / Linux / AIX
Number of Nagios server: 2
Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)
Nagios Versions: 3.2.1
Icinga-Version(en): ---
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 310
Number of services: 4500
OS: Debian 5.0 Lenny
Plugin Versions: 1.4.x
NagVis Version: 1.4.1
NDO Version: ---
IDO-Version: ---
Perfparse Version: ---
Other Addons: SNMPTT, NagTrap, NagVis 1.4.5, check_mk, PNP-0.6.x. Thruk
Beginner
Birthday: Aug 21st 1972 (38)
Gender: male
Location: Kassel
Occupation: Informationstechniker
Number of Nagios server: 1
Nagios Versions: 3.0.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 91
Number of services: 800
OS: Linux, Windows
Plugin Versions: nagvis, eventdb
NDO Version: 1
Birthday: Jun 13th 1971 (39)
Gender: male
Location: Kassel
Occupation: Sysadmin SAP / Linux / AIX
Number of Nagios server: 2
Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)
Nagios Versions: 3.2.1
Icinga-Version(en): ---
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 310
Number of services: 4500
OS: Debian 5.0 Lenny
Plugin Versions: 1.4.x
NagVis Version: 1.4.1
NDO Version: ---
IDO-Version: ---
Perfparse Version: ---
Other Addons: SNMPTT, NagTrap, NagVis 1.4.5, check_mk, PNP-0.6.x. Thruk
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
<?php
$_port_1 = tpl_getdata("localhost","if_port_27","");
$_port_2 = tpl_getdata("localhost","if_port_44","");
# $debug->doCheck('print_r',$_port_1);
$ds_name[1] = "Traffic Trunk Port";
$opt[1] = "--slope-mode --vertical-label \"Traffic\" -b 1000 --title=\" Aggregated Trunk \" ";
$def[1] = "";
$def[1] .= "DEF:in_1=".$_port_1[1]['RRDFILE'].":1:AVERAGE ";
$def[1] .= "DEF:in_2=".$_port_1[1]['RRDFILE'].":1:AVERAGE ";
$def[1] .= "CDEF:in=in_1,in_2,+ ";
$def[1] .= "DEF:out_1=".$_port_2[1]['RRDFILE'].":2:AVERAGE ";
$def[1] .= "DEF:out_2=".$_port_2[1]['RRDFILE'].":2:AVERAGE ";
$def[1] .= "CDEF:out=out_1,out_2,+ ";
$def[1] .= "LINE1:in#003300:\"in \" " ;
$def[1] .= "GPRINT:in:AVERAGE:\"%7.2lf %Sb/s everage\\n\" " ;
$def[1] .= "LINE1:out#00ff00:\"out \" " ;
$def[1] .= "GPRINT:out:AVERAGE:\"%7.2lf %Sb/s average\\n\" " ;
$ds_name[2] = "Traffic Port 27";
$opt[2] .= " --vertical-label \"Traffic\" -b 1000 --title \"Interface Traffic\" ";
$def[2] .= "DEF:var1=".$_port_1[1]['RRDFILE'].":1:AVERAGE " ;
$def[2] .= "DEF:var2=".$_port_1[1]['RRDFILE'].":2:AVERAGE " ;
$def[2] .= "LINE1:var1#003300:\"in \" " ;
$def[2] .= "GPRINT:var1:LAST:\"%7.2lf %Sb/s last\" " ;
$def[2] .= "GPRINT:var1:AVERAGE:\"%7.2lf %Sb/s avg\" " ;
$def[2] .= "GPRINT:var1:MAX:\"%7.2lf %Sb/s max\\n\" " ;
$def[2] .= "LINE1:var2#00ff00:\"out \" " ;
$def[2] .= "GPRINT:var2:LAST:\"%7.2lf %Sb/s last\" " ;
$def[2] .= "GPRINT:var2:AVERAGE:\"%7.2lf %Sb/s avg\" " ;
$def[2] .= "GPRINT:var2:MAX:\"%7.2lf %Sb/s max\\n\" ";
$ds_name[3] = "Traffic Port 44";
$opt[3] .= " --vertical-label \"Traffic\" -b 1000 --title \"Interface Traffic\" ";
$def[3] .= "DEF:var1=".$_port_2[1]['RRDFILE'].":1:AVERAGE " ;
$def[3] .= "DEF:var2=".$_port_2[1]['RRDFILE'].":2:AVERAGE " ;
$def[3] .= "LINE1:var1#003300:\"in \" " ;
$def[3] .= "GPRINT:var1:LAST:\"%7.2lf %Sb/s last\" " ;
$def[3] .= "GPRINT:var1:AVERAGE:\"%7.2lf %Sb/s avg\" " ;
$def[3] .= "GPRINT:var1:MAX:\"%7.2lf %Sb/s max\\n\" " ;
$def[3] .= "LINE1:var2#00ff00:\"out \" " ;
$def[3] .= "GPRINT:var2:LAST:\"%7.2lf %Sb/s last\" " ;
$def[3] .= "GPRINT:var2:AVERAGE:\"%7.2lf %Sb/s avg\" " ;
$def[3] .= "GPRINT:var2:MAX:\"%7.2lf %Sb/s max\\n\" ";
# $debug->doCheck('var_dump',$def);
?>
|
Beginner
Birthday: Jul 3rd 1978 (32)
Gender: male
Location: Uster - CH
Occupation: SysAdmin
Number of Nagios server: 2
Nagios Versions: 2.0b3 + 3.0.6
Distributed monitoring: Ja
Redundant monitoring: Nein
Number of hosts: 69+
Number of services: 164+
OS: Debian stable
Plugin Versions: ?
Other Addons: PNP 0.4.13
Birthday: Jun 13th 1971 (39)
Gender: male
Location: Kassel
Occupation: Sysadmin SAP / Linux / AIX
Number of Nagios server: 2
Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)
Nagios Versions: 3.2.1
Icinga-Version(en): ---
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 310
Number of services: 4500
OS: Debian 5.0 Lenny
Plugin Versions: 1.4.x
NagVis Version: 1.4.1
NDO Version: ---
IDO-Version: ---
Perfparse Version: ---
Other Addons: SNMPTT, NagTrap, NagVis 1.4.5, check_mk, PNP-0.6.x. Thruk
Beginner
Birthday: Jul 3rd 1978 (32)
Gender: male
Location: Uster - CH
Occupation: SysAdmin
Number of Nagios server: 2
Nagios Versions: 2.0b3 + 3.0.6
Distributed monitoring: Ja
Redundant monitoring: Nein
Number of hosts: 69+
Number of services: 164+
OS: Debian stable
Plugin Versions: ?
Other Addons: PNP 0.4.13
Beginner
Number of Nagios server: 1
Nagios Versions: 3
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 1
Number of services: 1
OS: sles10
Plugin Versions: 1.4
NDO Version: 1
|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
#hier großes kino, das musst du anpassen
$_list = tpl_getdata( "localhost" ,"Servicebeschreibung",".*");
# initialize $opt and $def
$opt[1] = "--title=\"Space\" -b 1000 ";
$def[1] = "";
# some helper vars
$_count = 1;
$_colors = array("#ff0000","#50ffbf","#0000ff","#ffff00","#00ff00","#ff00ff","#adfb00","#0f0f0f");
$_h = $_list[1]['HOSTNAME'];
$_s = $_list[1]['SERVICEDESC'];
$NAGIOS2=parse_xml($_h,$_s);
foreach($NAGIOS2['PNP']['NAME'] as $key=>$value){
$def[1] .= "DEF:var$key=";
$def[1] .= $_list[1]['RRDFILE'].":" . $key . ":AVERAGE ";
$def[1] .= "LINE1:var".$key.$_colors[$key%8].":\"".sprintf("%-20s",$value)."\" ";
$def[1] .= "GPRINT:var".$key.":LAST:\"%10.2lf %S last\" " ;
$def[1] .= "GPRINT:var".$key.":AVERAGE:\"%10.2lf %S avg\" " ;
$def[1] .= "GPRINT:var".$key.":MAX:\"%10.2lf %S max\\n\" " ;
}
|
This post has been edited 1 times, last edit by "razel" (Mar 19th 2009, 1:45pm)
Beginner
Birthday: Jul 3rd 1978 (32)
Gender: male
Location: Uster - CH
Occupation: SysAdmin
Number of Nagios server: 2
Nagios Versions: 2.0b3 + 3.0.6
Distributed monitoring: Ja
Redundant monitoring: Nein
Number of hosts: 69+
Number of services: 164+
OS: Debian stable
Plugin Versions: ?
Other Addons: PNP 0.4.13
This post has been edited 2 times, last edit by "rediculum" (Mar 19th 2009, 3:38pm)
Beginner
Number of Nagios server: 1
Nagios Versions: 3
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 1
Number of services: 1
OS: sles10
Plugin Versions: 1.4
NDO Version: 1
This post has been edited 1 times, last edit by "razel" (Mar 19th 2009, 4:19pm)
Beginner
Birthday: Jul 3rd 1978 (32)
Gender: male
Location: Uster - CH
Occupation: SysAdmin
Number of Nagios server: 2
Nagios Versions: 2.0b3 + 3.0.6
Distributed monitoring: Ja
Redundant monitoring: Nein
Number of hosts: 69+
Number of services: 164+
OS: Debian stable
Plugin Versions: ?
Other Addons: PNP 0.4.13
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
genadlnagt001 robo # cat Disks_Usage.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<NAGIOS>
<DATASOURCE>
<TEMPLATE>check_snmp_diskall</TEMPLATE>
<IS_MULTI>0</IS_MULTI>
<DS>1</DS>
<NAME>_</NAME>
<UNIT>%%</UNIT>
<ACT>38</ACT>
<WARN>90</WARN>
<WARN_MIN></WARN_MIN>
<WARN_MAX></WARN_MAX>
<WARN_RANGE_TYPE></WARN_RANGE_TYPE>
<CRIT>95</CRIT>
<CRIT_MIN></CRIT_MIN>
<CRIT_MAX></CRIT_MAX>
<CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
<MIN>0</MIN>
<MAX>100</MAX>
</DATASOURCE>
<DATASOURCE>
<TEMPLATE>check_snmp_diskall</TEMPLATE>
<IS_MULTI>0</IS_MULTI>
<DS>2</DS>
<NAME>_var</NAME>
<UNIT>%%</UNIT>
<ACT>45</ACT>
<WARN>90</WARN>
<WARN_MIN></WARN_MIN>
<WARN_MAX></WARN_MAX>
<WARN_RANGE_TYPE></WARN_RANGE_TYPE>
<CRIT>95</CRIT>
<CRIT_MIN></CRIT_MIN>
<CRIT_MAX></CRIT_MAX>
<CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
<MIN>0</MIN>
|
This post has been edited 2 times, last edit by "rediculum" (Mar 19th 2009, 6:53pm)
Birthday: Jun 13th 1971 (39)
Gender: male
Location: Kassel
Occupation: Sysadmin SAP / Linux / AIX
Number of Nagios server: 2
Hobbies: Motorrad fahren, wenns die Zeit erlaubt :-)
Nagios Versions: 3.2.1
Icinga-Version(en): ---
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 310
Number of services: 4500
OS: Debian 5.0 Lenny
Plugin Versions: 1.4.x
NagVis Version: 1.4.1
NDO Version: ---
IDO-Version: ---
Perfparse Version: ---
Other Addons: SNMPTT, NagTrap, NagVis 1.4.5, check_mk, PNP-0.6.x. Thruk