Replies: 6 comments
-
Hiya, It is primarily replacing the We have example client scripts here: https://github.com/infraweavers/monitoring-agent-scripts I've also just pushed a few remote-script examples that we use to that repository (i.e. these are the plugins that would traditionally be executed with NRPE) -https://github.com/infraweavers/monitoring-agent-scripts/tree/main/remote-scripts We have a go implementation (for performance reasons) of the client here: https://github.com/infraweavers/monitoring-agent-client (this is effectively the re-implemented check_nrpe) |
Beta Was this translation helpful? Give feedback.
-
Something that just came to mind that informs this conversation is that we currently have a branch that supports windows performance counters natively (as we still use NSClient++ in production for this at current, branch is:https://github.com/infraweavers/monitoring-agent/tree/os_specific_extension).
We would create another plugin that is similar in spirit to We're planning on switching out to use this in the next few months so we can remove NSClient++ entirely from our estate |
Beta Was this translation helpful? Give feedback.
-
I tried to setup a check with check_disks.ps1
But when i run a command, i get:
The script (ps1 in this case) has to reside on the monitoring server's side, right? Because if i provide it as the path where i installed it on the windows server, i get:
I tried this:
So it looks like --script is mandatory and the script to run always has to reside on the monitoring server's side. Could you please show an example how one would run a powershell script which is installed on the windows server? |
Beta Was this translation helpful? Give feedback.
-
Hiya,
If you set
Correct, we've built this so that we have a central repository of plugins and scripts etc which are all on the monitoring box so we can deploy them in one place without doing infrastructure-wide deployments to update them etc. That said, it does support executing the script on the remote server however the plugins might not be built in a way that makes it obvious. Apologies this is quite messy from a blank user perspective as we've always used |
Beta Was this translation helpful? Give feedback.
-
Actually, it already exists (https://github.com/infraweavers/monitoring-agent-scripts/blob/main/check_via_monitoring-agent.pl). Just to clarify the differences:
The annoying caveat of windows is that scripts aren't themselves executable, you "want" to do something like:
however that will just return. You have to run powershell as an executable with the file passed in, so something like:
So those commands worked for me with |
Beta Was this translation helpful? Give feedback.
-
Hi Infraweavers? Something different...in the past there was an annual "Monitoring Workshop" of the german speaking community, last time it took place was 2019. We (Consol) are planning to reinstate this tradition and want to organize it in Q2/2024. The location will probably be in Heilbronn. If there are germans in your infraweavers team interested in joining us, then contact me at gerhard.lausser@consol.de :-) |
Beta Was this translation helpful? Give feedback.
-
Hi,
did i not look carefully enough or aren't there any examples of typical windows scripts? Like cpu, memory, disk. If this agent is supposed to replace NSClient++, did you create a set of (ideally compatible regarding output and performance data) scripts for your internal use? Would it be possible to show them publicly?
Beta Was this translation helpful? Give feedback.
All reactions