LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Adding plugins to Nagios (https://www.linuxquestions.org/questions/linux-general-1/adding-plugins-to-nagios-817032/)

keogk 06-29-2010 01:45 PM

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

TB0ne 06-29-2010 03:15 PM

Quote:

Originally Posted by keogk (Post 4018531)
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/

keogk 06-29-2010 03:30 PM

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.

TB0ne 06-29-2010 05:50 PM

Quote:

Originally Posted by keogk (Post 4018640)
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.


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