W32 DNS Statistics Perl Script using WMI
Moderators: Developers, Moderators
Runs OK from cmd line but not from within Cacti
I have looked at all of the posts regarding this and have been unable to get this graph to display anything but NoN. If i run the script from the cmd line, it returns the proper values. All of my SNMP stuff works great. Any help would be greatly appreciated.
I am running the following:
w2k3
Apache 2.0.54
Cacti 0.8.6f
Cactid 0.8.6e
MySQL 4.1.12a
net-snmp 5.1.3.1
php 5.0.4
rrdtool 1.2.11
Here is what the cacti log shows:
09/20/2005 07:54:20 AM - CACTID: Poller[0] Host[40] DS[369] WARNING: Result from SNMP not valid. Partial Result: ...
09/20/2005 07:54:20 AM - CACTID: Poller[0] Host[40] DS[486] SCRIPT: perl D:\Apache2\htdocs\cacti/scripts/w32_dns_query_stats.pl DNS03, output: U
09/20/2005 07:54:20 AM - CACTID: Poller[0] Host[40] DS[486] WARNING: Result from SCRIPT not valid. Partial Result: ...
09/20/2005 07:54:20 AM - CACTID: Poller[0] Host[40] ERROR: Empty result [192.103.220.15]: 'perl D:\Apache2\htdocs\cacti/scripts/w32_dns_query_stats.pl DNS03'
I am running the following:
w2k3
Apache 2.0.54
Cacti 0.8.6f
Cactid 0.8.6e
MySQL 4.1.12a
net-snmp 5.1.3.1
php 5.0.4
rrdtool 1.2.11
Here is what the cacti log shows:
09/20/2005 07:54:20 AM - CACTID: Poller[0] Host[40] DS[369] WARNING: Result from SNMP not valid. Partial Result: ...
09/20/2005 07:54:20 AM - CACTID: Poller[0] Host[40] DS[486] SCRIPT: perl D:\Apache2\htdocs\cacti/scripts/w32_dns_query_stats.pl DNS03, output: U
09/20/2005 07:54:20 AM - CACTID: Poller[0] Host[40] DS[486] WARNING: Result from SCRIPT not valid. Partial Result: ...
09/20/2005 07:54:20 AM - CACTID: Poller[0] Host[40] ERROR: Empty result [192.103.220.15]: 'perl D:\Apache2\htdocs\cacti/scripts/w32_dns_query_stats.pl DNS03'
Still need SNMP on WMI target?
I have a Windows 2003 DNS server without SNMP.
Running the perl script manually from the Cacti node returns valid WMI data from the DNS server.
Under cactid the only mention of that host in the log is that it didn't respond to SNMP.
So SNMP it still required even on WMI target hosts, when the only data you want to gather from them is via WMI scripts?
Running the perl script manually from the Cacti node returns valid WMI data from the DNS server.
Under cactid the only mention of that host in the log is that it didn't respond to SNMP.
So SNMP it still required even on WMI target hosts, when the only data you want to gather from them is via WMI scripts?
I finally got this to work but I am having difficulty understanding how the graph reads. What does the "m" and "u" mean in the graph results? These numbers differ from those I get when I run the script from the command line. For instance the graph will say 33.33m for the A record while the command line shows 139154. Any help would be appreciated.
Re: Still need SNMP on WMI target?
Verify that cacti-user has access to WMI.lottabull wrote:I have a Windows 2003 DNS server without SNMP.
Running the perl script manually from the Cacti node returns valid WMI data from the DNS server.
Under cactid the only mention of that host in the log is that it didn't respond to SNMP.
So SNMP it still required even on WMI target hosts, when the only data you want to gather from them is via WMI scripts?
Christofer
Just edit the graph template and change the 'GPRINT Type' to 'REAL NUMBERS' instead of 'Normal'.chewy009 wrote:I guess I am a little confused on why I have dns stats that show up as 33.33m on the graph and 139154 when I run the script from the cmd line. Does anyone have any insight? I really need this info to be displayed in an understandable format for mgmt.
You've one GPRINT type for each Graph Item.
All of this is described in the manual ...
Christofer
139154 is the ongoing running value that the WMI is reporting. It takes that, subtracts the previous value (something smaller), and then based off that number Cacti divides that by the number of seconds in the polling period to get an effective value. At least that's how I believe it to be working...once you get more traffic, you'll actually see more "real" values. At first that's all I saw was "u" and "m" values, but now since it's being used much more, I am getting real full values, at least on max.
- Attachments
-
- dns_srv.gif (24.2 KiB) Viewed 10809 times
Re: W32 DNS Statistics Perl Script using WMI
heyDevilSun wrote:Here is another Perl script for graphing DNS usage via WMI from a Windows 2003 Server box (may work with others)
i work with win2k3 dns and i the graph was created but no data have any ide ?
yariv
Who is online
Users browsing this forum: No registered users and 1 guest