Monitoring hmailserver with cacti

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
websat
Cacti User
Posts: 70
Joined: Wed Jun 22, 2005 3:00 pm
Contact:

Monitoring hmailserver with cacti

Post by websat »

Hi
I have hmailserver for mail server, i have some vbs scripts for monitoring hmailserver with mrtg (received mail, viruses, spams...) is it possible to use the scripts woth cacti ?

mrtg.cfg for hmailserver (received mails):

PageTop[HMAILSERVER_NBMESSAGES]: Nb mails passerelle hMailServer
Title[HMAILSERVER_NBMESSAGES]: Nb mails passerelle hMailServer
Target[HMAILSERVER_NBMESSAGES]: `cscript //Nologo hmailserver_NumberOfMessages.vbs`
MaxBytes[HMAILSERVER_NBMESSAGES]: 25
YLegend[HMAILSERVER_NBMESSAGES]: Mails
AbsMax[HMAILSERVER_NBMESSAGES]: 25
Options[HMAILSERVER_NBMESSAGES]: perhour, nopercent, integer, transparent, noborder
ShortLegend[HMAILSERVER_NBMESSAGES]: mails
Legend1[HMAILSERVER_NBMESSAGES]: Mails
Legend2[HMAILSERVER_NBMESSAGES]: Mails
LegendI[HMAILSERVER_NBMESSAGES]: Mails:
LegendO[HMAILSERVER_NBMESSAGES]: Mails:
#WithPeak[HMAILSERVER_NBMESSAGES]: ymwd
Attachments
hmailserver_NumberOfMessages.rar
Vbs script
(286 Bytes) Downloaded 171 times
Visit my web site: http://www.websat-telecom.com
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Yes, you can use scripts with cacti.
[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]
websat
Cacti User
Posts: 70
Joined: Wed Jun 22, 2005 3:00 pm
Contact:

Post by websat »

Ok, great, can you tell me how i can do that , did i need to create a template ??
Thanks for your help
Visit my web site: http://www.websat-telecom.com
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Look at unix_mounted_partitions and use that as an example of how to do a Data Query with a script.
[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]
websat
Cacti User
Posts: 70
Joined: Wed Jun 22, 2005 3:00 pm
Contact:

Post by websat »

Thanks
Did i need to create a xml file like host_disk.xml ?
Visit my web site: http://www.websat-telecom.com
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Yep
[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]
websat
Cacti User
Posts: 70
Joined: Wed Jun 22, 2005 3:00 pm
Contact:

Post by websat »

I try but understand nothing, if someone can create the files for me...
Thanks in advance :oops: :o
Visit my web site: http://www.websat-telecom.com
websat
Cacti User
Posts: 70
Joined: Wed Jun 22, 2005 3:00 pm
Contact:

Post by websat »

:oops: :cry:
Visit my web site: http://www.websat-telecom.com
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests