Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
corcoran
This script dumps out without errors on Ubuntu. Have tried to contact the author with no response. Sad as it'd be TOP USEFUL.
Owner's reply
Why so Sad? how are you trying to contact me? I see no comments on the blog were I posted the code, or email. I have been really busy but you can reach me on the listed contact info.
bycorcoran, April 30, 2012
This just chucks the last couple hundred alerts out - will need a bit of jigging to do anything more specific (like specify host).
Had some problems with the file
1) Ubuntu's shebang line is different (line 1)
2) PHP needed CPAN install Date::Manip with PHP 5.10.0 to do the date stuff correctly..
It's a good starting point though so will put in extra variables to get it to report on specifics!
cheers
Had some problems with the file
1) Ubuntu's shebang line is different (line 1)
2) PHP needed CPAN install Date::Manip with PHP 5.10.0 to do the date stuff correctly..
It's a good starting point though so will put in extra variables to get it to report on specifics!
cheers
You need Powershell 2.0 for Windows 2003 server else 'start-process' fails in execution.
Once Powershell is installed, you also need to right-click the .ps1 file, click properties, and unblock it.
24/10 - error in command path in install instructions! should read:
"check_updates=cmd /c echo scripts\check_windows_updates.ps1; exit $LastExitCode | powershell.exe -command -"
... Oh, review: Does exactly what it says on the tin!
I changed the script to return OK for Optional Updates - just change 'warn' to 'ok' on line 110 -- you might want to do this before unblocking it to avoid permission issues afterwards!
Once Powershell is installed, you also need to right-click the .ps1 file, click properties, and unblock it.
24/10 - error in command path in install instructions! should read:
"check_updates=cmd /c echo scripts\check_windows_updates.ps1; exit $LastExitCode | powershell.exe -command -"
... Oh, review: Does exactly what it says on the tin!
I changed the script to return OK for Optional Updates - just change 'warn' to 'ok' on line 110 -- you might want to do this before unblocking it to avoid permission issues afterwards!