Page 1 of 6

Need plugin information

Posted: Tue Jan 29, 2013 11:36 am
by ravish78
Is there any plugin available for checking DISK IO stat and only RAM(physical memory) instead of MEMUSE which checks virtual memory for windows servers.

Re: Need plugin information

Posted: Tue Jan 29, 2013 11:42 am
by slansing
Have you considered using windows performance counters to attain this information? Lets see if this would be the right fit for you, run the following from your command line and add values in for "-H" MaxWarn and MaxCrit.. this assumes that you have a C drive on the Windows machine and that you have NSClient++ already installed and configured to send and receive data via NRPE:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H (windows ip goes here) -c CheckCounter -a "Counter:=\\PhysicalDisk(0 C:)\Avg. Disk sec/Transfer" ShowAll MaxWarn= MaxCrit=

Re: Need plugin information

Posted: Tue Jan 29, 2013 11:52 am
by lmiltchev
To respond on the physical memory question... You can use check_nrpe with nsclient++ and run something similar to this:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <IP_address> -p 5666 -t 30 -c checkMem -a MaxWarn=80% MaxCrit=90% ShowAll=long type=physical
Hope this helps.

Re: Need plugin information

Posted: Wed Jan 30, 2013 11:32 am
by ravish78
tmproot@usa0300lv846>/usr/local/nagios/libexec/check_nrpe -H 13.129.76.44 -c CheckCounter -a "Counter:=\\PhysicalDisk(0 C:)\Avg. Disk sec/Transfer" ShowAll MaxWarn=80 MaxCrit=90
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
tmproot@usa0300lv846>

tmproot@usa0300lv846>/usr/local/nagios/libexec/check_nrpe -H 13.129.76.44 -p 5666 -t 30 -c checkMem -a MaxWarn=80% MaxCrit=90% ShowAll=long type=physical
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.


I see this error in remote system logs
2013-01-30 11:22:07: debug:CACHENSClient++.cpp:533: Attempting to start NSCLient++ - 0.3.7.493 2009-10-12
2013-01-30 11:22:07: message:CACHEmodules\FileLogger\FileLogger.cpp:93: Log path is: C:\nsclient++\\nsclient.log
2013-01-30 11:22:07: error:CACHEmodules\SysTray\SysTray.cpp:51: SysTray is not installed (or it cannot interact with the desktop) SysTray won't be loaded. Run NSClient++ SysTray install to change this.
2013-01-30 11:22:07: error:modules\NRPEListener\NRPEListener.cpp:289: Unauthorize access from: 13.129.109.85
2013-01-30 11:29:06: error:modules\NRPEListener\NRPEListener.cpp:289: Unauthorize access from: 13.129.109.85

Re: Need plugin information

Posted: Wed Jan 30, 2013 11:41 am
by abrist
You need a to change a few lines in you nsc.ini/nsclient.ini file if you have not done so already:

Global settings

Code: Select all

allowed_hosts=127.0.0.1/32, [your nagios server ip]
password=[your nsclient password]  (only necessary if you use the check_nt plugin)

Under [NRPE]

Code: Select all

allow_nasty_meta_chars=1
what version of nsclient are you using? We suggest 0.3.9.

Re: Need plugin information

Posted: Wed Jan 30, 2013 2:22 pm
by ravish78
Installed nsclient++ version 0.3.9.
uncommented and changed allow_nasty_meta_chars=1

We do not have any nsclient password.


Below is the test result

tmproot@usa0300lv846>./check_nrpe -H 13.118.27.40 -p 5666 -t 30 -c checkMem -a MaxWarn=80% MaxCrit=90% ShowAll=long type=physical
CHECK_NRPE: Error - Could not complete SSL handshake.

tmproot@usa0300lv846>./check_nrpe -H 13.118.27.40 -c CheckCounter -a "Counter:=\\PhysicalDisk(0 C:)\Avg. Disk sec/Transfer" ShowAll MaxWarn=80% MaxCrit=90%
CHECK_NRPE: Error - Could not complete SSL handshake.

Re: Need plugin information

Posted: Wed Jan 30, 2013 2:27 pm
by slansing
Do you have the correct ports open on the Windows system? Check for port 5666 and 12489, then run:

/usr/local/nagios/libexec/check_nrpe -H xxx.xx.xxx.xx

xxxx= Nagios IP string, rather than taking time to write the whole check out, we need to make sure that the server's can communicate in the most rudimentary form first.

See paragraphs 5 and 6 located on this page for more information:

http://www.nsclient.org/nscp/wiki/doc/installation

Re: Need plugin information

Posted: Wed Jan 30, 2013 2:33 pm
by lmiltchev
2013-01-30 11:22:07: error:modules\NRPEListener\NRPEListener.cpp:289: Unauthorize access from: 13.129.109.85
2013-01-30 11:29:06: error:modules\NRPEListener\NRPEListener.cpp:289: Unauthorize access from: 13.129.109.85
I assume 13.129.109.85 is your Nagios XI server's IP. It seems it is not in the allowed hosts. Please, add this line in the NRPE section of the NSC.ini file:

Code: Select all

allowed_hosts=13.129.109.85
Restart the NSClient++ service, so that the changes can take effect and try your check again.

Hope this helps.

Re: Need plugin information

Posted: Thu Feb 07, 2013 4:14 pm
by ravish78
We have changed the Ip to new one and gave the same ip in NSC file.Still it is giving same error .


tmproot@usa0300lv846>./check_nrpe -H 13.118.27.40
CHECK_NRPE: Error - Could not complete SSL handshake.
tmproot@usa0300lv846>

Re: Need plugin information

Posted: Thu Feb 07, 2013 4:42 pm
by scottwilkerson
You are putting your Nagios server IP in the NSC.ini correct?

after making changes to the NSC.ini you will need to restart the NSClient++ service