|
|
| Author |
Message |
MadX
Joined: 23 Apr 2008 Posts: 31
|
Posted: Sat May 03, 2008 11:45 pm Post subject: Monitor remote server pinging |
|
|
is there any chance that i can graph the results of a remote server pinging a spacific target like googl.com, not monitoring the Cacti pc pinging a target.
is it possible |
|
| Back to top |
|
 |
BSOD2600 Cacti Moderator
Joined: 08 May 2004 Posts: 8831 Location: WA, USA
|
Posted: Sun May 04, 2008 12:29 pm Post subject: |
|
|
1) wrong forum, moving
2) There are many ping scripts on the forum, have you searched yet? 'advanced ping template' would be among the most popular. |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 15660 Location: Muenster, Germany
|
Posted: Sun May 04, 2008 3:00 pm Post subject: |
|
|
You may do so e.g. by using a cgi script on the remote host. Cacti will then call the cgi via wget and the cgi does the pinging.
It's awful, but should work
Reinhard |
|
| Back to top |
|
 |
MadX
Joined: 23 Apr 2008 Posts: 31
|
Posted: Mon May 05, 2008 9:33 pm Post subject: |
|
|
thanks for raplaying but
can you please gandalf tell me how do i achive what you said.
i tried almost all the scripts in here but still didn't find any one as i need it.
graph the results of a remote server pinging a spacific target like googl.com "not monitoring the Cacti pc pinging a target. " |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 15660 Location: Muenster, Germany
|
Posted: Tue May 06, 2008 2:00 pm Post subject: |
|
|
1. Prereqs
You will need a web server on the host that shall perform the pinging.
2. Create the ping script
Login to that host and create a ping script in the web-servers cgi directory. Write the script in a way that parameters may be provided via standard cgi parm call.
3. Create the cacti script
See 1st link of my sig to learn how to do so (generally speaking). But your cacti script will have to call wget, use some HTTP library (perl, php or the like) or e.g. curl to call the ping script on the remote host
Reinhard |
|
| Back to top |
|
 |
MadX
Joined: 23 Apr 2008 Posts: 31
|
Posted: Thu May 08, 2008 6:40 pm Post subject: |
|
|
Thank you gandalf, i appreciate you help
now i know of what i will start "googling"  |
|
| Back to top |
|
 |
|