How can i setup a monitor for an object on a site


Hi, i would like to monitor some web pages using nagios. I know how to setup a monitor for an httpd service but don’t have a clue on how monitor a page.

Any help is appreciated.



i just noticed that has a plugin called check_http_content, let me try to download it.


i have created an account at, even if i am logged in, unable to download it. Can any direct me on downloading a single plugin.



Yeah, I think something is wrong with that plugin page. Anyway there are few plugins of the same sort : … 1.html;d=1 … 6.html;d=1


Thank you very much for your help.

I have downloaded and put as a service but it seems not working… i think i am jumping it to high level without checking simple things first.

So i decided to configure a service check_ssh to monitor a remote server’s ssh

My configuation seems fine for the check_ssh, pre-flight goes fine. But i am receiving the following error messages in the log file and emails

[1224192495] SERVICE NOTIFICATION: nagiosadmin;;SSH;CRITICAL;notify-service-by-email;CRITICAL - Socket timeout after 20 seconds

Any idea how to resolve this.

check_ssh in a command line gives proper output.


Pls, post the check_ssh command definition and service definition from your configuration.


command definition

‘check_ssh’ command definition

define command{
command_name check_ssh
command_line $USER1$/check_ssh $ARG1$ $HOSTADDRESS$


define host{
host_name ; The name of this host template
alias test1
use generic-host ; This template inherits other values from the generic-host template
check_period 24x7 ; By default, Linux hosts are checked round the clock
check_interval 1 ; Actively check the host every 5 minutes
retry_interval 1 ; Schedule host check retries at 1 minute intervals
max_check_attempts 10 ; Check each Linux host 10 times (ma:evil:

define service{
use local-service ; Name of service template to use
service_description SSH
check_command check_ssh!-t 20!
check_period 24x7
check_interval 1
retry_interval 1
notification_options w,u,c,r,f
notification_interval 10
contact_groups unixadmins
notification_period 24x7
notifications_enabled 1


You could try like this. In command definition:
command_line $USER1$/check_ssh -t $ARG1$ -H $HOSTADDRESS$

And in service definition:
check_command check_ssh!20!

I suppose you have defined $USER1$ correctly.


thanks for your reply. Let me update it and reply.

Again…thank you very much


I have checked the resource.cfg, i do see the following entry.



Same error
[1224259528] SERVICE NOTIFICATION: nagiosadmin;;SSH;CRITICAL;notify-service-by-email;CRITICAL - Socket timeout after 20 seconds


When i am doing a manual check_ssh from the libexec directory, it is just fine.
bash-3.00# ./check_ssh -t 1 -H
SSH OK - OpenSSH_5.0 (protocol 1.99)


I am doing all stuff using the root user. Is it a requirement to use the “nagios” user when we are doing configuration ?


This is working now.

Thank you very much Albin


NP anair :slight_smile: