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    


Cacti Server Monitoring script for Unix
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5453
Location: Wisconsin, USA

PostPosted: Thu Oct 26, 2006 2:08 pm    Post subject: Reply with quote

Added another updated version.
Back to top
bambid



Joined: 02 Nov 2006
Posts: 22

PostPosted: Wed Nov 15, 2006 7:26 am    Post subject: Can't run this script Reply with quote

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

PostPosted: Wed Nov 15, 2006 8:16 am    Post subject: Reply with quote

Hi

can you try this :
Code:
$ dos2unix cacti_monitor.sh
Back to top
bambid



Joined: 02 Nov 2006
Posts: 22

PostPosted: Wed Nov 15, 2006 2:09 pm    Post subject: Reply with quote

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

PostPosted: Wed Nov 15, 2006 2:53 pm    Post subject: Reply with quote

Let me repost in a non-broken format...
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5453
Location: Wisconsin, USA

PostPosted: Wed Nov 15, 2006 4:00 pm    Post subject: Reply with quote

Latest version has been cleaned of the annoying carriage returns..

Sorry about that...
Back to top
bambid



Joined: 02 Nov 2006
Posts: 22

PostPosted: Wed Nov 15, 2006 7:48 pm    Post subject: Reply with quote

I tried that and now it runs without any error message.


Thanks
Back to top
bambid



Joined: 02 Nov 2006
Posts: 22

PostPosted: Fri Nov 17, 2006 6:18 am    Post subject: Reply with quote

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

PostPosted: Sun Nov 19, 2006 12:16 pm    Post subject: Reply with quote

Um....

What version of the script are you running?
Back to top
bambid



Joined: 02 Nov 2006
Posts: 22

PostPosted: Sun Nov 19, 2006 1:05 pm    Post subject: Reply with quote

Hi Rony,
I use version 1.0.2 .
Back to top
SoftDux



Joined: 19 Jun 2008
Posts: 37
Location: Johannesburg, South Africa

PostPosted: Mon Jun 23, 2008 7:26 am    Post subject: Reply with quote

Does / can it email you when certain things happen, like host / http / mysql /etc down, or HDD filling up, etc?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group