Uptime for linux host


#1

hello,

Can anyone tell me,whether we can monitor uptime for linux host ??
If yes,how ??

Thanks in Advance


#2

Nagios plugins contains a plugin called “check_uptime”…

If you compiled from source, you’ll need to make sure it was included in what was compiled (it’s in contrib plugins).
If you installed from precompiled packages, check if it’s included… you may need to look further…

You’ll also need to make sure the relevant command definition is added to your nagios config, but either way, look for more info on “check_uptime”.


#3

Hey Thanks for ur reply.
But i cldn’t get the plugin ‘check_uptime’.
Checked it in pligin versions ‘1.4.13’ ,‘1.4.12’ as well in ‘1.4.11’.
Can u tell me exactly,where i can get it ??

Thanks.


#4

[quote=“suchi”]Hey Thanks for ur reply.
But i cldn’t get the plugin ‘check_uptime’.
Checked it in pligin versions ‘1.4.13’ ,‘1.4.12’ as well in ‘1.4.11’.
Can u tell me exactly,where i can get it ??

Thanks.[/quote]

In 1.4.13 under contrib, there’s a file, check_uptime.c - this is the uncompiled, source code version.


#5

Hey Thanks for the information.
Can you guide me,how to compile this check_uptime.c source code ??