Windows Disk I/O monitoring issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
anoop
Posts: 95
Joined: Tue Jun 25, 2013 1:22 am

Windows Disk I/O monitoring issue

Post by anoop »

Hi Team,

I followed Below link for monitoring Disks Read/write and IOPS for windows

http://exchange.nagios.org/directory/Pl ... at/details

But i am facing error

when I try to execute the vb script within windows I get:

Class not defined: 'NagiosPlugin'
Code: 800A01FA

How to solve this issue?

I need to monitor Disks Read/write and IOPS for windows


Thanks in advance
System:
Nagios XI Version : 2012R2.2 | PHP Version: 5.3.3
Offloaded MySQL DB on another virtual machine
16 CPU with 2 cores each | 32 GB RAM | 1 TB HDD
CentOS-6.3 |Total = 4,000 hosts| 40,000 services.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Windows Disk I/O monitoring issue

Post by slansing »

You may want to take a look at this page here:

http://www.nsclient.org/nscp/discussion/topic/1079

What version of NSClient++ are you running?
anoop
Posts: 95
Joined: Tue Jun 25, 2013 1:22 am

Re: Windows Disk I/O monitoring issue

Post by anoop »

We are using Nsclient++ version 0.3.9.328
System:
Nagios XI Version : 2012R2.2 | PHP Version: 5.3.3
Offloaded MySQL DB on another virtual machine
16 CPU with 2 cores each | 32 GB RAM | 1 TB HDD
CentOS-6.3 |Total = 4,000 hosts| 40,000 services.
anoop
Posts: 95
Joined: Tue Jun 25, 2013 1:22 am

Re: Windows Disk I/O monitoring issue

Post by anoop »

And we tried by this command

./check_nt -H 10.0.0.21 -s "Test@193" -p 12489 -v COUNTER -1 "\\PhysicalDisk(C:)\\Disk Reads/Sec"

It showing output ( 0 ), even if we try to copy data also

plz lest know exact command
System:
Nagios XI Version : 2012R2.2 | PHP Version: 5.3.3
Offloaded MySQL DB on another virtual machine
16 CPU with 2 cores each | 32 GB RAM | 1 TB HDD
CentOS-6.3 |Total = 4,000 hosts| 40,000 services.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Windows Disk I/O monitoring issue

Post by slansing »

It looks like they resolved that same error on the page I linked, please follow it through and make sure you effect the same changes. Let us know!
anoop
Posts: 95
Joined: Tue Jun 25, 2013 1:22 am

Re: Windows Disk I/O monitoring issue

Post by anoop »

slansing wrote:You may want to take a look at this page here:

http://www.nsclient.org/nscp/discussion/topic/1079

What version of NSClient++ are you running?
This link not working for Disk IOPS and read and write , even we try to change option mention in ur link. but it is not quite related.

please suggest us
System:
Nagios XI Version : 2012R2.2 | PHP Version: 5.3.3
Offloaded MySQL DB on another virtual machine
16 CPU with 2 cores each | 32 GB RAM | 1 TB HDD
CentOS-6.3 |Total = 4,000 hosts| 40,000 services.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Windows Disk I/O monitoring issue

Post by slansing »

Oh you are now using counters??.. okay, looks like your problem is you have a "-1" defined where it should be a "-l"

Code: Select all

./check_nt -H 10.0.0.21 -s "Test@193" -p 12489 -v COUNTER -l "\\PhysicalDisk(C:)\\Disk Reads/Sec"
anoop
Posts: 95
Joined: Tue Jun 25, 2013 1:22 am

Re: Windows Disk I/O monitoring issue

Post by anoop »

Sry we used -l only. while copying it shown like that..again i tried now ,But it giving value zero
System:
Nagios XI Version : 2012R2.2 | PHP Version: 5.3.3
Offloaded MySQL DB on another virtual machine
16 CPU with 2 cores each | 32 GB RAM | 1 TB HDD
CentOS-6.3 |Total = 4,000 hosts| 40,000 services.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Windows Disk I/O monitoring issue

Post by abrist »

"0" usually means it could not find the performance counter . . .
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Windows Disk I/O monitoring issue

Post by sreinhardt »

Not sure how much this will effect it, however the seconds portion should be lower case. Performance counters all have Bytes/sec instead of Bytes/Sec. They also generally have a disk number, 0 in the case of C:. Just to be sure that it's not something silly like that.

Code: Select all

./check_nt -H 10.0.0.21 -s "Test@193" -p 12489 -v COUNTER -l "\\PhysicalDisk(C:)\\Disk Reads/sec"
./check_nt -H 10.0.0.21 -s "Test@193" -p 12489 -v COUNTER -l "\\PhysicalDisk(0 C:)\\Disk Reads/sec"
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked