Thanks I made the change to the command. Mine was slightly different yes as it used $CONTACTSMS$. I changed it to yours but still no SMS comes through.
Are you testing against a host or a service when trying to reproduce it?
misccommands.cfg is not used in XI as you stated, please go to Configure > Core Config Manager > Commands change the current one and apply config, this will put it into commands.cfg where it belongs.
I am testing against a host .The commands.cfg is configured as what you suggested. I also configured it like this which is the way it is on the Nagios server:
Please PM me an updated copy of your profile, you can download it by going to Admin > System Config > System Profile and click the Download Profile button in the top right corner. so that I can lab it up and find out where the problem lies, this is really the only option you have for doing this (well, it requires getting the custom commands to work).
Then look at the file to see what environmental variables are set and their names, I guess you will need to use the NAGIOS_CONTACTPAGER for it to work but the script should already pull that.
We either need to get the environmental variables working or redo the script to accept passed in parameters.
Yes I did bring the server down then up again to test it but I checked in on it today and it wrote something to the file so maybe it didn't pick it up as a state change because it was too quick? Only two entries in the log file.
This is what I have in the file now. Where do we go from here?