Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8034751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:06:59+00:00 2026-06-05T02:06:59+00:00

I want to set Nagios (on my Debian) to verify a SharePoint server is

  • 0

I want to set Nagios (on my Debian) to verify a SharePoint server is up. I already tried to use cURL but it didn’t worked for some issue that I don’t know so I decided to change the way I’ll verify that service.

It’s simple in theory, I just have to make a script to send an request (http or https, doesn’t matter) and check the response, if is 200 for successful or 40x if not (ok at this point).

So I have to use telnet or any ftp service to do that or I can use another feature/tool for that.

With telnet I’am having problem with 400 error. SharePoint returns this error when server is up or down, so I don’t work for me.

Any ideas??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T02:07:00+00:00Added an answer on June 5, 2026 at 2:07 am

    I done my own way to check if SharePoint is UP or DOWN. Please pay attention that this script just checks the service status, nothing more like user permissions or whatever.

    Perl script:

    #!/usr/bin/env perl
    
    use strict;
    use warnings;
    use LWP::UserAgent;
    use Getopt::Long qw(:config no_ignore_case_always auto_version);
    
    GetOptions ('h=s' => \my $h);
    
    my $ua = LWP::UserAgent->new;
    $ua->agent('Mozilla/4.0 (compatible; MSIE 5.0; Windows 95)');
    
    my $req = $ua->get('http://' . $h);
    
    my $retorno = '';
    
    if ($req->is_success) 
    {
        $retorno = $req->content;
    }
    else
    {
        $retorno = $req->status_line;
    }
    
    if ($retorno eq "401 Unauthorized")
    { 
        print "OK: SharePoint service at " . $h . " server is UP.";
        exit 0;
    }
    else
    {
        print "CRITICAL: SharePoint service at " . $h . " server is DOWN.";
        exit 2;
    }
    

    In case you got this exception when you run the script:

    Can’t locate LWP/UserAgent.pm in @INC

    this article may help you as it helped me:

    http://help.directadmin.com/item.php?id=274

    So in Nagios commands.cfg file you’ll declare the command this way:

    command_line /usr/local/nagios/libexec/check_sharepoint.pl -h $HOSTADDRESS$

    Where $HOSTADDRESS is the host IP variable in Nagios scope.

    Remember to chmod +x on the file. I know you will…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want set default icon of some extension by C#. But this gives me
I want set Listbox background to transparent but not working Is there any idea?
i want set class for repeater when doPostBack for those dataID i wan but
i have a multiple marker Google map, it works fine but i want set
I want to set a repeating alarm monthly; but my app resets the alarm
I want to set the type of a list to be ints but I
i want set some fields, like updateDate, createDate and deleteDate, for each my entities,
I want set different access for different modules. I tried out $this->allow($role, $module, $controller,
I want set a border to Relativelayout. I make relativelayout clickable and use selector
i want set value of input type if condition is true but my function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.