I have been working this problem for a few days now.  I have read a number of 
forums and other posts from others who have had the same problem but can not 
get this working.

Using Nagios Core 3.3.1 runing on CentOS 6.2


Attempting to monitor a windows server and get counter information on pagefile 
usage, once solved I will add other commands just need to understand the basics.

Receive this error

Checking services...
Error: Service check command 'check_nt -H onc01 -p 12489 -v COUNTER -l 
"\\Paging File(_Total)\\%% Usage","Paging file usage is %.2f %%" -w 80 -c 90' 
specified in service 'Pagefile' for host 'onc01' not defined anywhere!


>From a file called hosts-others.cfg  where I define my host


define host {
        use             generic-host            ;Template Used
        host_name      onc01
        alias         onc01
        address         192.168.XXX.XXX
        check_command   check-host-alive
        max_check_attempts      10
        notification_interval   120
        notification_period     24x7
        contact_groups          admins
        notification_options    d,r
        }


define service{
        use                     generic-service
        host_name               onc01
        service_description     Pagefile
        check_command           check_nt -H onc01 -p 12489 -v COUNTER -l 
"\\Paging File(_Total)\\%% Usage","Paging file usage is %.2f %%" -w 80 -c 90
        }



>From  command.cfg

define command{
        command_name    check_pagefile
        command_line    $USER1$/check_nt -H onc01 -p 12489 -v COUNTER -l 
"\\Paging File(_Total)\\%% Usage","Paging file usage is %.2f %%" -w 80 -c 90'
        }



Thanks
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to