[Nagiosplug-help] passing command line arguments
james at deltacom.net
Fri Jul 18 11:08:16 CEST 2003
I'm working on writing a perl plugin that compares a known "good" copy of an html/asp/php/etc. document, to the page that is currently being served. (i.e. compare /usr/local/saved_pages/mydomain.com/index.php and http://mydomain.com/index.php).
(I say this so that if there is a similar plugin out there, someone may hopefully point me in that direction).
My question/problem is that my idea was that I would write a plugin script, and then pass options to it(read: safe and unsafe URL's).
I thought I could just run something like this in the services.cfg
use generic-service ; Name of service template to use
check_command check_asp -s /safe.html -u http://myserver.com/index.html
and for each additional page/application I wanted to check, I could just add this template back in and change the check_command options.....
But apparently I'm doing something wrong, because those values aren't being passed.
ps. I tried googling for this and had no luck, and when i tried to check the archives, sourceforge gave me an error. So i apologize if this has been ocvered before.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Help