Hi all,
I have recently downloaded the Nagios VMware image and have attempted to setup some WMI monitoring for our servers. I keep running into the same issue. I add the WMI CPU monitor for example and keep getting status unknown. Here are some more details:
"UNKNOWN - Permission denied when trying to store the state data. Sometimes this happens if you have been testing the plugin from the command line as a different user to the Nagio process user. You will need to change the permissions on the file or remove "
"UNKNOWN - Permission denied when trying to store the state data. Sometimes this happens if you have been testing the plugin from the command line as a different user to the Nagio process user. You will need to change the permissions on the file or remove it. The actual error text is: can't create /tmp/cwpss_checkcpu_172163111___.state: Permission denied at /usr/local/nagios/libexec/check_wmi_plus.pl line 1740"
My nagiosadmin account has administrator and domain admin rights, and this issue happens to all servers I try to monitor. I know its not an issue with the WMI on the servers as our SCCM 2012 is using WMI and that is all working 100%.
I am a beginner to Nagios and WMI scripting so was hoping to use the graphical interface as much as possible.
Any suggestions to where I am going wrong? I am adding the WMI monitor via the wizard..
Thanks
Newbie WMI question\issue
Re: Newbie WMI question\issue
It's possible that the check is just fine, but testing the command from within the CCM fails. Go to the "/tmp/" directory, remote the temp check files, and run the check from the command line (not within the CCM). The "Test Check Command" in the CCM doesn't work for ALL checks, since it is run as the apache user.
Be sure to check out our Knowledgebase for helpful articles and solutions!