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.
# /usr/local/bin/php -q /var/htdocs/cacti/scripts/ss_fping.php 127.0.0.1 10 ICMP
Notice: Undefined index: snmp_community in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 537
Notice: Undefined index: snmp_community in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 537
Notice: Undefined index: snmp_community in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 537
Notice: Undefined index: snmp_community in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 537
Notice: Undefined index: snmp_community in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 537
Notice: Undefined index: snmp_community in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 537
Notice: Undefined index: snmp_community in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 537
Notice: Undefined index: snmp_community in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 537
Notice: Undefined index: snmp_community in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 537
Notice: Undefined index: snmp_community in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 537
min:0.0000 avg:0.0000 max:0.0000 dev:0.0000 loss:0.0000
# /usr/local/bin/php /var/htdocs/cacti/scripts/ss_fping.php 127.0.0.1 10 ICMP
Warning: socket_set_option(): unable to set socket option [99]: Option not supported by protocol in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 164
Warning: socket_set_option(): unable to set socket option [99]: Option not supported by protocol in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 164
Warning: socket_set_option(): unable to set socket option [99]: Option not supported by protocol in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 164
Warning: socket_set_option(): unable to set socket option [99]: Option not supported by protocol in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 164
Warning: socket_set_option(): unable to set socket option [99]: Option not supported by protocol in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 164
Warning: socket_set_option(): unable to set socket option [99]: Option not supported by protocol in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 164
Warning: socket_set_option(): unable to set socket option [99]: Option not supported by protocol in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 164
Warning: socket_set_option(): unable to set socket option [99]: Option not supported by protocol in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 164
Warning: socket_set_option(): unable to set socket option [99]: Option not supported by protocol in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 164
Warning: socket_set_option(): unable to set socket option [99]: Option not supported by protocol in /usr/local/apache2/htdocs/cacti/lib/ping.php on line 164
min:0.1200 avg:0.1410 max:0.3000 dev:0.0537 loss:0.0000
Maybe this is not greatest solution i've ever seen, since socket_set_option() still fails, but at least ping works.
I installed this plugin as described at the start of this thread.
Pinging a host via the script works fine.
The strange thing is, that it ignores any parameters i give to it via cacti e.g. I get the following output when running a check on a host in our network:
As data source i even defined the IP address of that host and changed the number of pings that should be send, but to no avail.
What is even stranger is that i cleared (just to see what happens) the default values in the data template, still i get the same line as above...
Anybody got an idea as to what is going wrong?
Any help would be greatly appreaciated!
Have a nice weekend everybody!
I'm running cacti Version 0.8.6i on a linux box
Poller: cactid
P.S. Sorry for the multiple entries above. Message board got a hickup because of me using a backtick character. Didn't notice that the entries were made anyway...
Hi, I thought I'd try this out today, with no luck (well it installs and I can run it from the command line, but the graph just shows 100% loss).
I'm just trying it with ICMP at the moment - as from Command line I get 100% loss with any TCP ports anyway.
Troubleshooting....
Why has the command line for the Input String got "<path_cacti>/scripts/ss_fping.php ss_fping <hostname> <attempts> <protocol> <port>"
when you run it from command line you don't use the ss_fping parameter (From something LVM mentioned). So tried it without the ss_fping parameter...
OK, so, what next?
Does Cacti have to run as root - or can Apache be put in the "root" group, BTW its the most recent install of CactiEZ.
Here is the info about my machine
Cacti Version - 0.8.6i Plugin Architecture - 1.0 Poller Type - Cactid v0.8.6i Server Info - Linux 2.6.9-42.0.3.EL Web Server - Apache/2.0.52 (CentOS) PHP - 4.3.9 PHP Extensions - yp, xml, wddx, tokenizer, sysvshm, sysvsem, standard, sockets, shmop, session, pspell, posix, pcre, overload, mime_magic, iconv, gmp, gettext, ftp, exif, dio, dbx, dba, curl, ctype, calendar, bz2, bcmath, zlib, openssl, apache2handler, gd, mysql, snmp, eAccelerator MySQL - 4.1.20 RRDTool - 1.2.15 SNMP - 5.1.2 Plugins
OK, I've given in and made the cron jobs run as root, that seems to get it to work....
Although I've got a slightly odd thing happening - Cacti isn't creating the rrd file for one particular host - which I am not monitorring anything else on, but I can create other new graphs - and thus rrd files....
No longer a n00by, probably, by now an 0ldby
Now Head of Technology at RSCH, back to the prickly subject of Monitorring....
I have to say, I love the graph output of Advanced Ping - it's MUCH better than the standard included ping...
What I would like to know however is that if I set 3 of these going on different hosts (by allowing the 'ip' to be set to a user entered field), the first one to be run fails (the other 2 succeed).
It is likely that you are getting warnings when you initialize the script server. Please use the testing procedure to eliminate ALL PHP warnings, otherwise things don't work so well.
TheWitness
True understanding begins only when we realize how little we truly understand...