<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hey all!<br><br>I want to thank you all for the lovely help i got in my previous errand. It was NSCA that was missconfigured on one line, or more imporatly, one complete line was gone :) Now the NSCA passive checks work flawlessly, almost anyway.<br>I can monitor CPU, memory and services, the only thing im getting problems with is hard-drive monitoring.<br><br>These are the commands I've  chosen, but the disk command doesn't write anything out in nagios. Down below are a sample from nagios .cfg file also.<br>From what i've read is that nagios treats the passive checks just as a normal queue as from a active check, so i believe i need a service for every host, as I would for a active check?<br><br>Any idea what ive done wrong on the harddrive config?<br><br><b>From NSClient:</b><br>[NSCA Commands]<br>CPU Load=alias_cpu<br>host_check=check_ok<br>Memory Usage=alias_mem<br>Uptime=alias_up<br>Drive space=alias_disk<br>Service check=alias_service<br><br>[External Alias]<br>alias_cpu=checkCPU warn=80 crit=90 time=5m time=1m time=30s<br>alias_cpu_ex=checkCPU warn=$ARG1$ crit=$ARG2$ time=5m time=1m time=30s<br>alias_disk=CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED<br>alias_service=checkServiceState CheckAll<br>alias_process=checkProcState $ARG1$=started<br>alias_mem=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=physical<br>alias_up=checkUpTime MinWarn=1d MinWarn=1h<br>alias_file_age=checkFile2 filter=out "file=$ARG1$" filter-written=>1d MaxWarn=1 MaxCrit=1 "syntax=%filename% %write%"<br>alias_file_size=checkFile2 filter=out "file=$ARG1$" filter-size=>$ARG2$ MaxWarn=1 MaxCrit=1 "syntax=%filename% %size%"<br>alias_file_size_in_dir=checkFile2 filter=out pattern=*.txt "file=$ARG1$" filter-size=>$ARG2$ MaxWarn=1 MaxCrit=1 "syntax=%filename% %size%"<br>alias_event_log_old=CheckEventLog file=application file=system filter=new filter=out MaxWarn=1 MaxCrit=1 filter-generated=>2d filter-severity==success filter-severity==informational truncate=800 unique descriptions  "syntax=%severity%: %source%: %message% (%count%)"<br>alias_event_log_new=CheckEventLog file=application file=system MaxWarn=1 MaxCrit=1 "filter=generated gt -2d AND severity NOT IN ('success', 'informational')" truncate=800 unique descriptions "syntax=%severity%: %source%: %message% (%count%)"<br>alias_event_log=alias_event_log_new<br><br><br><b>From the host.cfg file from nagios</b><br>define service{<br>        use                     generic-service<br>        host_name               ILSERVER<br>        service_description     C:\ Drive Space<br>        check_command           check_nt!USEDDISKSPACE!-l c -w 80 -c 90<br>        }<br><br>                                     </body>
</html>