| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-21-2012, 04:15 AM
|
#1
|
|
Senior Member
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,
Posts: 1,261
Rep: 
|
custom nrpe plugin in nagios
I have created a custom script with perl. But I am unable to use it in nagios with nrpe to monitor remote system.
On the host its working fine but with nagios its throwing error:
Code:
CHECK_NRPE: Socket timeout
Can any one guide me how to add custom script to use with nrpe remote linux ??
Last edited by divyashree; 11-21-2012 at 06:53 AM.
|
|
|
|
11-21-2012, 10:17 PM
|
#4
|
|
Senior Member
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,
Posts: 1,261
Original Poster
Rep: 
|
Quote:
Originally Posted by Habitual
|
Habitual, thanks for the reply.
All these work fine except you last step:
Code:
/usr/local/nagios/libexec/check_nrpe -H re.mo.te.ip -c command
According to you this should work from the nagios server.
But in some of the plugins you dont have to add the command in the nagios server's nrpe.cfg file, but only in the remote machin's nrpe.cfg.
for example:
http://exchange.nagios.org/directory...a-2Epl/details
According to the above link I added that plugin in remote system's nrpe.cfg and added that command in the host.cfg(remote system's) in the nagios server.
And its working fine on the nagios page, though the your last step doesn't work in this case.
Similarly my created plugin doesn't need to be defined in the nagios server's nrpe.cfg but in the remote system's nrpe.cfg and the command to be defined in remotehoste.cfg in nagios server,that's what I have done and it throws error on the nagios page.
Last edited by divyashree; 11-21-2012 at 10:18 PM.
|
|
|
|
11-21-2012, 10:27 PM
|
#5
|
|
Senior Member
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,
Posts: 1,261
Original Poster
Rep: 
|
Ohh I forgot to add the fullpath of the command in the sudo file of the remote system but only added the path to perl for user nagios.
I added that and it works fine.
Thanks to TBone and Habitual for the reply.
|
|
|
|
11-23-2012, 08:16 AM
|
#6
|
|
Senior Member
Registered: Jan 2011
Distribution: Slack14_64_Multilib
Posts: 1,491
Rep: 
|
You are very welcome.
Glad it worked out!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:45 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|