|
|
| Author |
Message |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5453 Location: Wisconsin, USA
|
Posted: Thu Oct 26, 2006 2:08 pm Post subject: |
|
|
| Added another updated version. |
|
| Back to top |
|
 |
bambid
Joined: 02 Nov 2006 Posts: 22
|
Posted: Wed Nov 15, 2006 7:26 am Post subject: Can't run this script |
|
|
Error message :
bash: ./cacti_monitor.sh: /bin/bash^M: bad interpreter: No such file or directory
I have mail and mailx, path to bash is OK, what can be wrong ?
Thanks for reply |
|
| Back to top |
|
 |
fmangeant Cacti Guru User
Joined: 19 Sep 2003 Posts: 2325 Location: Sophia-Antipolis, France
|
Posted: Wed Nov 15, 2006 8:16 am Post subject: |
|
|
Hi
can you try this :
| Code: | | $ dos2unix cacti_monitor.sh |
|
|
| Back to top |
|
 |
bambid
Joined: 02 Nov 2006 Posts: 22
|
Posted: Wed Nov 15, 2006 2:09 pm Post subject: |
|
|
I tried that and got this message :
dos2unix: converting file casti_monitor.sh to UNIX format ...
dos2unix: problems converting file casti_monitor.sh |
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5453 Location: Wisconsin, USA
|
Posted: Wed Nov 15, 2006 2:53 pm Post subject: |
|
|
Let me repost in a non-broken format...  |
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5453 Location: Wisconsin, USA
|
Posted: Wed Nov 15, 2006 4:00 pm Post subject: |
|
|
Latest version has been cleaned of the annoying carriage returns..
Sorry about that...  |
|
| Back to top |
|
 |
bambid
Joined: 02 Nov 2006 Posts: 22
|
Posted: Wed Nov 15, 2006 7:48 pm Post subject: |
|
|
I tried that and now it runs without any error message.
Thanks |
|
| Back to top |
|
 |
bambid
Joined: 02 Nov 2006 Posts: 22
|
Posted: Fri Nov 17, 2006 6:18 am Post subject: |
|
|
I have problem with this script. Today I got bunch of emails at the same time, beginning of email is same, but section with issue is different:
| Code: | The following issues are present on the Cacti Server:
ERROR: Cacti poller goes not seem to be running
Recommended action: Investigate why the poller is not running properly
ERROR: Cacti poller goes not seem to be running
Recommended action: Investigate why the poller is not running properly
|
In one email are this ERROR s three, in one email is ERROR missing. |
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5453 Location: Wisconsin, USA
|
Posted: Sun Nov 19, 2006 12:16 pm Post subject: |
|
|
Um....
What version of the script are you running? |
|
| Back to top |
|
 |
bambid
Joined: 02 Nov 2006 Posts: 22
|
Posted: Sun Nov 19, 2006 1:05 pm Post subject: |
|
|
Hi Rony,
I use version 1.0.2 . |
|
| Back to top |
|
 |
SoftDux
Joined: 19 Jun 2008 Posts: 37 Location: Johannesburg, South Africa
|
Posted: Mon Jun 23, 2008 7:26 am Post subject: |
|
|
| Does / can it email you when certain things happen, like host / http / mysql /etc down, or HDD filling up, etc? |
|
| Back to top |
|
 |
|