Windows Network Interface
Posted: Sat Oct 03, 2015 4:57 am
On Nagios Server:
[root@monitor libexec]# ./check_win_network -H IP_Address -p 12489 -i "Realtek PCIe GBE Family Controller" -o KB
Network OK - 21 KBytes received/sec, 408 KBytes sent/sec|bytes_in=22023;bytes_out=418445
But when i put in command definition it shows: (No output returned from plugin)
Command Definition:
#check network usage in windows
define command{
command_name check_win_network
command_line $USER1$/check_win_network -H $HOSTADDRESS$ -c CheckWMI -a '$ARG1$' $ARG2$
}
Service Definition:
define service {
use generic-service
host_name winserver-2012
service_description Network Interface
check_command CheckWMI!path=check_win_network -H IP-Address -p 12489 -c check_wmi -i "Realtek PCIe GBE Family Controller" -o KB
}
[root@monitor libexec]# ./check_win_network -H IP_Address -p 12489 -i "Realtek PCIe GBE Family Controller" -o KB
Network OK - 21 KBytes received/sec, 408 KBytes sent/sec|bytes_in=22023;bytes_out=418445
But when i put in command definition it shows: (No output returned from plugin)
Command Definition:
#check network usage in windows
define command{
command_name check_win_network
command_line $USER1$/check_win_network -H $HOSTADDRESS$ -c CheckWMI -a '$ARG1$' $ARG2$
}
Service Definition:
define service {
use generic-service
host_name winserver-2012
service_description Network Interface
check_command CheckWMI!path=check_win_network -H IP-Address -p 12489 -c check_wmi -i "Realtek PCIe GBE Family Controller" -o KB
}