NRPE Assistance

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
thecountrylife08
Posts: 15
Joined: Wed Dec 23, 2015 9:50 pm

NRPE Assistance

Post by thecountrylife08 »

I did my best to check and search to make sure I do not repost, so my apologize if this is a repost.

I am using NRPE to monitor a Windows Server, I want to know what the status of the updates are. For the most part it is working correctly, the issue comes in with the return data for Status Information it displays all lumped together like this.
OK: Number of critical updates not installed: 2 <br />Number of software updates not installed: 0 <br /> Critical updates name: Windows Malicious Software Removal Tool - October 2015 (KB890830)+ Windows Server 2008 Service Pack 2 (KB948465)+
I tried replacing the code inside the VBS script from <br /> to n\ and <n\> when I did this Nagios displayed status information as "Syntax Error". Any helpful hints for someone who does not mess with VBS often?

VBS Code:

Code: Select all

If intUncompleted > 0 Then
	return_code = np.check_threshold(intUncompleted)
	np.nagios_exit "Number of critical updates not installed: " & intUncompleted & " <br />Number of software updates not installed: " & intUncompletedSoftware & " <br /> Critical updates name: " & updatesNames, return_code
Else
	np.nagios_exit "There is no critical updates <br />Number of software or driver updates not installed: " & intUncompletedSoftware, OK
End If
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NRPE Assistance

Post by hsmith »

Can you try to wrap the newline in quotes? something like this: '\n'
Former Nagios Employee.
me.
Locked