LinuxQuestions.org
Visit Jeremy's Blog.
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 08-06-2010, 02:47 AM   #1
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Rep: Reputation: 30
nagios [some clarifications]


hello, i need some clarifications here.

i saw this link > http://www.behrens.in/download/check...estatus.pl.txt, is that used to update the services to either OK, CRITICAL, WARNING and UNKNOWN etc? And, in this part:

Code:
# Get the scoreboard
  my $ScoreBoard = "";
  $i = 0;
  my $PosPreBegin = undef;
  my $PosPreEnd = undef;
  while (($i < @webcontentarr) && ((!defined($PosPreBegin)) || (!defined($PosPreEnd)))) {
    if (!defined($PosPreBegin)) {
      if ( $webcontentarr[$i] =~ m/<pre>/i ) {
        $PosPreBegin = $i;
      }
    }
they mentioned about scoreboard, what exactly is that code used for? i don't understand >.<
 
Old 08-07-2010, 01:56 PM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 97
Yes, this looks like a typical Nagios plugin that reports the status
as you describe.

I suspect that the scoreboard is the status page delivered by apache
which is used by the script to show the health of apache.

I looked and could not find any documentation for this script. I'd
suggest avoiding any program or script that isn't documented. I'm
sure there are other equally good plugins for apache.
 
Old 08-07-2010, 09:22 PM   #3
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
Hmm oh okay.
Thank you for the explanation.

by the way, do you know how to view the source codes for plugins?(:
 
Old 08-07-2010, 09:26 PM   #4
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 703

Rep: Reputation: 97
Most plugins are scripts, so there is no source code. You can open
them with your favorite editor and see how they were written.
 
Old 08-07-2010, 09:27 PM   #5
Xanios
Member
 
Registered: Jul 2010
Posts: 216

Original Poster
Rep: Reputation: 30
how to open them with vi(m)? >.<
sorry.
 
  


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
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 07:26 AM
clarifications about fork() BlueSkull Programming 4 06-29-2010 07:23 AM
Some clarifications Gins Programming 2 08-28-2006 05:20 AM
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
initrd clarifications titopoquito Slackware 2 10-05-2005 09:17 AM


All times are GMT -5. The time now is 04:27 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