Need plugin information

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Need plugin information

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Need plugin information

Post 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=
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Need plugin information

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Need plugin information

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Need plugin information

Post 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.
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.
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Need plugin information

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Need plugin information

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Need plugin information

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: Need plugin information

Post 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>
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Need plugin information

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked