check_ms_windows_disk_load

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: check_ms_windows_disk_load

Post by JohnFLi »

I got it! The issue must be in the nsclient INI file.

Code: Select all

check_updates=cmd /c echo C:\scripts\Check-Updates.ps1; exit $LastExitCode | powershell.exe -command -
check_ms_diskload=cmd /c echo C:\scripts\check_ms_windows_disk_load.ps1 $ARG1$; exit $LastExitCode | powershell.exe -command –
The "check_updates" checks for windows updates. -------------------- That one works

so I renamed the "Check-Updates.ps1" to something else.
then I renamed "check_ms_windows.ps1" to "Check-Updates.ps1"

In Nagios, I forced the check for the check-updates and it worked!!

Next, I set the file names back correctly.
opened the ini file and manually retyped the line for the diskload (leaving out $ARG1$) using notepad++
saved, restart the service, and tried again......
now it works.....oy
Everybody is somebody else’s weirdo
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: check_ms_windows_disk_load

Post by WillemDH »

Hello,

You need to supply at least one argument, due to the external command in nsclient.ini including $ARG1$

Provide this in $arg1$ => '-H localhost -ms 5 -dl C'

Grtz

Willem
Nagios XI 5.8.1
https://outsideit.net
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_ms_windows_disk_load

Post by lmiltchev »

I am glad your issue has been resolved, JohnFLi! Is it safe to lock the topic?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
JohnFLi
Posts: 559
Joined: Mon Jun 17, 2013 3:11 pm

Re: check_ms_windows_disk_load

Post by JohnFLi »

yes, feel free to lock
Everybody is somebody else’s weirdo
Locked