[Nagiosplug-help] passing command line arguments

james james at deltacom.net
Fri Jul 18 11:08:16 CEST 2003


All,

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

define service{
use generic-service ; Name of service template to use
host_name jholderDEV
service_description ASP_PAGE
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups test-admins
notification_interval 120
notification_period 24x7
notification_options w,u,c,r
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.

any ideas?

-james 

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...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20030718/56ff6da6/attachment.html>


More information about the Help mailing list