LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-06-2012, 06:28 AM   #1
waelkd
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Rep: Reputation: 0
Perl Scripts in nagios


Hye,

I am completely new to this, i wish to write some perl scripts. i.e script to fetch data between two dates.
another script to show when all CPU's are working above 80%

and 3rd script informing me when a harddisk switched to idle mode.


whats the 1st steps i should take into consideration look into? your help guys is mostly appreciated.

Thanks
 
Old 06-06-2012, 08:43 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
You do realize Nagios comes with a load of pre-written scripts (in my case /usr/local/nagios/libexec dir) official plugins page http://nagiosplugins.org/man and more are avail from http://exchange.nagios.org/directory/Plugins.

Specifically for your qns:

1. cpu; given how much cpu percentages rapidly vary over very short times, you would be flooded with alerts.
I recommend check_load instead

2. I didn't know disks had an idle mode ..

Official Plugins HOWTO guide http://nagiosplug.sourceforge.net/de...uidelines.html
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios Perl scripts edwardcode Linux - Software 14 04-12-2013 03:57 PM
Running a Perl script on nagios waelkd Linux - Newbie 1 05-16-2012 09:37 AM
[SOLVED] nagios new install doesn't find CGI scripts catkin Linux - Software 1 10-25-2011 06:40 AM
Perl - executin all perl scripts in a specific folder aocferreira Programming 1 04-27-2011 12:57 PM
AD user login to Nagios - unable to execute CGI scripts in apache dbmacartney Linux - Server 1 10-07-2009 04:33 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration