View Full Version : [REGLE] graph temperature pour serveur Dell
skywolker
07-06-2005, 01:06 PM
Hello tous lmonde!
J'aimerai créer un graphique de temperature de t'elle sorte que je puisse visuliser la temperature de mon CPU!!! comme sur cacti...
donc j'ai l'OID de mon materielle...
pour info:
Server DELL PowerEdge 2850
oid de la temperature CPU
.1.3.6.1.4.1.674.10892.1.700.20.1.6.1.1
voilà le graph que j'aimerai réaliser
http://web.csma.biz/images/resources.dellpedge.pt2-day.png
qui peu me donner un coup d'main...je sais pas pas où commencer!!
voici les info par MRTG bien enten j'enleverai le *1.8+32 pour le celcius! ;-)
# CPU 1 Temp
Target[pt1]: ( 1.3.6.1.4.1.674.10892.1.700.20.1.6.1.2&.1.3.6.1.4.1.674.10892.1.700.20.1.6.1.2:public@loc alhost / 10 ) * 1.8 + 32
XSize[pt1]: 360
YSize[pt1]: 75
Title[pt1]: Processor 1 - Temperature (F)
MaxBytes[pt1]: 212
AbsMax[pt1]: 212
Options[pt1]: growright,gauge,nopercent
PageTop[pt1]: <h1>Processor 1 - Temperature (F)</h1>
YLegend[pt1]: Deg F
ShortLegend[pt1]: °F
Legend1[pt1]: CPU 1 - TEMP
Colours[pt1]: RED#F90000,RED#F90000,RED#F90000,RED#F90000
grand merci!!!!!!!!
wistof
07-06-2005, 02:05 PM
Hello,
Je verrais bien pour cela un plugin check_graph_snmp, mais qui n'existe pas encore....
j'ai fait un petit 'check_graph_dell_temperature', dispo ici (http://wistof.free.fr/oreon/check_graph_dell_temperature.pl)
c'est du rapide, donc c'est pas garantie 100%
on gere :
./check_graph_dell_temperature -H $HOSTADDRESS$ -v $ARG1$ -C $ARG2$ -s
Temperature Sensor 1 :: PROC_1 Temp
Temperature Sensor 2 :: PROC_2 Temp
Temperature Sensor 3 :: BMC Ambient Temp
Temperature Sensor 4 :: BMC Planar Temp
Temperature Sensor 5 :: BMC Riser Temp
ex : ./check_graph_dell_temperature -H $HOSTADDRESS$ -v $ARG1$ -C $ARG2$ -t 2 -g -S $ARG3$
Copyright (c) 2005 Oreon
Bugs to http://www.oreon.org/
Usage:
/usr/local/nagios1.2/libexec/check_graph_dell_temperatureV1.1.pl
-H (--hostname) Hostname to query - (required)
-C (--community) SNMP read community (defaults to public,
used with SNMP v1 and v2c
-v (--snmp_version) 1 for SNMP v1 (default)
2 for SNMP v2c
-g (--rrdgraph) create a rrd base and add datas into this one
-D (--directory) Path to rrdatabase (or create the .rrd in this directory)
by default: /usr/local/oreon/rrd/
(The path is valid with spaces '/my path/...')
-S (--ServiceId) Oreon Service Id
-t (--sensor) Set the sensor number (1 by default)
-s (--show) Describes all sensors
-V (--version) Plugin version
-h (--help) usage help
voila, tiens moi au courant
merci
skywolker
07-06-2005, 02:43 PM
y a juste un truc que j'ai pas compris!!!!
-S (--ServiceId) Oreon Service Id
il sert à quoi ??? ou plustot ... qu'est ce que j'doit metre???
j'ai regarder dans la source... y a t'il un liens avec rrdtool ???
THX et merci pour ta rapidité !!!
skywolker
07-06-2005, 03:25 PM
http://www.oreon.org/Forum/viewtopic.php?t=438&highlight=serviceid
j'ai fait une petite recherche... donc.. pas besoin de changer!! c'est oreon qui s'en occupe!!!
bon b1 temps mieux!!!
wistof
07-06-2005, 07:45 PM
par curiosité, tu peux faire un snmpwalk .1.3.6.1.4.1.674.10892.1.700.20.1 sur ton serveur dell
merci
templuche
07-07-2005, 09:28 AM
Bonjour,
Ce plugin a-t-il été développé par Linagora? Si oui, faudra que je demande en interne qui l'a fait ou si wistof est embauché à Linagora.
C'est bien de reprendre le template déjà fait (la GPL est faite pour cela) mais il faut faire attention : les informations de copyright sont importantes. Tu perds ton droit d'auteur et c'est dommage (surtout pour toi).
:D
wistof
07-07-2005, 09:55 AM
oups.... effectivement, je vais changer ça quand j'aurais 5 minutes
merci
skywolker
07-07-2005, 10:59 AM
Je sais pas si c'est ce que tu veux...
[root@nagios libexec]# snmpwalk -H @ip .1.3.6.1.4.1.674.10892.1.700.20.1
Configuration directives understood:
No log handling enabled - turning on stderr logging
In snmpwalk.conf and snmpwalk.local.conf:
includeRequested (1|yes|true|0|no|false)
excludeRequested (1|yes|true|0|no|false)
printStatistics (1|yes|true|0|no|false)
dontCheckOrdering (1|yes|true|0|no|false)
timeResults (1|yes|true|0|no|false)
In snmp.conf and snmp.local.conf:
doDebugging (1|0)
debugTokens token[,token...]
logTimestamp (1|yes|true|0|no|false)
mibdirs [mib-dirs|+mib-dirs|-mib-dirs]
mibs [mib-tokens|+mib-tokens]
mibfile mibfile-to-read
showMibErrors (1|yes|true|0|no|false)
strictCommentTerm (1|yes|true|0|no|false)
mibAllowUnderline (1|yes|true|0|no|false)
mibWarningLevel integerValue
mibReplaceWithLatest (1|yes|true|0|no|false)
printNumericEnums (1|yes|true|0|no|false)
printNumericOids (1|yes|true|0|no|false)
escapeQuotes (1|yes|true|0|no|false)
dontBreakdownOids (1|yes|true|0|no|false)
quickPrinting (1|yes|true|0|no|false)
numericTimeticks (1|yes|true|0|no|false)
oidOutputFormat integerValue
suffixPrinting integerValue
extendedIndex (1|yes|true|0|no|false)
printHexText (1|yes|true|0|no|false)
printValueOnly (1|yes|true|0|no|false)
dontPrintUnits (1|yes|true|0|no|false)
hexOutputLength integerValue
dumpPacket (1|yes|true|0|no|false)
reverseEncodeBER (1|yes|true|0|no|false)
defaultPort integerValue
defCommunity string
noTokenWarnings (1|yes|true|0|no|false)
noRangeCheck (1|yes|true|0|no|false)
persistentDir string
tempFilePattern string
noDisplayHint (1|yes|true|0|no|false)
16bitIDs (1|yes|true|0|no|false)
clientaddr string
serverSendBuf integerValue
serverRecvBuf integerValue
clientSendBuf integerValue
clientRecvBuf integerValue
defSecurityModel string
defSecurityName string
defContext string
defPassphrase string
defAuthPassphrase string
defPrivPassphrase string
defAuthMasterKey string
defPrivMasterKey string
defAuthLocalizedKey string
defPrivLocalizedKey string
defVersion 1|2c|3
defAuthType MD5|SHA
defPrivType DES (AES support not available)
defSecurityLevel noAuthNoPriv|authNoPriv|authPriv
In snmpapp.conf and snmpapp.local.conf:
engineID string
engineIDType num
engineIDNic string
wistof
07-07-2005, 11:11 AM
plutot un snmpwalk @IP -c public -v 1 .1.3.6.1.4.1.674.10892.1.700.20.1merci
skywolker
07-07-2005, 12:46 PM
[root@nagios libexec]# snmpwalk @Ip -c communauté -v 1 .1.3.6.1.4.1.674.10892.1.700.20.1
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.1.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.1.1.2 = INTEGER: 1
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.1.1.3 = INTEGER: 1
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.1.1.4 = INTEGER: 1
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.1.1.5 = INTEGER: 1
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.2.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.2.1.2 = INTEGER: 2
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.2.1.3 = INTEGER: 3
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.2.1.4 = INTEGER: 4
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.2.1.5 = INTEGER: 5
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.3.1.1 = INTEGER: 0
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.3.1.2 = INTEGER: 0
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.3.1.3 = INTEGER: 0
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.3.1.4 = INTEGER: 0
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.3.1.5 = INTEGER: 0
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.4.1.1 = INTEGER: 2
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.4.1.2 = INTEGER: 2
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.4.1.3 = INTEGER: 2
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.4.1.4 = INTEGER: 2
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.4.1.5 = INTEGER: 2
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.5.1.1 = INTEGER: 3
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.5.1.2 = INTEGER: 3
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.5.1.3 = INTEGER: 3
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.5.1.4 = INTEGER: 3
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.5.1.5 = INTEGER: 3
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.6.1.1 = INTEGER: 410
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.6.1.2 = INTEGER: 450
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.6.1.3 = INTEGER: 240
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.6.1.4 = INTEGER: 370
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.6.1.5 = INTEGER: 280
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.7.1.1 = INTEGER: 3
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.7.1.2 = INTEGER: 3
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.7.1.3 = INTEGER: 3
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.7.1.4 = INTEGER: 3
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.7.1.5 = INTEGER: 3
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.8.1.1 = STRING: "PROC_1 Temp"
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.8.1.2 = STRING: "PROC_2 Temp"
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.8.1.3 = STRING: "BMC Ambient Temp"
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.8.1.4 = STRING: "BMC Planar Temp"
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.8.1.5 = STRING: "BMC Riser Temp"
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.10.1.1 = INTEGER: 900
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.10.1.2 = INTEGER: 900
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.10.1.3 = INTEGER: 470
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.10.1.4 = INTEGER: 720
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.10.1.5 = INTEGER: 620
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.11.1.1 = INTEGER: 850
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.11.1.2 = INTEGER: 850
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.11.1.3 = INTEGER: 420
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.11.1.4 = INTEGER: 670
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.11.1.5 = INTEGER: 570
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.12.1.3 = INTEGER: 80
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.12.1.4 = INTEGER: 80
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.12.1.5 = INTEGER: 80
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.13.1.3 = INTEGER: 30
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.13.1.4 = INTEGER: 30
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.13.1.5 = INTEGER: 30
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.15.1.1 = INTEGER: 0
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.15.1.2 = INTEGER: 0
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.15.1.3 = INTEGER: 15
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.15.1.4 = INTEGER: 0
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.15.1.5 = INTEGER: 0
[root@nagios libexec]#
wistof
07-08-2005, 06:12 PM
A la vue des infos retournées par le walk, je me rend compte que le plugin n'est pas adapter, et il va nécessité quelques modifs....
n'ayant pas eu de retour sur le bon fonctionnement, et par manque de temps, je le mets en standby
skywolker
07-25-2005, 02:40 PM
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.6.1.1 = INTEGER: 410
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.6.1.2 = INTEGER: 450
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.6.1.3 = INTEGER: 240
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.6.1.4 = INTEGER: 370
SNMPv2-SMI::enterprises.674.10892.1.700.20.1.6.1.5 = INTEGER: 280
Voici les OID de temperatures !!!!!!!!!!!!
wistof
07-25-2005, 02:58 PM
ok, thanks
il faudra revoir le plugin pour effectuer un 'show' (option -s)
skywolker
07-26-2005, 03:03 PM
t'aurais un script check_graph_snmp ???
comme sa... j essaye de comprendre un peu mieu ????
J te remercie!!! WISTOF!!!!!!!!!!!
wistof
07-26-2005, 03:04 PM
y a gollum123 qui est sur le coup pour le "check_graph_snmp"
mais pas encore dispo pour le grand public :D
il faut le valider avant
ssoubie
11-21-2005, 09:18 PM
Je sais que ce n'est pas correct mais je ne savais comment formuler ma demande alors après une recherche sur le forum je me permet de ré-ouvrir le sujet car je viens d'avoir un serveur DELL mais je ne sais pas comment installer les outils DELL.
Actuellement j'ai un collègue qui a installé l'agent Dell de open manage en démon dcstor32d
Il peut acquérir des infos sur les températures et autre mais du coté de nagios rien si ce n'est le standard (traffic réseau et autre).
En fait je ne sais pas comment utiliser le fichier DELL_10892.mib.
Si je fait un snmpwalk -m DELL_10892.mib etc... sur le dell j'ai une erreur.
Bon je précise que je début en snmp donc que je ne connais pas grand chose.
surcouf
11-21-2005, 10:58 PM
Je sais que ce n'est pas correct mais je ne savais comment formuler ma demande alors après une recherche sur le forum je me permet de ré-ouvrir le sujet car je viens d'avoir un serveur DELL mais je ne sais pas comment installer les outils DELL.
Actuellement j'ai un collègue qui a installé l'agent Dell de open manage en démon dcstor32d
Il peut acquérir des infos sur les températures et autre mais du coté de nagios rien si ce n'est le standard (traffic réseau et autre).
En fait je ne sais pas comment utiliser le fichier DELL_10892.mib.
Si je fait un snmpwalk -m DELL_10892.mib etc... sur le dell j'ai une erreur.
Pour qu'il soit ainsi accessible, il faudrait encore qu'il soit dans les chemins de recherche de net-snmp, soit par défaut, dans /usr/share/snmp/mibs/ en général. Cela étant, nul besoin de ce fichier pour savoir si tu as bien accès ou non aux OIDs des agents spécifiques: il suffit de taer une commande comme celle-ci:
$ snmpwalk -v 1 -c <communauté> <adresse IP> .1
Les OIDs accessibles devraient apparaître, si tu en vois certaines commençant par SNMPv2-SMI::enterprises.10892... c'est que c'est bon.
Sinon, il faudrait sans doute ajouter cette option au fichier /etc/snmp/snmpd.conf:
smuxpeer .1.3.6.1.4.1.674.10892.1
Bonne chance
ssoubie
11-24-2005, 02:32 PM
Ok ca fonctionne correctement maistenant, merci pour vos réponses.
La configuration de l'agent snmp ne suffisait pas il fallait aussi configurer le déamon Dell omsa et changer une option dans le fichier /etc/default/dellomsa
voici la méthode que j'ai suivi.
http://www.uta.fi/~pauli.borodulin/dellomsa/omsa44.html
Tutoriel très intéressant.
DonKiShoot
11-24-2005, 02:37 PM
Ok ca fonctionne correctement maistenant, merci pour vos réponses.
La configuration de l'agent snmp ne suffisait pas il fallait aussi configurer le déamon Dell omsa et changer une option dans le fichier /etc/default/dellomsa
voici la méthode que j'ai suivi.
http://www.uta.fi/~pauli.borodulin/dellomsa/omsa44.html
Tutoriel très intéressant.
Ok pour le tuto mais t'as pas fait une tite doc sur ce que tu as fait sur ton snmpd et ce que tu arrives a monitorer maintenant (cpu, tempé, etc ...) ?
ssoubie
11-24-2005, 03:03 PM
oui jeux vous faire ca
julio
11-24-2005, 03:39 PM
cool... si vous voulez des droits sur le wiki contactez moi... c open pour les gens qui veulent publier le wiki :)
ssoubie
11-24-2005, 03:49 PM
Je regarde encore un petit trus sur la mid de DELL surtout au niveau du controleur RAID matériel, je prépare ensuite quelque chose et je vous contacte après pour publication
DonKiShoot
11-24-2005, 06:20 PM
Je regarde encore un petit trus sur la mid de DELL surtout au niveau du controleur RAID matériel, je prépare ensuite quelque chose et je vous contacte après pour publication
Pour ca j'utilise afacli et un script check_raid pecho chez linagora cf : http://www.linagora.org/article76.html
ssoubie
11-24-2005, 06:38 PM
Ben je testerais ce plugin demain
merci
DonKiShoot
11-25-2005, 09:20 AM
En snmp, il y a afasnmp pour tester un raid aacraid (adaptec) à distance ;)
Avec bien en tendu le script perl check_snmp_aacraid ou check_aacraid mais c le même ;)