Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I want to get this info from a script and input it to cacti, I've made several scripts to do this, with echo, printf, etc. None of them work and give the following output in the log:
Not really sure, but...
Try to debug the script. Replace the printf command for the file by printing some constant values.
But you might even try http://forums.cacti.net/viewtopic.php?t=10049 for your ping test.
Reinhard
lvm wrote:Not really sure, but...
Try to debug the script. Replace the printf command for the file by printing some constant values.
But you might even try http://forums.cacti.net/viewtopic.php?t=10049 for your ping test.
Reinhard
Well thank you for the reference, but I wanted my own ping test, with some particular tests I didn't find in other scripts. And I wanted to know what was happening because I will make other scripts too.
While the bash script of my first post didn't work and produced the output I mentioned, the following script does work, although I don't see any difference in their outputs.
I'm using several shell scripts as well. So I'm sure it works. A common mistake is to use commands without supplying full path. This is needed as the poller runs from crontab...
Reinhard
lvm wrote:I'm using several shell scripts as well. So I'm sure it works. A common mistake is to use commands without supplying full path. This is needed as the poller runs from crontab...
Reinhard
Yes, I tried supplying full path, that's the first thing I thought about, but it doesn't seem to be related to that.