Need plugin information
Need plugin information
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.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Need plugin information
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
To respond on the physical memory question... You can use check_nrpe with nsclient++ and run something similar to this:
Hope this helps.
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=physicalBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Need plugin information
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
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
You need a to change a few lines in you nsc.ini/nsclient.ini file if you have not done so already:
Global settings
Under [NRPE]
what version of nsclient are you using? We suggest 0.3.9.
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=1Former 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.
"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.
Re: Need plugin information
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.
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.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Need plugin information
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
/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
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: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
Code: Select all
allowed_hosts=13.129.109.85Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Need plugin information
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>
tmproot@usa0300lv846>./check_nrpe -H 13.118.27.40
CHECK_NRPE: Error - Could not complete SSL handshake.
tmproot@usa0300lv846>
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Need plugin information
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
after making changes to the NSC.ini you will need to restart the NSClient++ service