Plugin for System Uptime

Askar Ali askarali at beaconet.net
Sat Jul 16 16:07:44 CEST 2005


Marc Powell wrote:

>  
>
>>-----Original Message-----
>>From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
>>admin at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H.
>>Sent: Friday, July 15, 2005 3:50 PM
>>To: nagios-users at lists.sourceforge.net
>>Subject: [Nagios-users] Plugin for System Uptime
>>
>>What plugin would be the one to use to monitor the uptime of several
>>remote
>>hosts? The hosts in question are Linux and HP-UX.
>>    
>>
>
>There's a check_uptime plugin in the contrib. folder. I've never used it
>but it's there.
>
>--
>Marc
>
>
>-------------------------------------------------------
>SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
>from IBM. Find simple to follow Roadmaps, straightforward articles,
>informative Webcasts and more! Get everything you need to get up to
>speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
>_______________________________________________
>Nagios-users mailing list
>Nagios-users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/nagios-users
>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
>::: Messages without supporting info will risk being sent to /dev/null
>
>
>  
>
Yep you can use check_uptime from /libexec, however on remote hosts I 
would suggest you to use "nrpe". That way you nagios machine sends 
request to nrpe daemon running on remote host which in turn call a local 
plugin for a specific task say check_users, check_uptime etc.
For check_uptime you must read the script where the auther of the plugin 
explain how you could use it, check_uptime use nmap -0 which must be run 
as root, in my case i'm running nrpe as nobody user on remote host. So i 
have to put an entry in /etc/sudoers

nobody <hostname>=NOPASSWD:/usr/bin/nmap

otherwise you will get an no uptime from host.

I hope this would helps

Regards

Askar Ali


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list