Hi,
I have installed that module & as par instruction from README generates the key value
But when executing the check_drupal shell script from utils there is a problem to match the key and unable to execute the report of nagios page from command line... and throws the "Unauthorized"
although I have checked from wget command with given parameters of H and U it enters in the block
if (user_access('administer site configuration') || $_SERVER['HTTP_USER_AGENT'] == $ua) {
...
}
getting the HTTP_useRagent value of that key parameter.
I try to run the command
./check_drupal -H hostname -U '62b01aacf7f5530443275871cbee18ad -'
Please help me as it's urgent other wise I have to give the "administer site configuration" to anonymous user which is a huge risk from drupal perspective
Comments
Comment #1
greg.harveyI use Nagios via NRPE and drush, so I don't know about this - hopefully someone who uses it this way has time to help you. It's unlikely to be a bug, as no one else is reporting any issues. Probably something to do with your set-up.
Comment #2
roynilanjan commentedI try to debug where found when request is coming from shell script the user agent value escape
space & - from encrypted value and that's why from code $_SERVER['HTTP_AGENT'] doesn't map with Drupal configuration and that block unable to execute
Comment #2.0
roynilanjan commentedAdded the command check_drupal to understand the execution process
Comment #3
greg.harvey