Using passive checks we have a WMI Query to check if Anti Virus is up to date or not (True or False)
21 Anti Virus Updates -l SecurityCenter^productUptoDate^AntiVirusProduct -w False
This works, however when the status is False it still shows OK in Nagios.
Normally I could write a wrapper script for this and change the return code myself, but because it's passive checks, the wrapper script would need to be run on a Windows box. (not a big fan of windows scripting)
Is there a way to get the return code working with NC_Net's built in WMI checks, or do we have to wrap it around a script (rendering these kind of checks useless standalone as they are?)
I have tried All WMI values 21,2016,14,12.
Regards,
David
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
IT has been a busy month.
There is no NEGATE Command built into The Passive checks.
However writing a script that you can call throught the runscript command (Via Passive check) that runs the query and negates the result is prboly the simplest solution.
For consulting fees, I would be able to add the negate command either to all the passive checks or to just specific ones that you need. Work on this could commense immediatly and would have a quick turnaround.
Alternatively I could also produce a executable that is called through RUNSCript that gives the Input and output you want for (Bassically wrap the WMICAT, and the WMICOUNTER into exe that retrun negate of NC_nets internal version) once again this would require consulting fees, to get to the top of my work queue.
Good Luck,
Tony
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi There,
VER: NC_Net 4.40
Using passive checks we have a WMI Query to check if Anti Virus is up to date or not (True or False)
21 Anti Virus Updates -l SecurityCenter^productUptoDate^AntiVirusProduct -w False
This works, however when the status is False it still shows OK in Nagios.
Normally I could write a wrapper script for this and change the return code myself, but because it's passive checks, the wrapper script would need to be run on a Windows box. (not a big fan of windows scripting)
Is there a way to get the return code working with NC_Net's built in WMI checks, or do we have to wrap it around a script (rendering these kind of checks useless standalone as they are?)
I have tried All WMI values 21,2016,14,12.
Regards,
David
Sorry for the delay,
IT has been a busy month.
There is no NEGATE Command built into The Passive checks.
However writing a script that you can call throught the runscript command (Via Passive check) that runs the query and negates the result is prboly the simplest solution.
For consulting fees, I would be able to add the negate command either to all the passive checks or to just specific ones that you need. Work on this could commense immediatly and would have a quick turnaround.
Alternatively I could also produce a executable that is called through RUNSCript that gives the Input and output you want for (Bassically wrap the WMICAT, and the WMICOUNTER into exe that retrun negate of NC_nets internal version) once again this would require consulting fees, to get to the top of my work queue.
Good Luck,
Tony