Page 1 of 2
Symantec Monitoring
Posted: Mon Jan 13, 2014 6:01 pm
by narendra.badgujar
HI,
Can we monitor, Symentec update on client machine. Please help.
Re: Symantec Monitoring
Posted: Tue Jan 14, 2014 10:55 am
by slansing
This is quite broad, as far as I know all Symantec products that have the ability to be updated. You can start by narrowing down your search terms on our exchange site:
http://exchange.nagios.org/
You should be able to find a custom plugin there.
Re: Symantec Monitoring
Posted: Tue Jan 14, 2014 11:20 am
by narendra.badgujar
For symantec last update date, I followed below mention instruction. But unable get update.
Save the script to your NSClient++scripts directory and then add the following line under the [NRPE Handlers] section of your NSC.ini file
check_av=cscript.exe //NoLogo scriptscheck_av.vbs /W:$ARG1$ /c:$ARG2$
Re: Symantec Monitoring
Posted: Tue Jan 14, 2014 1:43 pm
by abrist
Can you link us to the plugin script (check_av) you are using?
Re: Symantec Monitoring
Posted: Tue Jan 14, 2014 1:55 pm
by narendra.badgujar
not getting ?
Re: Symantec Monitoring
Posted: Tue Jan 14, 2014 2:03 pm
by slansing
Can you attach, or provide a link to that plugin.
Re: Symantec Monitoring
Posted: Tue Jan 14, 2014 2:12 pm
by lmiltchev
I am not able to test "scriptscheck_av.vbs" on my test boxes, but here's a few things that you can do to troubleshoot the issue:
1. Make sure you can run the "scriptscheck_av.vbs" locally and it produces the desired output
2. Make sure that in the NSC.ini file (or nsclient.ini) you NRPE and External Scripts modules are enabled, and you have:
Code: Select all
allow_arguments=1
allow_nasty_meta_chars=1
3. You should probably change your command from this:
Code: Select all
check_av=cscript.exe //NoLogo scriptscheck_av.vbs /W:$ARG1$ /c:$ARG2$
to something like this:
Code: Select all
check_av=cscript.exe //NoLogo //T:60 scripts\\scriptscheck_av.vbs $ARG1$
4. Test your check by running from the Nagios box:
Code: Select all
cd <your plugins directory>
./check_nrpe -H <windows box ip> -c check_av -a '<put your arguments here>'
Re: Symantec Monitoring
Posted: Tue Jan 14, 2014 10:00 pm
by narendra.badgujar
Re: Symantec Monitoring
Posted: Wed Jan 15, 2014 11:01 am
by slansing
Have you made the changes lmiltchev suggested?
Re: Symantec Monitoring
Posted: Wed Jan 15, 2014 11:20 am
by narendra.badgujar
Yes I made suggested changes.
[root@server libexec]# ./check_nrpe -H 172.16.2.45 -c check_av
No handler for command: cscript.exe
[root@server libexec]# ./check_nrpe -H 172.16.2.45 -c check_av -a 1 2
Exception processing request: Request contained arguments (not currently allowed, check the allow arguments option).