Templates, scripts for templates, scripts and requests for templates.
Moderators: Moderators, Developers
-
ehall
- Cacti User
- Posts: 246
- Joined: Fri Dec 09, 2005 3:42 pm
#61
Post
by ehall » Thu Dec 15, 2005 3:27 am
I'm not sure what's going on here. This was working for one host but not for some others. Now its not working for any of them.
Here's success from the command line:
Code: Select all
[ root# ] php /usr/share/cacti/scripts/ss_fping.php goose.ntrg.com 20 TCP
min:60.2800 avg:61.8845 max:64.1400 dev:0.6830 loss:0.0000
But output from the logs shows partial error:
Code: Select all
12/15/2005 03:25:01 AM - CMDPHP: Poller[0] Host[2] DS[153] CMD: perl /usr/share/cacti/scripts/ping.pl rhino.labs.ntrg.com, output: U
12/15/2005 03:25:01 AM - CMDPHP: Poller[0] Host[2] DS[157] SERVER: /usr/share/cacti/scripts/ss_fping.php rhino.labs.ntrg.com 20 TCP, output: U
12/15/2005 03:25:02 AM - CMDPHP: Poller[0] Host[6] DS[158] SERVER: /usr/share/cacti/scripts/ss_fping.php goose.ehsco.com 20 TCP 80, output: U
12/15/2005 03:25:03 AM - CMDPHP: Poller[0] Host[12] DS[163] SERVER: /usr/share/cacti/scripts/ss_fping.php omega.hall.family-and-friends.us 20 TCP, output: U
Here's the output from cmd.php:
Code: Select all
12/15/2005 03:21:59 AM - CMDPHP: Poller[0] Host[2] DS[153] CMD: perl /usr/share/cacti/scripts/ping.pl rhino.labs.ntrg.com, output: 0.036
12/15/2005 03:21:59 AM - CMDPHP: Poller[0] Host[2] DS[157] WARNING: Result from SERVER not valid. Partial Result: WARNING: Function do
12/15/2005 03:21:59 AM - CMDPHP: Poller[0] Host[2] DS[157] SERVER: /usr/share/cacti/scripts/ss_fping.php rhino.labs.ntrg.com 20 TCP, output: U
Any suggestions? Thanks
-
TheWitness
- Developer
- Posts: 14834
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
-
Contact:
#62
Post
by TheWitness » Thu Dec 15, 2005 8:24 am
Did you apply all the patched files including ping.php?
TheWitness
-
ehall
- Cacti User
- Posts: 246
- Joined: Fri Dec 09, 2005 3:42 pm
#63
Post
by ehall » Thu Dec 15, 2005 11:00 am
Yes I installed all the files in this thread. I've since rolled back and am going to try again.
What PHP modules are needed for this? I should check that first.
-
TheWitness
- Developer
- Posts: 14834
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
-
Contact:
#64
Post
by TheWitness » Thu Dec 15, 2005 6:43 pm
php_sockets
TheWitness
-
ehall
- Cacti User
- Posts: 246
- Joined: Fri Dec 09, 2005 3:42 pm
#65
Post
by ehall » Fri Dec 16, 2005 1:01 am
k I've got that installed already (it was my first roadblock heh)
I'm running 0.8.6g so just to be sure, all I need are the PHP objects provided in this thread, correct? There don't appear to be any relevant patches to 0.8.6g but I want to make sure.
The other possibility is that I'm having problems checking availability. I'm currently using SNMP for system availability and I seem to recollect that some of the systems went unavailable after the install.
-
ehall
- Cacti User
- Posts: 246
- Joined: Fri Dec 09, 2005 3:42 pm
#66
Post
by ehall » Sun Dec 18, 2005 1:54 pm
Once I got the regular ICMP pings working with cactid (fixed by running the cron job under root), Advanced Ping also worked on the next install.
-
mikes1p
- Posts: 8
- Joined: Mon Oct 10, 2005 5:46 pm
#67
Post
by mikes1p » Wed Dec 28, 2005 3:04 pm
OK back at this. The user is an admin account that has permissions, the directories are there, and I set the permissions to be wide open for everyone. Still get the problem
If I run "c:\php\php.exe foo" at a command prompt I get the same "creating dirs" output. Must be something to do with PHP but I haven't been able to find out how to fix it
BTW, PHP is a fresh install, per the Cacti Windows install instructions. Any tips or pointers to get PHP happy?
Thanks
Mike
TheWitness wrote:Your user does not have permission to create the directories. Please create them and then allow the poller user to wrx to them..
mikes1p wrote:TheWitness wrote:Does the "creating directory..." happen every time? Otherwise, please wait a polling cycle or two for the graph to appear. Also, what happens when your run "php <path_cacti>/cmd.php" at MEDIUM logging level?
Yes the "creating dirs" happend every time.
Yep I waited several polling cycles to see if was working, the empty graph I posted was for two hours after I had created the graph
-
the_sphynx
- Posts: 21
- Joined: Wed Aug 04, 2004 4:28 pm
- Location: Thornton, CO
#68
Post
by the_sphynx » Wed Dec 28, 2005 3:19 pm
There's like half a "U" down beside my 96-100% field at the bottom of the graph? Any ideas?
-
Attachments
-

- Advanced_Ping_v1.3.JPG (30.1 KiB) Viewed 14018 times
Thanks,
Bryan
-
InfInIte
- Posts: 23
- Joined: Wed Apr 14, 2004 12:27 pm
#69
Post
by InfInIte » Thu Dec 29, 2005 6:32 pm
Hi, I'm trying to run this script but it's not going verry well.
The problem is that the attached image is all the output on the graph I get.
in the cacti log file i've got the following entries:
Code: Select all
12/30/2005 12:25:01 AM - PHPSVR: Poller[0] DEBUG: INCLUDE: '/home/httpd/vhosts/xxxxxx/subdomains/cacti/httpdocs/scripts/ss_fping.php' SCRIPT: 'ss_fping' CMD: 'www.belnet.be 20 ICMP'
12/30/2005 12:25:01 AM - CACTID: Poller[0] Host[1] SERVER: /home/httpd/vhosts/xxxxx/subdomains/cacti/httpdocs/scripts/ss_fping.php ss_fping www.belnet.be 20 ICMP, output: min:5.2100
12/30/2005 12:25:01 AM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (166,'','2005-12-30 00:25:00','min:5.2100')
12/30/2005 12:25:01 AM - PHPSVR: Poller[0] SERVER: /home/httpd/vhosts/xxxxxx/subdomains/cacti/httpdocs/scripts/ss_fping.php ss_fping www.belnet.be 20 ICMP output min:5.2100 avg:6.2235 max:7.8900 dev:0.5927 loss:0.0000
I'm using cactid as poller, and the cron job is run by the root user.
PHP version is 4.3.11 and the cacti version is 0.8.6g and my OS is Fedora Core 2 (32 bit).
-
Attachments
-

- graph_image.php.png (22.85 KiB) Viewed 13964 times
-
InfInIte
- Posts: 23
- Joined: Wed Apr 14, 2004 12:27 pm
#70
Post
by InfInIte » Sun Jan 01, 2006 7:48 pm
This is how the RRD file looks like when fetching some data with rrdtool:
Code: Select all
1136161200: nan nan nan nan 5.0000000000e-02
1136161500: nan nan nan nan 5.0000000000e-02
1136161800: nan nan nan nan 5.0000000000e-02
1136162100: nan nan nan nan 5.0000000000e-02
1136162400: nan nan nan nan 5.0000000000e-02
1136162700: nan nan nan nan 5.0000000000e-02
I'm using RRDTool 1.2.11
Could this be causing the problem? and if, how do i fix it?
-
tarpat1
- Posts: 17
- Joined: Sun Jan 01, 2006 11:39 pm
#71
Post
by tarpat1 » Sun Jan 01, 2006 11:40 pm
I am bumping this because I am getting the same error.
Any ideas?
Phobos182 wrote:I get this error when trying to import the template.
Error: XML: Cacti version does not exist.
I've verified that I'm running the current version
mysql> select * from version\G
*************************** 1. row ***************************
cacti: 0.8.6g
1 row in set (0.00 sec)
How do I solve this?
-
gandalf
- Developer
- Posts: 22375
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
-
Contact:
#72
Post
by gandalf » Mon Jan 02, 2006 3:59 pm
InfInIte wrote:Code: Select all
12/30/2005 12:25:01 AM - PHPSVR: Poller[0] DEBUG: INCLUDE: '/home/httpd/vhosts/xxxxxx/subdomains/cacti/httpdocs/scripts/ss_fping.php' SCRIPT: 'ss_fping' CMD: 'www.belnet.be 20 ICMP'
12/30/2005 12:25:01 AM - CACTID: Poller[0] Host[1] SERVER: /home/httpd/vhosts/xxxxx/subdomains/cacti/httpdocs/scripts/ss_fping.php ss_fping www.belnet.be 20 ICMP, output: min:5.2100
12/30/2005 12:25:01 AM - CACTID: Poller[0] DEBUG: SQLCMD: insert into poller_output (local_data_id,rrd_name,time,output) values (166,'','2005-12-30 00:25:00','min:5.2100')
12/30/2005 12:25:01 AM - PHPSVR: Poller[0] SERVER: /home/httpd/vhosts/xxxxxx/subdomains/cacti/httpdocs/scripts/ss_fping.php ss_fping www.belnet.be 20 ICMP output min:5.2100 avg:6.2235 max:7.8900 dev:0.5927 loss:0.0000
This issue happend to me when using an "old" cactid poller. It was resolved at least with cactid 0.8.6g (for me).
Reinhard
-
InfInIte
- Posts: 23
- Joined: Wed Apr 14, 2004 12:27 pm
#73
Post
by InfInIte » Mon Jan 02, 2006 5:02 pm
lvm wrote:This issue happend to me when using an "old" cactid poller. It was resolved at least with cactid 0.8.6g (for me).
Reinhard
That helped
I also noticed that regardless the address I fill in into the address field when making the datasource, it keeps using the devive's hostname value according to the poller cache

-
rayvd
- Posts: 6
- Joined: Mon Apr 18, 2005 6:22 pm
- Location: Chico, CA
#74
Post
by rayvd » Tue Jan 03, 2006 11:45 am
Had an interesting issue with this script...
I was getting 100% loss all the time, and investigated my logfile. The ss_fping script was getting called as such:
/var/www/html/noc/cacti/scripts/ss_fping.php ss_fping asterisk-master.domain.com 20 UDP 5060
So ss_fping was being used as the hostname in the ss_fping.php script.
To fix this behavior, I added an additional array_shift() call at the top of the ss_fping.php file. All is working now.
-
gandalf
- Developer
- Posts: 22375
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
-
Contact:
#75
Post
by gandalf » Tue Jan 03, 2006 11:58 am
InfInIte wrote:I also noticed that regardless the address I fill in into the address field when making the datasource, it keeps using the devive's hostname value according to the poller cache

System Utilities -> Clear Poller Cache will help
Reinhard