Hi,
This is my first post in the forum.
Reading the documentation of Nagios [1], I donwloaded and installed la latest version of NSClient++ in the Sourceforge site (NSCP-0.4.1.90 of 04/02/2013). Although Nagios documentation is old., I thought it was still keeping Sourceforge for publications.
After a little more research on NSClient++ I found the old documentation on Trac ([2], [3]). There I found the reference to the new documentation in docs.nsclient.org. The documentation also improved a lot and I was looking the new site on http://www.nsclient.org. It is truly gratifying that the project has grown so much and that is supported by both individual users as well as businesses. So I wanted to start this post by congratulating the effort invested, Michael, and also for developing subsequent versions that I downloaded from Sourceforge.
I was reading on the documentation about the modules [4] that there are new versions for commands (e.g. check_drivesize is new version of checkdrivesize). I’m currently using the default definition of alias_disk with CheckDriveSize:
alias_disk = CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED
I tried adding a new definition with the new command as follows:
alias_disk1 = check_drivesize “crit=free<10%” “warn=free<20%” drive=*
But to do a test I get the following error:
# /usr/lib/nagios/plugins/check_nrpe -H A.B.C.D -c alias_disk1
No handler for command: check_drivesize
And this is what I get in the log:
2014-08-31 09:45:33: e:D:\source\nscp\trunk\include\socket/server.hpp:163: Socket ERROR: The I/O operation has been aborted because of either a thread exit or an application request
2014-08-31 09:46:01: e:..\..\..\trunk\service\NSClient++.cpp:980: No handler for command: check_drivesize avalible commands: commands {, alias_cpu, alias_cpu_ex, alias_disk, alias_disk1, alias_disk_loose, alias_event_log, alias_file_age, alias_file_size, alias_mem, alias_process, alias_process_count, alias_process_hung, alias_process_stopped, alias_sched_all, alias_sched_long, alias_sched_task, alias_service, alias_service_ex, alias_up, alias_updates, alias_volumes, alias_volumes_loose, check_cpu, check_eventlog, check_memory, check_nscp, check_ok, check_pdh, check_process, check_registry, check_service, check_uptime, checkalwayscritical, checkalwaysok, checkalwayswarning, checkcounter, checkcpu, checkcritical, checkdrivesize, checkeventlog, checkfile2, checkfiles, checkfilesize, checkmem, checkmultiple, checkok, checkprocstate, checkservicestate, checksingleregentry, checkuptime, checkversion, checkwarning, checkwmi, checkwmivalue, listcounterinstances}, plugins {, 0, 1, 2, 3, 4, 5, 6}
2014-08-31 09:46:01: e:..\..\..\..\trunk\include\nscapi\nscapi_core_wrapper.cpp:181: No handler for command ‘check_drivesize’.
I get the feeling that it do not find the command. This is something that was introduced in newer versions of NSClient++?
Thank you in advance for responding.
Best regards,
Daniel
[1] http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html
[2] http://www.nsclient.org/nscp/wiki/FAQ
[3] http://www.nsclient.org/nscp/wiki/doc/usage/nagios
[4] http://docs.nsclient.org/reference/index.html