As you notice on the link you sent me - that was posted over 6 years ago. I have tried many of these scripts from the nagios site recently and , the libraries are broken, or the scripts are no longer compatible with the libraries, or the scripts/libraries are no longer compatible with the protocols.
Well after playing around with it a bit to make it work perfekt i discovered that its mutch easier to hand build the message than making nagios execing the centerim command.
i woud recommend this instead.
/usr/bin/printf "OUT\nMSG\n`date +%s`\n`date +%s`\n\n$NOTIFICATIONTYPE$ alert\nHost $HOSTNAME$ is $HOSTSTATE$\n" >> /var/spool/nagios/.centerim/m$CONTACTADDRESS1$/offline
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.