Windows Perfom counters in Cacti

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

Moderators: Developers, Moderators

Post Reply
ilusha10
Posts: 8
Joined: Wed Mar 07, 2007 2:15 pm

Windows Perfom counters in Cacti

Post by ilusha10 »

Hi,

Is it possible to display Windows Perfmon counters in Cacti and if it is, how to do it or where to look for info?

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

Post by BSOD2600 »

Two options:
1) use free/pay version of Snmp informant
2) use WMI scripts to query all of the performance counters. If coming from linux, will need to set up nsclient to achieve this.
ilusha10
Posts: 8
Joined: Wed Mar 07, 2007 2:15 pm

Post by ilusha10 »

Where i can get snmp informant and ncclient?
Thanks
Ilya
maw
Posts: 34
Joined: Wed Mar 07, 2007 2:26 am
Location: Vancouver, Canada

Post by maw »

Try those exact keywords in google and hit "im feeling lucky" :)
:: FreeBSD6.2 - Apache 1.3.37+mod_ssl - PHP 5.2.1 - MySQL 5.0 ::
ilusha10
Posts: 8
Joined: Wed Mar 07, 2007 2:15 pm

Post by ilusha10 »

Is there a document how to configure Cacti to use snmp informant?
Thanks
Ilya
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) search the forums for others who have made snmp-informant scripts for cacti
2) learn to create your own: http://docs.cacti.net/node/225
crackrocksteady
Posts: 45
Joined: Wed Dec 06, 2006 12:02 am
Location: Perth , Australia

Post by crackrocksteady »

You can also use a Perl Script to query the perfmon data directly. Not the best way of doing it, but it can be quite simple to setup. This is useful if the data you require is not exposed through WMI.

See my script mgcp.pl.txt in the following post for an idea.

http://forums.cacti.net/viewtopic.php?t=10857



Good luck
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Ah, interesting. didn't know there was a native Perl lib for it. Good to know.
crackrocksteady
Posts: 45
Joined: Wed Dec 06, 2006 12:02 am
Location: Perth , Australia

Post by crackrocksteady »

Yeah it is quite useful, especially coz it can be knocked out quite quickly and easily.

the module is called Win32-perfmon, like I mentioned in the other post it isn't availble through the active state repo so I got it through a third party repo.
User avatar
XaNO
Posts: 9
Joined: Fri Feb 23, 2007 4:44 am
Location: Switzerland

Post by XaNO »

At the moment i'm working on my complementary work. I'm monitoring a way from the Client to Servers and tings like that. I wrote a script, that read the informations from PerfMon over a MSSQL-DB. I implemented this Script as a Data Input Method in Cacti. If you would use this Script and you have some Questions, just ask.
Attachments
output_perfmon.zip
(1.34 KiB) Downloaded 216 times
crackrocksteady
Posts: 45
Joined: Wed Dec 06, 2006 12:02 am
Location: Perth , Australia

Post by crackrocksteady »

I don't know vb or german, can you explain what is going on in that script?

It looks like your storing perfmon data in a SQL db and then querying it out at the remote end??

If so, that is a pretty complicated way too skin that cat.

Fletch
User avatar
XaNO
Posts: 9
Joined: Fri Feb 23, 2007 4:44 am
Location: Switzerland

Post by XaNO »

It looks like your storing perfmon data in a SQL db and then querying it out at the remote end??
Thats right.
In Performance Monitor i configure the counter log to store the Data in a SQL db. After this i run this script with one parameter. This parameter is the name from the Counter Log in Perfmon. The Result from this VB-Script looks like: "Value1:0.566318253379072 Value2:3.86306665824032 Value3:0 Value4:0 Value5:0 Value6:0 Value7:0 Value8:0". I wrote this script to read at max 8 values. The values from perfmon come back in the same order how there are added in perfmon. The input string in the data input method from cacti is: "cscript.exe /nologo <path_cacti>/scripts/output_perfmon.vbs <CounterLog>".
I hope you can understand my terrible english :-?
If so, that is a pretty complicated way too skin that cat.
Thats right, but for my case ist perfect, why im using the SQL-DB also for other monitoring scripts.
crackrocksteady
Posts: 45
Joined: Wed Dec 06, 2006 12:02 am
Location: Perth , Australia

Post by crackrocksteady »

[quote]Thats right, but for my case ist perfect, why im using the SQL-DB also for other monitoring scripts.[/quote]

Well that's the most important thing. :D
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests