Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
[root@livm51 plugins]# ./check_wmi_plus.pl -H xxx.xxx.xxx.xxx -m checkdrivesize -u username -p pwd
UNKNOWN - Plugin Timed out (15 sec). There are multiple possible reasons for this, some of them include - The host 192.168.19.154 might just be really busy, it might not even be running Windows.
Here is what I get when I turn OFF my Windows machine firewall:
[root@livm51 plugins]# ./check_wmi_plus.pl -H xxx.xxx.xxx.xxx -m checkdrivesize -u username -p pwd
UNKNOWN - The WMI query had problems. You might have your username/password wrong or the user's access level is too low. Wmic error text on the next line.
[wmi/wmic.c:196:main()] ERROR: Login to remote object.
NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied
To answer your first question - yes the instructions are the same for Core and XI
To answer your second question/issue - I suspect you're not running your command prompt as administrator. You must be an admin to create local users on the Windows host.
Now I am at the end setting up the Windows Firewall. I have a Windows 8.1 machine I was trying to follow Windows XP instructions but its not the same on Windows 8.1
I went to this window (shown attached screen shot) of the Windows 8.1 firewall settings. Is this the same as opening Port 135?
[root@livm51 plugins]# ./check_wmi_plus.pl -H xxx.xxx.xxx.xxx -m checkcpu -u username -p pwd
Collecting first WMI sample because the previous state data file (/usr/tmp/cwpss_checkcpu__19216819154___.state) contained no data. Results will be shown the next time the plugin runs.
[root@livm51 plugins]#
[root@livm51 plugins]# ./check_wmi_plus.pl -H xxx.xxx.xxx.xxx -m checkcpu -u username -p pwd
OK (Sample Period 17 sec) - Average CPU Utilisation 5.59%|'Avg CPU Utilisation'=5.59%;
[root@livm51 plugins]#
Funny thing the Windows "advfirewall" commands works after I used your "firewall" command see screen shot attached.
Thank you for your AWESOME help jdalrymple! You were really amazing in how fast you responded to all my questions! Thank you very much!