Test check works in CCM, but fails once applied
Posted: Thu Oct 24, 2013 4:22 pm
I'm trying to add a check for testing DFS shares.
Using check_smb_share from the Exchange.
I tested from the command line:
I created the command:
Then I configured the service:
Template assigned is "generic-service"
Testing here works good (notice that the CCM is escaping out the whack and semicolon:
But as soon as I apply the config and go back out to the main UI, the check returns:
The same error code if I give it bad credentials in the CCM test
In the main ui, if I go to "Reconfigure this service" I show:
Note the password here has a semicolon, but the test in the CCM didn't seem to care.
I've read through the wiki on problems with service checks and the PDF on Managing Plugins. I seem to be following the book, can't understand why the check doesn't work past the CCM/command line...
Using check_smb_share from the Exchange.
I tested from the command line:
Code: Select all
libexec]$ ./check_smb_share -H aus05nptpdfsr01.prod.****.com -s content -u "prod\svc_*********" -p "YmYU%gFv3zXj;@"
OK SMB Sharename: content Disk Content Share
Code: Select all
$USER1$/check_smb_share -H $HOSTADDRESS$ -s $ARG1$ -u "$ARG2$" -p "$ARG3$"Testing here works good (notice that the CCM is escaping out the whack and semicolon:
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_smb_share -H AUS05NPTPDFSR01.prod.****.com -s content -u prod\\svc_******** -p YmYU%gFv3zXj\;@
OUTPUT: OK SMB Sharename: content Disk Content ShareCode: Select all
CRITICAL SMB Sharename: content WARNING: The "idmap uid" option is deprecatedIn the main ui, if I go to "Reconfigure this service" I show:
Code: Select all
check_smb_share!content!prod\******!YmYU%gFv3zXj;@!!!!!I've read through the wiki on problems with service checks and the PDF on Managing Plugins. I seem to be following the book, can't understand why the check doesn't work past the CCM/command line...