PDA

View Full Version : SNMP different value for different servers servers


gugusg
31-12-2008, 17:09
Hello,

I'm trying to monitore the value of temperature on different dell servers.

with snmp, i have string like theses :

<snmpstring>.5.1.1 : value of item 1
<snmpstring>.5.1.2 : value of item 2
<snmpstring>.5.1.3 : value of item 3

<snmpstring>.8.1.1 : name of item 1
<snmpstring>.8.1.2 : name of item 2
<snmpstring>.8.1.3 : name of item 3

and on each servers, the snmp name are differents like this :

Server 1 :
<snmpstring>.5.1.1 : 540
<snmpstring>.5.1.2 : 550
<snmpstring>.5.1.3 : 220

<snmpstring>.8.1.1 : CPU 1
<snmpstring>.8.1.2 : CPU 2
<snmpstring>.8.1.3 : Ambiant

Server 2 :
<snmpstring>.5.1.1 : 220
<snmpstring>.5.1.2 : 550
<snmpstring>.5.1.3 : 570

<snmpstring>.8.1.1 : Ambiant
<snmpstring>.8.1.2 : CPU 1
<snmpstring>.8.1.3 : CPU 2


Of course this is only an exemple ... but how could i make items with these kinds of stuff without doing it manually for each server ? because i cant make any graphs / triggers ...

Thx a lot.

MrKen
01-01-2009, 09:37
Why not create a Template with these items? Then apply the template to your hosts (Server 1 and Server 2).


<snmpstring>.5.1.1 : value of item 1
<snmpstring>.5.1.2 : value of item 2
<snmpstring>.5.1.3 : value of item 3

<snmpstring>.8.1.1 : name of item 1
<snmpstring>.8.1.2 : name of item 2
<snmpstring>.8.1.3 : name of item 3


In Latest Values you'll see the values as they apply to each host. So you can see on Server 1 that CPU 1 is Port 1, and on Server 2 that CPU 1 is Port 2.

Server 1 :
<snmpstring>.5.1.1 : 540
<snmpstring>.5.1.2 : 550
<snmpstring>.5.1.3 : 220

<snmpstring>.8.1.1 : CPU 1
<snmpstring>.8.1.2 : CPU 2
<snmpstring>.8.1.3 : Ambiant

Server 2 :
<snmpstring>.5.1.1 : 220
<snmpstring>.5.1.2 : 550
<snmpstring>.5.1.3 : 570

<snmpstring>.8.1.1 : Ambiant
<snmpstring>.8.1.2 : CPU 1
<snmpstring>.8.1.3 : CPU 2


As for applying the correct names or descriptions in the Templates graphs, then maybe this post may hold some hope for the not too distant future.

http://www.zabbix.com/forum/showthread.php?t=9553

MrKen

gugusg
01-01-2009, 14:57
yes, thats what i made, but for the trigger and the graphs i am obliged to make it differently for each servers because the conditions are not the same :(

thank you for the post, i will read it ;-) macros in name with the value of another item could be very usefull in this case :-)