Hopefully this is an easy one. Is there a way I can make my data templates pull the snmp ip address from the host rather than doing a per-data source for each graph?
Currently when I have... say a Netscreen template graph. When I add that graph to my netscreen device, I end up typing the SNMP IP address 4 times (one for each interface that have data for). Is there not a variable (like.. |host_snmp_ip|) which would pull that info from the hosts' snmp ip address. This way more complicated graphs will not ask me to enter this exact same info in 8 times or more??
In the data template I need to check the "per-data source" check box because obviously each netscreen will be a different address. But I have already been asked for this address when creating the host... why ask for it for every data poll... they are all the same host?
Thanks!
SNMP IP address auto populate?
Moderators: Developers, Moderators
Hi
This might be what you are looking for:-
query_ifIP for your data queries
ifIP for your graph templates
Jay
This might be what you are looking for:-
query_ifIP for your data queries
ifIP for your graph templates
Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75
SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75
SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
Well the problem with that is, there are 4 interfaces on a Netscreen. So just doing a querey would return 4 different ip's. I need it to specifically use the one that I entered in the "Hostname" field while creating the device. This would be the interface which is accessible from where my Cacti install is at. Therefore all data for this device is pulled from that IP. Since I already entered it manually while creating the device... I was hoping to just have the graphs pull the info from there.
Even if I did a query to find the interface IP, which interface (1,2,3,4) it should be accessed from will vary depending on which Netscreen I am trying to poll. When I create the host I will put the approperate IP in the "hostname" field. If I don't find a way of accessing this from the templates I will just paste this 8 times (in and out bits for each port). I just figured there had to be a way to access that stored variable.
Thanks for the suggestion, I might look into using this sort of query on a device which only has 1 interface. Then I am guaranteed that it would retrieve the right IP address.
Even if I did a query to find the interface IP, which interface (1,2,3,4) it should be accessed from will vary depending on which Netscreen I am trying to poll. When I create the host I will put the approperate IP in the "hostname" field. If I don't find a way of accessing this from the templates I will just paste this 8 times (in and out bits for each port). I just figured there had to be a way to access that stored variable.
Thanks for the suggestion, I might look into using this sort of query on a device which only has 1 interface. Then I am guaranteed that it would retrieve the right IP address.
Hi
Not quite sure what you are after.
I have netscreens on our network. I created my own template to monitor interface stats as we use sub interfaces and the standard cacti traffic graphs don't support sub interfaces. See http://forums.cacti.net/about11064.html
All I do is to use the interface that resides on our lan as the device ip. I then set snmp request to use that interface as the source for snmp traffic on the Netscreen. I then add the template I created to the device. I then pick the interfaces I want to monitor and create the graphs. The information I see in the graph title is something like pavcr-fw - NS Traffic - ethernet1, pavcr-fw - NS Traffic - ethernet2 and so on up to ethernet4. This means I can know which hostname and which interface is being graphed. I used |host_description| - NS Traffic - |query_nsIfName| within the data query to get this information.
Don't know if this helps at all?
Jay
Not quite sure what you are after.
I have netscreens on our network. I created my own template to monitor interface stats as we use sub interfaces and the standard cacti traffic graphs don't support sub interfaces. See http://forums.cacti.net/about11064.html
All I do is to use the interface that resides on our lan as the device ip. I then set snmp request to use that interface as the source for snmp traffic on the Netscreen. I then add the template I created to the device. I then pick the interfaces I want to monitor and create the graphs. The information I see in the graph title is something like pavcr-fw - NS Traffic - ethernet1, pavcr-fw - NS Traffic - ethernet2 and so on up to ethernet4. This means I can know which hostname and which interface is being graphed. I used |host_description| - NS Traffic - |query_nsIfName| within the data query to get this information.
Don't know if this helps at all?
Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75
SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75
SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
Who is online
Users browsing this forum: No registered users and 4 guests