Unable to solve problem

Ftlnagios ftlnagios at gmail.com
Fri Feb 17 22:43:03 CET 2012


For your check_command in Define service put check_pagefile As defined by command_name in your commands.cfg 


Sent from My Samsung Galaxy

-------- Original message --------
Subject: [Nagios-users] Unable to solve problem 
From: "Curtis E. Hutson" <Curtis.Hutson at oncimmune.com> 
To: "nagios-users at lists.sourceforge.net" <nagios-users at lists.sourceforge.net> 
CC:  

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120217/fd359d10/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
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/
-------------- next part --------------
_______________________________________________
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