Smokeping Red Graph

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
eliufoo
Posts: 12
Joined: Mon Oct 15, 2007 1:57 am
Location: Dar Es Salaam
Contact:

Smokeping Red Graph

Post by eliufoo »

I have found similar posts, but the information didn't help. Please assist.

My cacti is on Fedora Core 6

Advanced ping draws me a 100%LOSS red area...

when run from command line like:
php /var/www/html/cacti/scripts/ss_fping.php 84.233.212.201 20 ICMP
i'm getting results like:
min:0.4900 avg:0.6385 max:0.9300 dev:0.1225 loss:0.0000
Looks good...

But when i greate a graph on cacti using Advance ping tempelate, I get 100%Loss red area through. loss:100.00
User avatar
chrisgapske
Cacti User
Posts: 278
Joined: Tue May 22, 2007 7:56 am
Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL

Re: Smokeping Red Graph

Post by chrisgapske »

Are you running the poller as root or as some user like cactiuser.


make sure if you want that graph to run you will need run the poller as root or as a user with root privliges.

eliufoo wrote:I have found similar posts, but the information didn't help. Please assist.

My cacti is on Fedora Core 6

Advanced ping draws me a 100%LOSS red area...

when run from command line like:
php /var/www/html/cacti/scripts/ss_fping.php 84.233.212.201 20 ICMP
i'm getting results like:
min:0.4900 avg:0.6385 max:0.9300 dev:0.1225 loss:0.0000
Looks good...

But when i greate a graph on cacti using Advance ping tempelate, I get 100%Loss red area through. loss:100.00
User avatar
eliufoo
Posts: 12
Joined: Mon Oct 15, 2007 1:57 am
Location: Dar Es Salaam
Contact:

Post by eliufoo »

I haven't chage any pollers. I have only added the template on cacti. I'm still using */5 * * * * cactiuser /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1 on crontab.

How do i go about creating a poller for smokeping?
Fedora core 6

The next best thing to red hat ;-)
User avatar
chrisgapske
Cacti User
Posts: 278
Joined: Tue May 22, 2007 7:56 am
Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL

change

Post by chrisgapske »

A simple way to run the poller as root would be.

find
cactiuser /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1


Change to
root /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1


This will allow cacti to build the icmp packet you are looking for.

There is another way but this is the most simple.
eliufoo wrote:I haven't chage any pollers. I have only added the template on cacti. I'm still using */5 * * * * cactiuser /usr/bin/php /var/www/html/cacti/poller.php > /dev/null 2>&1 on crontab.

How do i go about creating a poller for smokeping?
User avatar
eliufoo
Posts: 12
Joined: Mon Oct 15, 2007 1:57 am
Location: Dar Es Salaam
Contact:

Post by eliufoo »

Thanks, that workded. I also have a problem with the following. A similar thread was posted but the solutions didn't work.

I am also trying to measure ping latency times from my cacti server inside my network to:-
1 - ISP gateway
2 - Interntet (www.yahoo.com or other network)

I would like to graph these host but do not have SNMP enabled. What is the best way to set this up using this add-on? Do I have to have a host? Or can I just create the three ping graphs? How?

Note: If i run php /var/www/html/cacti/scripts/ss_fping.php 84.233.186.57 20 ICMP --> My gateway, I get 100% Loss, but i ping the gateway from the console.
Fedora core 6

The next best thing to red hat ;-)
User avatar
chrisgapske
Cacti User
Posts: 278
Joined: Tue May 22, 2007 7:56 am
Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL

hmm

Post by chrisgapske »

The computer you are using to ping the gateway? is this computer on the same subnet as your cacti server ?

Can you ssh to your cacti server and do a standard ping host ?

I am not sure about the total diffrence between a standard ping and ss_fping but I do believe that ss_fping creates a mort standard ICMP packet.

Have you tryed using maybe udp port 80 on www.yahoo.com ?


eliufoo wrote:Thanks, that workded. I also have a problem with the following. A similar thread was posted but the solutions didn't work.

I am also trying to measure ping latency times from my cacti server inside my network to:-
1 - ISP gateway
2 - Interntet (www.yahoo.com or other network)

I would like to graph these host but do not have SNMP enabled. What is the best way to set this up using this add-on? Do I have to have a host? Or can I just create the three ping graphs? How?

Note: If i run php /var/www/html/cacti/scripts/ss_fping.php 84.233.186.57 20 ICMP --> My gateway, I get 100% Loss, but i ping the gateway from the console.
User avatar
eliufoo
Posts: 12
Joined: Mon Oct 15, 2007 1:57 am
Location: Dar Es Salaam
Contact:

Post by eliufoo »

The computer you are using to ping the gateway? is this computer on the same subnet as your cacti server?

The computer I'm using to ping is the cacti server and it not on the same subnet. Standard pings from my gateway is not a problem.

I'm setting up another graph with a udp 80 has suggested.
Fedora core 6

The next best thing to red hat ;-)
User avatar
chrisgapske
Cacti User
Posts: 278
Joined: Tue May 22, 2007 7:56 am
Location: Pensacola, Fl - Padacuh, Ky-Alpena, MI-Gulf Shores,AL

Post by chrisgapske »

eliufoo wrote:The computer you are using to ping the gateway? is this computer on the same subnet as your cacti server?

The computer I'm using to ping is the cacti server and it not on the same subnet. Standard pings from my gateway is not a problem.

I'm setting up another graph with a udp 80 has suggested.
I am not sure if your router will reply to port 80 you might want to try port 23.
fle
Posts: 2
Joined: Tue Nov 04, 2008 1:26 am

Post by fle »

hi, ive got the same problem here. Have both Smokeping and Advanced ping running, but graphs are full red ...

My Cacti on CentOS is running for months now, without having any problems. If i change the cactiuser to root, wont i have any more problems?
Also, how do i change the user? (newbie here :) )

thanks...
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

In the new Cacti version 0.8.7c, the ss_fping.php will revert to standard ping and "should" work for most OS' when not running as root.

I would actually like people to let me know if the ICMP works for their platform. If not, I need output from "ping --help" from each system and "uname -a" from each as well.

Regards,

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
fle
Posts: 2
Joined: Tue Nov 04, 2008 1:26 am

Post by fle »

Hi,
This is what i have done:
I have uninstall everything (Smokeping, Advanced ping) and reinstalled smokeping like-1.0
The graph is not generated at all. When i turn the graph debug option this is what i get:

RRDTool Says:
ERROR: opening '/var/www/cacti/rra/administration_sw1_loss_560.rrd': No such file or directory.

Does this help?
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

1) Is there an entry in the poller cache?
2) Have you tried the Script Server debug method?
3) Are other graphs working?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest