Hi,
We need to monitor the IO for windows servers and have found the following plugin https://exchange.nagios.org/directory/P ... at/details
Have attached the NSC.ini file to the post.
I have followed the steps mentioned in the link for which I am getting following error.
Class not defined :'NagiosPlugin'
Class not defined :'NagiosPlugin'
You do not have the required permissions to view the files attached to this post.
Regards,
Ranjit W
Ranjit W
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Class not defined :'NagiosPlugin'
Any reason to not use simple performance counters?
Also if you're using nsc.ini I recommend updating to a more current version.
Code: Select all
define service{
use diskperfcounter
display_name Physical Disk Average Queue Length
service_description phys_disk_avg_queue
check_command check_nrpe_nscp!-c checkcounter -a "Counter=\\PhysicalDisk(_Total)\\Avg. Disk Queue Length" MaxWarn=10 MaxCrit=20
}
define service{
use diskperfcounter
display_name Logical Disk Average Write Queue
service_description logical_disk_write_queue
check_command check_nrpe_nscp!-c checkcounter -a "Counter=\\LogicalDisk(_Total)\\Avg. Disk Write Queue Length" Warn=10 MaxCrit=20
}
define service{
use diskperfcounter
display_name Logical Disk Average Read Queue
service_description logical_disk_read_queue
check_command check_nrpe_nscp!-c checkcounter -a "Counter=\\LogicalDisk(_Total)\\Avg. Disk Read Queue Length" Warn=10 MaxCrit=20
}Re: Class not defined :'NagiosPlugin'
Hi,
I am not having check_nrpe_nscp on my machine . Please suggest how to go forward. Is it not possible to resolve Class not defined :'NagiosPlugin' issue ?
I am not having check_nrpe_nscp on my machine . Please suggest how to go forward. Is it not possible to resolve Class not defined :'NagiosPlugin' issue ?
Regards,
Ranjit W
Ranjit W
Re: Class not defined :'NagiosPlugin'
You can use the default check_nrpe command to run thise service checks. Try defining them as follows.
To fix the NagiosPlugin error, you will have to update the NSClient++ agent on your Windows host to a newer version. From what I found, the older version didn't come with the VBS script needed to run this plugin.
Code: Select all
define service{
use diskperfcounter
display_name Physical Disk Average Queue Length
service_description phys_disk_avg_queue
check_command check_nrpe!-c checkcounter -a "Counter=\\PhysicalDisk(_Total)\\Avg. Disk Queue Length" MaxWarn=10 MaxCrit=20
}
define service{
use diskperfcounter
display_name Logical Disk Average Write Queue
service_description logical_disk_write_queue
check_command check_nrpe!-c checkcounter -a "Counter=\\LogicalDisk(_Total)\\Avg. Disk Write Queue Length" Warn=10 MaxCrit=20
}
define service{
use diskperfcounter
display_name Logical Disk Average Read Queue
service_description logical_disk_read_queue
check_command check_nrpe!-c checkcounter -a "Counter=\\LogicalDisk(_Total)\\Avg. Disk Read Queue Length" Warn=10 MaxCrit=20
}Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Class not defined :'NagiosPlugin'
Thank you , Is there a way to mention in the command saying " Generate an alarm after taking an average of 60 mins ?"
Regards,
Ranjit W
Ranjit W
Re: Class not defined :'NagiosPlugin'
I don't think this is possible with Nagios. You could do it clientside. This plugin http://outsideit.net/check-ms-win-disk-load/ allows you to pass the amount of samples over which an average is calculated, but you can only alert on read or write queue length.
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Class not defined :'NagiosPlugin'
Thanks Willem!
ranjit, the plugin that Willem posted is going to be your best bet, let us know if that works for you.
Thank you
ranjit, the plugin that Willem posted is going to be your best bet, let us know if that works for you.
Thank you