Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat May 27, 2017 8:22 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 29 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Thu Oct 26, 2006 2:08 pm 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 5945
Location: Michigan, USA
Added another updated version.

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
 Post subject: Can't run this script
PostPosted: Wed Nov 15, 2006 7:26 am 
Offline

Joined: Thu Nov 02, 2006 3:10 am
Posts: 22
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 8:16 am 
Offline
Cacti Guru User
User avatar

Joined: Fri Sep 19, 2003 8:36 am
Posts: 2326
Location: Sophia-Antipolis, France
Hi

can you try this :
Code:
$ dos2unix cacti_monitor.sh

_________________

HOWTOs :
Templates :


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 2:09 pm 
Offline

Joined: Thu Nov 02, 2006 3:10 am
Posts: 22
I tried that and got this message :

dos2unix: converting file casti_monitor.sh to UNIX format ...
dos2unix: problems converting file casti_monitor.sh


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 2:53 pm 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 5945
Location: Michigan, USA
Let me repost in a non-broken format... :(

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 4:00 pm 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 5945
Location: Michigan, USA
Latest version has been cleaned of the annoying carriage returns.. :)

Sorry about that... :oops:

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 15, 2006 7:48 pm 
Offline

Joined: Thu Nov 02, 2006 3:10 am
Posts: 22
I tried that and now it runs without any error message.


Thanks

_________________
David


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 17, 2006 6:18 am 
Offline

Joined: Thu Nov 02, 2006 3:10 am
Posts: 22
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.

_________________
David


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 19, 2006 12:16 pm 
Offline
Developer/Forum Admin
User avatar

Joined: Mon Nov 17, 2003 6:35 pm
Posts: 5945
Location: Michigan, USA
Um....

What version of the script are you running?

_________________
Tony Roman
Experience is what causes a person to make new mistakes instead of old ones.
There are only 3 way to complete a project: Good, Fast or Cheap, pick two.
With age comes wisdom, what you choose to do with it determines whether or not you are wise.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 19, 2006 1:05 pm 
Offline

Joined: Thu Nov 02, 2006 3:10 am
Posts: 22
Hi Rony,
I use version 1.0.2 .

_________________
David


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 23, 2008 7:26 am 
Offline

Joined: Thu Jun 19, 2008 9:24 am
Posts: 39
Location: Johannesburg, South Africa
Does / can it email you when certain things happen, like host / http / mysql /etc down, or HDD filling up, etc?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 01, 2009 7:17 am 
Offline

Joined: Thu Oct 01, 2009 6:47 am
Posts: 2
Could you please post a output of your script for example?


Top
 Profile  
 
 Post subject: Re: Cacti Server Monitoring script for Unix
PostPosted: Tue May 15, 2012 7:34 am 
Offline

Joined: Mon Feb 07, 2011 9:01 am
Posts: 12
Thanks for sharing!

Its working great here!


Top
 Profile  
 
 Post subject: Re: Cacti Server Monitoring script for Unix
PostPosted: Tue Oct 16, 2012 6:09 am 
Offline

Joined: Tue Aug 21, 2012 2:23 am
Posts: 30
Something is bad, I do have postfix and sendmail on the server, when trying to run the script i get this:

Code:
:/home/scripts# ./cacti_monitor.sh
postdrop: warning: unable to look up public/pickup: No such file or directory
srvr:/home/scripts# whoami
root


Do I need to make some changes and pickup mail server directly?

Edit: error above seems to be fixed with:

Code:
mkfifo /var/spool/postfix/public/pickup


but still no emails received when 5 percent is choosen.

Code:
### Enable disk monitoring ###
CHECK_DISK="YES";
# Percent of volume usage to alert on, whole integer number
TOLERANCE_PERCENT="5";


My disk has 80 percent used of course.

Edit: I am idiot, script was ok, but external SMTP was required. One more hint, on some servers consider changing httpd to apache inside script.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group