-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPU usage not working (Win/IIS) #214
Comments
@kbostick88 are there any relevant entries in the PHP logs? Also, do you by chance have GIT installed? https://github.com/Monitorr/Monitorr/wiki/01-Config:--Initial-configuration#prerequisites |
@seanvree I have all the PHP dependancies installed, I did also install GIT, the command for Uptime comes back with my uptime as expected. It appears this is an issue with Monitorr working with IIS, I installed Monitorr using IIS on 3 different servers, same result on all of them. I installed WAMPS on 2 of them, and both CPU stats immediately started working. |
@kbostick88 you might be right. I've been running some tests w/ IIS on Win10 and I can't get the CPU usage to work either. Last time I KNOW it worked on IIS was ~Feb 19 (I normally run IIS as I'm an MS guy). I hadn't been running Monitorr lately as I've been busy with my day job and must have missed a change/update somewhere. I rolled back PHP to a version that I KNOW worked, but that is not returning values, so it might be GIT or a security feature in IIS/Windows. Just to be clear you CAN run both of these commands from a normal CMD prompt, right?
I'll keep you updated. |
Okay, figured this out...partially. It looks like there was an update to the default security settings/perms for IIS and/or PHP To get around this you need to change the perms of the IIS DefaultAppPool Identity to "LocalService" or "LocalSystem". I recommend "LocalService" for the time being. Make sure you read up on the security implications of this. Change the following value: Make sure to restart IIS after changing that value. |
I missed your last email, I apologize for the delay. Yes the git commands work, and it works perfectly with WAMPS just not IIS but, it looks like you found the issue, I will review the implications and see what option will be better, IIS or WAMPs. Thank you!!
…Sent from my iPhone
On Dec 21, 2019, at 3:32 AM, Sean Vreeland ***@***.***> wrote:
@kbostick88 you might be right.
I've been running some tests w/ IIS on Win10 and I can't get either uptime or CPU usage to work. Last time I KNOW they both worked on IIS was ~Feb 19 (I normally run IIS as I'm an MS guy). I hadn't been running Monitorr lately as I've been busy with my day job and must have missed a change somewhere.
I rolled back PHP to a version that I KNOW worked, but that is not returning values, so it might be GIT or a security feature in IIS/Windows.
Just to be clear you CAN run both of these commands from a normal CMD prompt, right?
wmic cpu get loadpercentage /all
cut -d. -f1 /proc/uptime
I'll keep you updated.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I have set up Monitorr on IIS again instead of WAMPS and the issue is still there. running the GIT command pulls the CPU % but in the app, it is not updating - just sits at 0% I have a buddy that installed Monitorr on his Server 19 build with IIS - same issue |
@kbostick88 can you copy the contents of the applicationHost.config file to a GIST and post the link?
Also, a screenshot of IIS mgr like I posted above would help. Thanks, |
@kbostick88 I deleted your previous reply - you need to delete that GIST asap. It has some raw passwords in it. Also, I'm not sure how savvy you are with IIS, but on line 142-147 you have two diff appPools listed - which one is Monitorr running on? Also, I don't see a screenshot anywhere? |
Thanks for the heads up, i glanced over it but didn't see any passwords but
i guess i missed them. i deleted it. I am running Monitorr on the bozflix
pool (the default one is not in use)
…On Thu, Feb 6, 2020 at 2:42 PM Sean Vreeland ***@***.***> wrote:
@kbostick88 <https://github.com/kbostick88> you need to delete that GIST
asap. It has some raw passwords in it.
Also, I'm not sure how savvy you are with IIS, but on line 142-147 you
have two diff appPools listed - which one is Monitorr running on?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#214?email_source=notifications&email_token=AEHJQPC5YNLRTKQYSGQYVPLRBRR4HA5CNFSM4J2WPWR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELAQUHI#issuecomment-583076381>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEHJQPHD6YA3TA35WMYNB7DRBRR4HANCNFSM4J2WPWRQ>
.
|
So, like I said, a screenshot of the bozflix AppPool properties would help. Also, I'm not sure if this would make a diff, but this is what my appPool's config is:
Mine is working, so I would suggest trying to replicate those settings (besides the name) into your applicationHost.config file to see if that works. Make sure you make a backup and restart IIS anytime you make changes to the file and/or appPool properties. Also, can you browse to |
Hey Sean,
I am not great with all this stuff and some of it is a bit over my head. So
I apologize if these are dumb or obvious questions.
I sent a screen shot of the bozflix app pool in the email with the link to
my gist
As far as your code snip goes, where would i check that?
I can not get the screen shot you sent to show up. I find one similar if i
go to the website, and click on Monitorr Settings But its really small and
I can't read it very well. ...SQ3 is in Red - It used to be green, and i am
not sure how to fix that.
it looks like i am on PHP 7.4.1 i am not sure if that makes a difference
Lastly, I do not have a php.ini file in my C:\IIS_Websites\assets\php
directory (where i installed Monitorr)
Is there a chat/message platform we can chat on to try and sort this out
instead of email?
…On Thu, Feb 6, 2020 at 3:26 PM Sean Vreeland ***@***.***> wrote:
@kbostick88 <https://github.com/kbostick88>
So, like I said, a screenshot of the bozflix AppPool properties would help.
Also, I'm not sure if this would make a diff, but this is what my
appPool's config is:
<add name="DefaultAppPool" autoStart="true" managedRuntimeVersion="v4.0" startMode="OnDemand">
<processModel identityType="LocalService" />
</add>
Mine is working, so I would suggest trying to replicate those settings
(besides the name) into your applicationHost.config file to see if that
works. Make sure you make a backup and restart IIS anytime you make changes
to the file and/or appPool properties.
Also, can you browse to and post a screenshot of your php.ini file in your
Monitorr directory at:
assets/php/php.ini
[image: image]
<https://user-images.githubusercontent.com/8906637/73975571-da920480-48e3-11ea-954c-be69ca688ce6.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#214?email_source=notifications&email_token=AEHJQPE3K23YY5MAMLRGXXLRBRXAHA5CNFSM4J2WPWR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELAVDHA#issuecomment-583094684>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEHJQPEUQIAR4FKYTQFQNL3RBRXAHANCNFSM4J2WPWRQ>
.
|
@kbostick88 are you on discord by chance? Here's the Monitorr server: https://discord.gg/YKbRXtt When you get in there, shoot me a message. |
Your environment:
Operating system: Windows Server 2019 build 1809
Webserver: IIS
PHP Version: 7.3.7
Monitorr Version: 1.7.6m
Describe your issue:
I have read the t-shooting Wiki at: https://github.com/Monitorr/Monitorr/wiki/06-Troubleshooting
I installed Monitorr for the second time on a new SSD, when I installed it, my CPU usage is not being updated. RAM, HD and Uptime are all working correctly. but CPU is at 0%
The text was updated successfully, but these errors were encountered: