Check_nt performance counter
Posted: Fri Oct 05, 2018 5:11 am
Hi,
I have a check running to get the free disk space on a server which works fine, i then push this into Grafana and it all comes through with no problems
I'm wondering how i would go about changing the performance data that is collected though, at the moment it collects the used disk space but ideally i would want to to collect the free disk space
This is the data that shows in Nagios:
Status Information: c: - total: 119.66 Gb - used: 18.99 Gb (16%) - free 100.67 Gb (84%)
Performance Data: 'c:\ Used Space'=18.99Gb;101.71;113.67;0.00;119.66
The command that runs is:
define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
}
The check that runs is:
define service{
use generic-service
host_name FS01
service_description C:\ System Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 85 -c 95
}
The data i'm seeing being collected by Nagios is:
"metrics,command=check_nt,crit-fill=none,host=FS01,performanceLabel=c:\\\\ Used\\ Space,service=C:\\\\ System\\ Drive\\ Space,unit=Gb,warn-fill=none"
Any help on what I would need to change would be really appreciated
Thanks
I have a check running to get the free disk space on a server which works fine, i then push this into Grafana and it all comes through with no problems
I'm wondering how i would go about changing the performance data that is collected though, at the moment it collects the used disk space but ideally i would want to to collect the free disk space
This is the data that shows in Nagios:
Status Information: c: - total: 119.66 Gb - used: 18.99 Gb (16%) - free 100.67 Gb (84%)
Performance Data: 'c:\ Used Space'=18.99Gb;101.71;113.67;0.00;119.66
The command that runs is:
define command{
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
}
The check that runs is:
define service{
use generic-service
host_name FS01
service_description C:\ System Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 85 -c 95
}
The data i'm seeing being collected by Nagios is:
"metrics,command=check_nt,crit-fill=none,host=FS01,performanceLabel=c:\\\\ Used\\ Space,service=C:\\\\ System\\ Drive\\ Space,unit=Gb,warn-fill=none"
Any help on what I would need to change would be really appreciated
Thanks