ucd/net graph templates

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
AlexX_57
Posts: 7
Joined: Thu Jun 12, 2008 7:53 am
Location: France

ucd/net graph templates

Post by AlexX_57 »

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 :roll:
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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.
AlexX_57
Posts: 7
Joined: Thu Jun 12, 2008 7:53 am
Location: France

Post by AlexX_57 »

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
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

AlexX_57 wrote:So, first I created a new host template in which I've put these Associated Graph Templates :
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:Is the Host MIB - CPU Utilization appropriate for my Windows Host ?
Yes, it uses SNMP.
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
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.
AlexX_57
Posts: 7
Joined: Thu Jun 12, 2008 7:53 am
Location: France

Post by AlexX_57 »

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.
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.
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 :

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 ?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

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 what was broken? host templates simply group existing data input methods / templates together for you.
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 :
Well it shouldn't be doing that unless something is misconfigured or broken.
AlexX_57 wrote:Do you know if there is a graph template like Lit_W32 for CPU which use perl script ?
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
Posts: 7
Joined: Thu Jun 12, 2008 7:53 am
Location: France

Post by AlexX_57 »

Well it shouldn't be doing that unless something is misconfigured or broken.
The default Host MIB - CPU Utilization Data Template use the Get Script Server Data (Indexed) Data Input Method.
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 ?
AlexX_57
Posts: 7
Joined: Thu Jun 12, 2008 7:53 am
Location: France

Post by AlexX_57 »

BSOD2600 wrote:Well what was broken? host templates simply group existing data input methods / templates together for you.
There seems to be a problem with my new Host Template too.

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
AlexX_57
Posts: 7
Joined: Thu Jun 12, 2008 7:53 am
Location: France

Post by AlexX_57 »

UP

Please, someone for my problem ?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

What problem? Your last post stated, " It now seems to work fine".
AlexX_57
Posts: 7
Joined: Thu Jun 12, 2008 7:53 am
Location: France

Post by AlexX_57 »

AlexX_57 wrote:
Well it shouldn't be doing that unless something is misconfigured or broken.
The default Host MIB - CPU Utilization Data Template use the Get Script Server Data (Indexed) Data Input Method.
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 ?
This problem

Thanks in advance
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Click on verbose query for Host MIB - CPU Utilization and paste the results.
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

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.
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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest