Newbie WMI question\issue
Posted: Tue Aug 27, 2013 2:21 am
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
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