LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-29-2010, 01:45 PM   #1
keogk
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Rep: Reputation: 15
Adding plugins to Nagios


I just installed nagios to a Cent 5.4 box. Everything is working so far except I want to add a plugin I found on nagios exchange. The file has a .pl extension. I am unsure how to add the plugin to the rest of nagios. Do I need to add it to a nagios folder and then define it. If I just try to run the pl file I get a error mesg. I am unsure if the error is caused by system misconfig or because the plugin is not installed. The plugin is check_dayime.pl and the error I get is Can't locate Date/Parse.pm
Perl seems to be working as I can run simple perl scripts and perl -v spits out v 5.8.8
 
Old 06-29-2010, 03:15 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,241

Rep: Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475
Quote:
Originally Posted by keogk View Post
I just installed nagios to a Cent 5.4 box. Everything is working so far except I want to add a plugin I found on nagios exchange. The file has a .pl extension. I am unsure how to add the plugin to the rest of nagios. Do I need to add it to a nagios folder and then define it. If I just try to run the pl file I get a error mesg. I am unsure if the error is caused by system misconfig or because the plugin is not installed. The plugin is check_dayime.pl and the error I get is Can't locate Date/Parse.pm
Perl seems to be working as I can run simple perl scripts and perl -v spits out v 5.8.8
The error is very clear...you don't have the Date/parse module. Go to CPAN, download it, and install it.

http://search.cpan.org/~gbarr/TimeDate-1.20/
 
1 members found this post helpful.
Old 06-29-2010, 03:30 PM   #3
keogk
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Original Poster
Rep: Reputation: 15
CPAN Module

Thanks
I added the cpan module and now the .pl file runs.
I am still unsure how to make the plugin work with nagios but at least now I know the plugin works.
 
Old 06-29-2010, 05:50 PM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,241

Rep: Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475Reputation: 2475
Quote:
Originally Posted by keogk View Post
Thanks
I added the cpan module and now the .pl file runs.
I am still unsure how to make the plugin work with nagios but at least now I know the plugin works.
No problem. There should be documentation on the Nagios site, about getting plug-ins to work, as well as docs that came with the plug-in.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in installing nagios plugins prak86 Linux - Newbie 1 12-29-2009 02:04 AM
Help with nagios plugins anaigini45 Linux - Newbie 7 12-15-2009 02:29 AM
installing check_mysql and check_mem nagios plugins williebens Linux - Networking 15 07-31-2008 06:01 PM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM
after chnaging the ipaddress of nagios server new hosts adding error sridhar11 Linux - Software 0 10-26-2005 01:07 PM


All times are GMT -5. The time now is 02:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration