LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   nagios [some clarifications] (https://www.linuxquestions.org/questions/linux-newbie-8/nagios-%5Bsome-clarifications%5D-824522/)

Xanios 08-06-2010 02:47 AM

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 >.<

carltm 08-07-2010 01:56 PM

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.

Xanios 08-07-2010 09:22 PM

Hmm oh okay.
Thank you for the explanation.

by the way, do you know how to view the source codes for plugins?(:

carltm 08-07-2010 09:26 PM

Most plugins are scripts, so there is no source code. You can open
them with your favorite editor and see how they were written.

Xanios 08-07-2010 09:27 PM

how to open them with vi(m)? >.<
sorry.


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