I'm trying to figure out how to get Nagios to monitor a few sites that are using HTTPS and require a username/password to log in – I can't figure out how it should be done so I can set a username and password for each host, and then define a service to do the check using those usernames and passwords.
I can write a little perl script that will use wget and return an appropriate exit code, but I can't figure out how to get the username/password/URL to the script when it is called.
Best Answer
You should be able to do that with the check_http plugin
So your command defination should look something like
Then in your service definition use