Cacti Server Monitoring script for Unix
Moderators: Developers, Moderators
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Added another updated version.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
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
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
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Let me repost in a non-broken format...
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Latest version has been cleaned of the annoying carriage returns..
Sorry about that...
Sorry about that...
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
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:
In one email are this ERROR s three, in one email is ERROR missing.
Code: Select all
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
David
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Um....
What version of the script are you running?
What version of the script are you running?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
-
- Posts: 12
- Joined: Mon Feb 07, 2011 9:01 am
Re: Cacti Server Monitoring script for Unix
Thanks for sharing!
Its working great here!
Its working great here!
Re: Cacti Server Monitoring script for Unix
Something is bad, I do have postfix and sendmail on the server, when trying to run the script i get this:
Do I need to make some changes and pickup mail server directly?
Edit: error above seems to be fixed with:
but still no emails received when 5 percent is choosen.
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.
Code: Select all
:/home/scripts# ./cacti_monitor.sh
postdrop: warning: unable to look up public/pickup: No such file or directory
srvr:/home/scripts# whoami
root
Edit: error above seems to be fixed with:
Code: Select all
mkfifo /var/spool/postfix/public/pickup
Code: Select all
### Enable disk monitoring ###
CHECK_DISK="YES";
# Percent of volume usage to alert on, whole integer number
TOLERANCE_PERCENT="5";
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.
Who is online
Users browsing this forum: No registered users and 0 guests