my goal is to check the time of a windows machine and compare it to domain controller or ntp server.
- if the difference is greater then 2mins i would like for it to alert me.
is this possible without adding bat file or ps script to every single host that i am trying to check.
Search found 40 matches
- Mon Feb 21, 2022 3:00 pm
- Forum: Nagios XI
- Topic: checking local host time
- Replies: 1
- Views: 406
- Fri Feb 18, 2022 1:26 pm
- Forum: Nagios XI
- Topic: checking services with nrpe
- Replies: 5
- Views: 1815
Re: checking services with nrpe
Thanks for that keith, -a "filter=name like str(MSSQL\$WORKER)" "crit=state ne str(running)" worked great for me.
- Wed Feb 16, 2022 6:02 pm
- Forum: Nagios XI
- Topic: checking services with nrpe
- Replies: 5
- Views: 1815
Re: checking services with nrpe
Hi localit, It looks like the the shell is probably interpreting the "$" and is replacing the rest of the string with the contents of the variable "$WORKER" which probably doesn't exist. So the string that ends up being passed on is "MSSQL". Please find our knowledge b...
- Wed Feb 16, 2022 10:42 am
- Forum: Nagios XI
- Topic: checking services with nrpe
- Replies: 5
- Views: 1815
checking services with nrpe
I am having a problem checking a particular service via nrpe. I am looking to see if this service is running or not. -a "filter=name like str(MSSQL$WORKER)" "crit=state ne str(running)" but its also detecting the service MSSQL$SQLEXPRESS how can i make the argument where it looks...
- Fri Nov 19, 2021 10:27 am
- Forum: Nagios XI
- Topic: scripts on the Nagios server
- Replies: 9
- Views: 2444
Re: scripts on the Nagios server
thanks for help ssax, please see response from Jeffery that helped me. i just installed ncpa and powershell on linux server and used ps1 as plugin to run the script and create a service in Nagios. At the end of your ncpa.cfg file, you probably have something like this: CODE: SELECT ALL # Windows .ps...
- Thu Nov 18, 2021 3:54 pm
- Forum: Nagios XI
- Topic: monitoring ps1 script on linux
- Replies: 3
- Views: 989
Re: monitoring ps1 script on linux
ty very much, that's exactly what i needed to know. Works perfect!
- Thu Nov 18, 2021 2:58 pm
- Forum: Nagios XI
- Topic: monitoring ps1 script on linux
- Replies: 3
- Views: 989
monitoring ps1 script on linux
is there a way to monitor or run a .ps1 script on a centos/linux server using ncpa client or another tool? i have ps1 installed on my centos server and the script is working. i am trying to set this up as service in Nagios to monitor. can anyone help me achieve this ? https://support.nagios.com/foru...
- Thu Nov 18, 2021 10:13 am
- Forum: Nagios XI
- Topic: scripts on the Nagios server
- Replies: 9
- Views: 2444
Re: scripts on the Nagios server
Ssax, is it possible to run powershell scripts with the nrpe agent or the ncpa agent for linux ?
- Thu Nov 18, 2021 10:09 am
- Forum: Nagios XI
- Topic: scripts on the Nagios server
- Replies: 9
- Views: 2444
Re: scripts on the Nagios server
I understand its not part of support just seeing my options. once i have PowerShell on my nagios/centos server what nagios tool can i use in order run the script from the actual centos/linux server ? is it possible to install nsclient on a linux server or what have people done for linux server in th...
- Tue Nov 16, 2021 12:19 pm
- Forum: Nagios XI
- Topic: scripts on the Nagios server
- Replies: 9
- Views: 2444
Re: scripts on the Nagios server
Hello Ssax, i know how to run it on a windows device. I am trying to take this off the laptop and run it strictly from the centos server that my nagios xi sits on. Is this possible ?