NRPE Assistance
Posted: Wed Dec 23, 2015 11:47 pm
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.
VBS Code:
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.
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?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)+
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