ucd/net graph templates
Moderators: Developers, Moderators
ucd/net graph templates
Operating System: Windows Server 2003 Standard Edition R2 SP2
Webserver: IIS 6
Cacti: 0.8.7b
Spine: 0.8.7a
MySQL: 5.0.51b
PHP: 5.2.6
RRDTool (Cygwin or Win32 version): 1.2.15
Net-SNMP: 5.4.1-3
Cygwin (cygwin1.dll version): 1.5.25
Hi,
I'm new in cacti and I need your help.
I'd like to use the ucd/net graphs templates (ucd/net - Memory Usage in this case) to monitore my localhost (which is a Windows 2003 Server)
My graph is blank and I can see that in my cacti.log :
06/12/2008 12:29:00 PM - SPINE: Poller[0] Host[23] DS[89] WARNING: Result from SNMP not valid. Partial Result: ...
06/12/2008 12:29:00 PM - SPINE: Poller[0] Host[23] DS[89] SNMP: v2: 192.168.1.70, dsname: mem_cache, oid: .1.3.6.1.4.1.2021.4.15.0, value: U
06/12/2008 12:29:00 PM - SPINE: Poller[0] Host[23] DS[88] WARNING: Result from SNMP not valid. Partial Result: ...
06/12/2008 12:29:00 PM - SPINE: Poller[0] Host[23] DS[88] SNMP: v2: 192.168.1.70, dsname: mem_buffers, oid: .1.3.6.1.4.1.2021.4.14.0, value: U
06/12/2008 12:29:00 PM - SPINE: Poller[0] Host[23] DS[90] WARNING: Result from SNMP not valid. Partial Result: ...
06/12/2008 12:29:00 PM - SPINE: Poller[0] Host[23] DS[90] SNMP: v2: 192.168.1.70, dsname: mem_free, oid: .1.3.6.1.4.1.2021.4.6.0, value: U
I've seen that this ucd/net - Memory Usage Graph Template contain the following Data Templates:
- ucd/net - Memory - Buffers with the OID .1.3.6.1.4.1.2021.4.14.0
- ucd/net - Memory - Cache with the OID .1.3.6.1.4.1.2021.4.15.0
- ucd/net - Memory - Free with the OID .1.3.6.1.4.1.2021.4.6.0
When I execute for exemple this command
snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.2021.4.15.0
I obtain the error:
UCD-SNMP-MIB::memCached.0 = No more variables left in this MIB view (It is past the end of the MIB tree)
I think that means the agent have nothing relevant to display.
I've the UCD-SNMP-MIB.txt and UCD-SNMP-MIB.inc files in my D:\net-snmp\share\snmp\mibs folder
I also replace the snmp Windows service to the net-snmp agent.
PS : I'm french
Webserver: IIS 6
Cacti: 0.8.7b
Spine: 0.8.7a
MySQL: 5.0.51b
PHP: 5.2.6
RRDTool (Cygwin or Win32 version): 1.2.15
Net-SNMP: 5.4.1-3
Cygwin (cygwin1.dll version): 1.5.25
Hi,
I'm new in cacti and I need your help.
I'd like to use the ucd/net graphs templates (ucd/net - Memory Usage in this case) to monitore my localhost (which is a Windows 2003 Server)
My graph is blank and I can see that in my cacti.log :
06/12/2008 12:29:00 PM - SPINE: Poller[0] Host[23] DS[89] WARNING: Result from SNMP not valid. Partial Result: ...
06/12/2008 12:29:00 PM - SPINE: Poller[0] Host[23] DS[89] SNMP: v2: 192.168.1.70, dsname: mem_cache, oid: .1.3.6.1.4.1.2021.4.15.0, value: U
06/12/2008 12:29:00 PM - SPINE: Poller[0] Host[23] DS[88] WARNING: Result from SNMP not valid. Partial Result: ...
06/12/2008 12:29:00 PM - SPINE: Poller[0] Host[23] DS[88] SNMP: v2: 192.168.1.70, dsname: mem_buffers, oid: .1.3.6.1.4.1.2021.4.14.0, value: U
06/12/2008 12:29:00 PM - SPINE: Poller[0] Host[23] DS[90] WARNING: Result from SNMP not valid. Partial Result: ...
06/12/2008 12:29:00 PM - SPINE: Poller[0] Host[23] DS[90] SNMP: v2: 192.168.1.70, dsname: mem_free, oid: .1.3.6.1.4.1.2021.4.6.0, value: U
I've seen that this ucd/net - Memory Usage Graph Template contain the following Data Templates:
- ucd/net - Memory - Buffers with the OID .1.3.6.1.4.1.2021.4.14.0
- ucd/net - Memory - Cache with the OID .1.3.6.1.4.1.2021.4.15.0
- ucd/net - Memory - Free with the OID .1.3.6.1.4.1.2021.4.6.0
When I execute for exemple this command
snmpwalk -v 2c -c public localhost .1.3.6.1.4.1.2021.4.15.0
I obtain the error:
UCD-SNMP-MIB::memCached.0 = No more variables left in this MIB view (It is past the end of the MIB tree)
I think that means the agent have nothing relevant to display.
I've the UCD-SNMP-MIB.txt and UCD-SNMP-MIB.inc files in my D:\net-snmp\share\snmp\mibs folder
I also replace the snmp Windows service to the net-snmp agent.
PS : I'm french
ucd/net graph templates are for LINUX and do not work on Windows.
Delete the Windows hosts which use them and re-create using the Windows host template.
Delete the Windows hosts which use them and re-create using the Windows host template.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
So, first I created a new host template in which I've put these Associated Graph Templates :
1) Host MIB - CPU Utilization
2) Interface - Traffic (bits/sec)
4) Lit_W32_OS
Then, I associated my Windows Host to this host template.
I modified the path to the script of Lit_W32_OS to
D:/Perl/bin/perl.exe <path_cacti>/resource/script_queries/lit_w32_os.pl <hostname> get MaxProcessMemorySize,TotalVirtualMemorySize,FreeVirtualMemory,TotalVisibleMemorySize,FreePhysicalMemory,SizeStoredInPagingFiles,FreeSpaceInPagingFiles
It works fine !! So it's good for the memory.
Now I'd like to view the cpu resources
Is the Host MIB - CPU Utilization appropriate for my Windows Host ?
When I create this graph It ask me to fill these values :
Custom Data [Template: Host MIB - CPU Utilization]
Index Type
Index Value
Output Type ID
What do I need ?
Thanks
1) Host MIB - CPU Utilization
2) Interface - Traffic (bits/sec)
4) Lit_W32_OS
Then, I associated my Windows Host to this host template.
I modified the path to the script of Lit_W32_OS to
D:/Perl/bin/perl.exe <path_cacti>/resource/script_queries/lit_w32_os.pl <hostname> get MaxProcessMemorySize,TotalVirtualMemorySize,FreeVirtualMemory,TotalVisibleMemorySize,FreePhysicalMemory,SizeStoredInPagingFiles,FreeSpaceInPagingFiles
It works fine !! So it's good for the memory.
Now I'd like to view the cpu resources
Is the Host MIB - CPU Utilization appropriate for my Windows Host ?
When I create this graph It ask me to fill these values :
Custom Data [Template: Host MIB - CPU Utilization]
Index Type
Index Value
Output Type ID
What do I need ?
Thanks
Host templates are for simply organizing/grouping templates together. You don't have to make a new one for stuff to function.AlexX_57 wrote:So, first I created a new host template in which I've put these Associated Graph Templates :
Yes, it uses SNMP.AlexX_57 wrote:Is the Host MIB - CPU Utilization appropriate for my Windows Host ?
You didn't create it the correct way.AlexX_57 wrote: When I create this graph It ask me to fill these values :
Custom Data [Template: Host MIB - CPU Utilization]
Index Type
Index Value
Output Type ID
From the device in cacti, click on 'Create Graphs for this Host' in the top right corner. Select the stuff you want to college and click create. wait 10 minutes for the graphs to get data.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
BSOD2600 wrote:Host templates are for simply organizing/grouping templates together. You don't have to make a new one for stuff to function.
Yes I know but there is a problem with the default Windows XP/2K Host Template. I don't know why... That's why I created a new Host Template. With my new one it works fine.
Yes, that's what I did. I clicked on the 'Create Graphs for this host' link from the device section, selected the Host MIB - CPU Utilization graph template and clicked on the create button.BSOD2600 wrote:You didn't create it the correct way.
From the device in cacti, click on 'Create Graphs for this Host' in the top right corner. Select the stuff you want to college and click create. wait 10 minutes for the graphs to get data.
Then, It ask me to fill these fields :
Index Type
Index Value
Output Type ID
Do you know if there is a graph template like Lit_W32 for CPU which use perl script ?
Well what was broken? host templates simply group existing data input methods / templates together for you.AlexX_57 wrote:Yes I know but there is a problem with the default Windows XP/2K Host Template. I don't know why... That's why I created a new Host Template. With my new one it works fine.
Well it shouldn't be doing that unless something is misconfigured or broken.AlexX_57 wrote:Yes, that's what I did. I clicked on the 'Create Graphs for this host' link from the device section, selected the Host MIB - CPU Utilization graph template and clicked on the create button.
Then, It ask me to fill these fields :
You really want to use SNMP polling as much as possible since its faster / more efficient than relying on a scripting language for data collection. Search the script forum for alternatives.AlexX_57 wrote:Do you know if there is a graph template like Lit_W32 for CPU which use perl script ?
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
The default Host MIB - CPU Utilization Data Template use the Get Script Server Data (Indexed) Data Input Method.Well it shouldn't be doing that unless something is misconfigured or broken.
If I go to the configuration of this Data Template there is a Custom Data section with a field named "Output Type ID" which is blank per default.
Under this field there is a checkbox named Use Per-Data Source Value (Ignore this Value). If I check the box it ask me to fill the Output Type ID field when I create my new graph. If I don't check the box and I leave it blank it doesn't ask me to fill in when creating the graph but the .rdd file did not create.
Is the Get Script Server Data (Indexed) the correct Data Input Method for the Host MIB - CPU Utilization Data Template ?
If yes, what do I put in the Output Type ID field ?
There seems to be a problem with my new Host Template too.BSOD2600 wrote:Well what was broken? host templates simply group existing data input methods / templates together for you.
If I choose the Windows 2000/XP or my own Host Template and then click on the save button I obtain the following error :
Fatal error: Maximum execution time of 30 seconds exceeded in D:\Inetpub\wwwroot\cacti\lib\functions.php on line 1430
If I return in the device section I can see my new device but there is no associated graph templates...
I increased the timeout script value in my php.ini. It now seems to work fine
What problem? Your last post stated, " It now seems to work fine".
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
This problemAlexX_57 wrote:The default Host MIB - CPU Utilization Data Template use the Get Script Server Data (Indexed) Data Input Method.Well it shouldn't be doing that unless something is misconfigured or broken.
If I go to the configuration of this Data Template there is a Custom Data section with a field named "Output Type ID" which is blank per default.
Under this field there is a checkbox named Use Per-Data Source Value (Ignore this Value). If I check the box it ask me to fill the Output Type ID field when I create my new graph. If I don't check the box and I leave it blank it doesn't ask me to fill in when creating the graph but the .rdd file did not create.
Is the Get Script Server Data (Indexed) the correct Data Input Method for the Host MIB - CPU Utilization Data Template ?
If yes, what do I put in the Output Type ID field ?
Thanks in advance
Click on verbose query for Host MIB - CPU Utilization and paste the results.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Check the following data template - Host MIB - CPU Utilization. Make sure that the boxes under the Custom Data [data input: Get Script Server Data (Indexed)] are all ticked (index type and value and output type id) If that is set up ok then do the following.
Click on your device - the scroll to - Associated Data Queries - check that you have the data query snmp - processor information listed. If not add it.
You should see something like this:-
SNMP - Get Processor Information (Verbose Query) Uptime Goes Backwards Success [1 Item, 1 Row]
If so click on create graphs - look for Data Query [SNMP - Get Processor Information] and tick the box and click create. The only information it may ask you for will be the colour to chose.
Click on your device - the scroll to - Associated Data Queries - check that you have the data query snmp - processor information listed. If not add it.
You should see something like this:-
SNMP - Get Processor Information (Verbose Query) Uptime Goes Backwards Success [1 Item, 1 Row]
If so click on create graphs - look for Data Query [SNMP - Get Processor Information] and tick the box and click create. The only information it may ask you for will be the colour to chose.
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 1 guest