Search found 521 matches
- Tue Jan 02, 2018 2:07 pm
- Forum: Nagios XI
- Topic: Check for multiple instances of a running program
- Replies: 5
- Views: 437
Re: Check for multiple instances of a running program
you can go ahead and close this item. I got thinking over the weekend that since I'm wanting to check this against a windows machine, why not do it in powershell. so in powershell I came up with this simple little script: param($num, $executablename) $ErrorActionPreference = "SilentlyContinue&q...
- Fri Dec 29, 2017 4:16 pm
- Forum: Nagios XI
- Topic: Check for multiple instances of a running program
- Replies: 5
- Views: 437
Re: Check for multiple instances of a running program
in therory the plugin from exchange.nagios would work, except the website that has the 2 other part that is needed, doesn't exist anymore This plugin relied on two specific pieces to work properly if at all: NC_Net (http://http://www.shatterit.com/nc_net/) on the client and check_nt (http://www.shat...
- Fri Dec 29, 2017 3:29 pm
- Forum: Nagios XI
- Topic: Check for multiple instances of a running program
- Replies: 5
- Views: 437
Check for multiple instances of a running program
I need a check that will alert if 15 or more instantnaces of cmd.exe is running on a host. We have a system that runs several bat files on another system (thus using cmd.exe) The calling system is able to check to insure it's running, but if it 'hangs' the calling system will start another instance....
- Tue Oct 10, 2017 3:58 pm
- Forum: Nagios XI
- Topic: Run Powershell on critical check
- Replies: 6
- Views: 621
Re: Run Powershell on critical check
go ahead and close this thread as it isn't providing anything usefull
- Tue Oct 10, 2017 3:21 pm
- Forum: Nagios XI
- Topic: Run Powershell on critical check
- Replies: 6
- Views: 621
Re: Run Powershell on critical check
The only thing I see in there shows directly running the 'event handler', not running it IF a state is critical. In the example from that link.....the test check is running a .sh file so basicly, I don't see on how running a script each time (no matter if its up, down or sideways) is anything differ...
- Tue Oct 10, 2017 2:14 pm
- Forum: Nagios XI
- Topic: Run Powershell on critical check
- Replies: 6
- Views: 621
Run Powershell on critical check
I have some basic Nagios checks that run against windows servers......C drive, cpu, memory etc.....
but what I want to do is if a check (CPU for example) returns with a critical, then I want a powershell script to run.
How to??
but what I want to do is if a check (CPU for example) returns with a critical, then I want a powershell script to run.
How to??
- Thu Sep 28, 2017 1:56 pm
- Forum: Nagios XI
- Topic: Kill Windows Process
- Replies: 10
- Views: 1369
Re: Kill Windows Process
the issue i am currently having is getting the CPU for a specific process. Once that process is using over 95% cpu, then I can kill it. if I run (in powershell) Get-Process | Sort CPU -descending | Select -first 1 -Property ID,CPU,ProcessName it will tell me what process is teh highest cpu usage. Bu...
- Thu Sep 28, 2017 12:22 pm
- Forum: Nagios XI
- Topic: Kill Windows Process
- Replies: 10
- Views: 1369
Re: Kill Windows Process
but I need to check to see if it's cpu% has surpassed 95% before killing it
- Thu Sep 28, 2017 12:09 pm
- Forum: Nagios XI
- Topic: Kill Windows Process
- Replies: 10
- Views: 1369
Re: Kill Windows Process
either way is fine.
I'm thinking a powershell script on the machine itself would be easiest.
In trying to figure this out myself i've been testing with the process "notepad.exe"
I'm thinking a powershell script on the machine itself would be easiest.
In trying to figure this out myself i've been testing with the process "notepad.exe"
- Thu Sep 28, 2017 11:45 am
- Forum: Nagios XI
- Topic: update error: PHP Fatal error
- Replies: 20
- Views: 2744
Re: update error: PHP Fatal error
this item can be closed....thantk you