Install plugins, please help!

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Install plugins, please help!

Postby darbaz09 » Tue Apr 18, 2017 11:34 am

Hello,

I'm very new to Nagios and trying to install a check-ddos.sh, I've put the file in /usr/local/nagios/libexec and I don't know how to proceed to get the plugin running and working on my server.

I'm trying to learn how to install other plugins as well which are not bash. So would the same procedure apply?

Note: I'm new to Centos and Linux in general.

Thank you so much, help would be much appreciated. Sorry for begin a total noob but it's a learning curve I guess :)
darbaz09
 
Posts: 3
Joined: Thu Mar 16, 2017 4:55 pm

Re: Install plugins, please help!

Postby dwhitfield » Tue Apr 18, 2017 12:35 pm

Welcome!

Nagios can be tricky to configure when you've got a good grasp of what's going on, and a complex challenge when you don't. Make sure you read the documentation - particularly the sections on "Configuring Nagios" and "The Basics". Save the advanced topics for when you've got a good understanding of the basics.


Of course, if you don't know where the documentation is, that's hard. I'd start at https://assets.nagios.com/downloads/nag ... nners.html and if you click on the quickstart installation guide you'll have a bit of a path laid out for you. It sounds like you are past the beginning of https://assets.nagios.com/downloads/nag ... start.html but there are links to "Post-Installation Configuration" in that document, and even though some of those documents are short they were worth reading, and again, there are links to more.

Not knowing CentOS is certainly going to slow you down, but it's a good choice for Nagios Core since our commercial offerings run on CentOS (or RHEL).

To directly answer your question about plugins, yes, the same procedure applies in a general sense. However, some plugins may require you to install dependencies. For example, https://exchange.nagios.org/directory/P ... us/details requires ruby, which is not installed by default in CentOS. However, you can install it with yum install -y ruby.

You can find instructions for compiling NRPE and Nagios Plugins at https://support.nagios.com/kb/article.php?id=515 . NRPE is by no means required, but it is useful in many cases. If you don't find what you want in our default plugins, you can find many more plugins at https://exchange.nagios.org/

Please let us know if you run into any difficulty.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 2288
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: Install plugins, please help!

Postby darbaz09 » Thu Apr 20, 2017 1:18 pm

Thank you for the information, it helped quite a bit. As it outlines the basics and how to install for the NRPE plugin.

I followed a tutorial on how to do the Check_DDOS, and I finally got that working after 2 days haha.

Now i'm confused once again, the last one was a simple task of putting the file in the Linexec folder, now i'm currently trying to do my final plugin which is check_chkroot from here (https://exchange.nagios.org/directory/P ... it/details) I extracted it and follow the ./configure and make and make install, and currently its sitting in my Libexec folder.

So whats next? should the plugin work now? I feel like there is more to be done that i'm not aware off :(

help once again would be much appreciated, as this is the final plugin I want to get working!

Thank you once again!
darbaz09
 
Posts: 3
Joined: Thu Mar 16, 2017 4:55 pm

Re: Install plugins, please help!

Postby dwhitfield » Thu Apr 20, 2017 4:05 pm

That's not a plugin we wrote. The email addresses for the authors can be found at the bottom of http://www.chkrootkit.org/#list It doesn't look like it's been updated since 2008 though, so who knows if they'll respond. The website is still up, so that's something.

Did you set up an service checks using the plugin? It's hard to know exactly what documentation to give you since I don't know what system you are trying to check. Are you just trying to check the server on which Nagios is running? If so, then I think https://ittutorials.net/linux/nagios/se ... Linux_Host should help you. If not, you'll want something like NRPE, which it sounds like you already have going. You'll set it up the same way you did with Check_DDOS, only modifying things for the remote OS.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 2288
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC


Return to Nagios Core

Who is online

Users browsing this forum: Bing [Bot] and 23 guests