Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
As far as I have ever seen, you cannot printf | wget. You might be able to use curl or wget if you have somehow specified those are post parameters, which does not appear to be the case. Instead I think you only want the wget portion of your notification setting.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Thanks for reply. I guess I got the idea of sending sms via api inside nagios right now I did it by writing python and just calling it from command line by giving phone number+host/service detail message arguments.
As far as I know, you cannot really pipe to wget. You can pass post data with "--post-data", but piping to wget will most likely not work.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.