Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[SOLVED] Wetaher map 0.95a + fping

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
dnoguera



Joined: 28 Feb 2008
Posts: 9

PostPosted: Tue Mar 11, 2008 4:15 pm    Post subject: [SOLVED] Wetaher map 0.95a + fping Reply with quote

Dears:
I have this error when I use the fping sintaxis:

03/11/2008 06:13:08 PM - WEATHERMAP: Poller[0] [Map 1] Nine: ReadData: LINK node02864-node03151, target: fping:10.0.1.106 on config line 147 had no valid data, according to WeatherMapDataSource_fping

03/11/2008 06:13:08 PM - WEATHERMAP: Poller[0] [Map 1] Nine: FPing ReadData: Lines read. But nothing returned for target??? (10.0.1.106)

the config line is:

TARGET fping:10.0.1.106

is wrong?
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Tue Mar 11, 2008 6:06 pm    Post subject: Reply with quote

The format is correct.

If you run for one poller cycle with DEBUG logging, do you get more information? You should get a series of "Output: " lines, showing what fping actually said.
Back to top
dnoguera



Joined: 28 Feb 2008
Posts: 9

PostPosted: Tue Mar 11, 2008 7:49 pm    Post subject: Reply with quote

Howie wrote:
The format is correct.

If you run for one poller cycle with DEBUG logging, do you get more information? You should get a series of "Output: " lines, showing what fping actually said.


mmmmm.... thats the problem...

03/11/2008 09:46:07 PM - WEATHERMAP: Poller[0] DEBUG: [weathermap_run_maps@poller-common.php:109] [Map 1] Nine: Wrote HTML to /var/www/html/plugins/weathermap/output/ee9d932a79f95dd3f4a0.html
03/11/2008 09:46:07 PM - WEATHERMAP: Poller[0] DEBUG: [DrawMap@Weathermap.class.php:2469] [Map 1] Nine: Writing PNG file to /var/www/html/plugins/weathermap/output/ee9d932a79f95dd3f4a0.png
03/11/2008 09:46:06 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@WeatherMapDataSource_fping.php:64] [Map 1] Nine: Output:
03/11/2008 09:46:06 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@WeatherMapDataSource_fping.php:64] [Map 1] Nine: Output: sh: fping: command not found

"fping: command not found" but the file exist....
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2132
Location: United Kingdom

PostPosted: Tue Mar 11, 2008 8:01 pm    Post subject: Reply with quote

OK, then have a look in lib/datasources/WeatherMapDataSource_fping.php, and check that the path for fping is correct in there.

It's line 53 of that file. You may need to add the full path to fping to the beginning of the command. Quite often when things run from cron, they don't have the same PATH as when you run things from the shell.

So, which fping will tell you where it is, and then

Code:

$command = "/usr/local/bin/fping -t100 -r1 -u -C 5 -i10 -q $target 2>&1";
           ^^^^^^^^^^^^^^^^^


on line 53 should fix it for you.
Back to top
dnoguera



Joined: 28 Feb 2008
Posts: 9

PostPosted: Tue Mar 11, 2008 8:29 pm    Post subject: Solved... Reply with quote

Thanks Howie!!!... Now the fping Works...

Thanks Again!.

Dario.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group