re-alert doesnt work

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Not a problem. If you look in the post discussions we've been having so far, the link is in there.

Look here
http://forums.cacti.net/viewtopic.php?p ... 4218#67694

By the way, you might want to consider using MANAGE, as it works better for monitoring services etc.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
herjai
Cacti User
Posts: 53
Joined: Wed May 06, 2009 8:28 pm

Post by herjai »

thanks alot, but i followed the instruction inside the post, however all the services are still returning 0, quite weird ya :cry:
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

herjai wrote:thanks alot, but i followed the instruction inside the post, however all the services are still returning 0, quite weird ya :cry:
I feel your pain :)

No promises, but here's a version I had working many moons ago under Windows running WAMP. Backup your old version, replace it with this one, and remove / recreate all your Windows Services graphs
Attachments
win_services.zip
(960 Bytes) Downloaded 108 times
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
herjai
Cacti User
Posts: 53
Joined: Wed May 06, 2009 8:28 pm

Post by herjai »

after changing your copy, the win service cannot get any data.

before it always get 0, not it's nothing.......... hahah, really wanna die
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

:( Ok - change it back to yours.

You'll need to play around with these lines which are shown twice in the script

Code: Select all

					print substr($return_arr[$i]['oid'],37) . "\n";
				else
					print substr($return_arr[$i]['oid'],27) . "\n";
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
herjai
Cacti User
Posts: 53
Joined: Wed May 06, 2009 8:28 pm

Post by herjai »

already changed them to 37 and test last nite, no luck :cry:
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

herjai wrote:already changed them to 37 and test last nite, no luck :cry:
Ok - try this one.
Attachments
win_services.zip
(960 Bytes) Downloaded 116 times
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
herjai
Cacti User
Posts: 53
Joined: Wed May 06, 2009 8:28 pm

Post by herjai »

actually after i changed to the 2 files u just posted, can't even query data. returned 0 row like before :-?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

herjai wrote:actually after i changed to the 2 files u just posted, can't even query data. returned 0 row like before :-?
That's odd - this is from my production system ! However, this is Ubuntu Server :)
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
herjai
Cacti User
Posts: 53
Joined: Wed May 06, 2009 8:28 pm

Post by herjai »

sigh~~~~~~ maybe the win services just hate me now, coz it works fine at the previous version :(
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

herjai wrote:sigh~~~~~~ maybe the win services just hate me now, coz it works fine at the previous version :(
I tried my version of win_services.php against an 0.8.7e version of CACTI I have under Windows, and it works fine. I would do the following

1. Install GetIF
2. Perform a walk against OIDs .1.3.6.1.4.1.77.1.2.3.1.1 and .1.3.6.1.4.1.77.1.2.3.1.2
3. Check the output that is returned.
4. Now perform a verbose query in CACTI for the affected host, and see how the output compares with that of GetIF
5. You may need to fiddle with the script to make it drop the leading "." from the returned OID - this differs from machine to machine

I had a real issue getting this to work under Windows correctly (it would always return 0 instead of 1 even though the service was up). This also seems to vary between versions of PHP.

Regds
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
herjai
Cacti User
Posts: 53
Joined: Wed May 06, 2009 8:28 pm

Post by herjai »

sorry, it's my first time to use Getif,

i installed it already, how do i perform the walk? :oops:
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

herjai wrote:sorry, it's my first time to use Getif,

i installed it already, how do i perform the walk? :oops:
1. Start GetIF
2. Click Parameters, and fill in all relevant details - hostname and SNMP community are enough
3. Click Start
4. Ensure the host responds
5. Click MBrowser
6. At the bottom of the window there is a field where you can paste the OID of .1.3.6.1.4.1.77.1.2.3.1.1 (there is a drop-down with "n (nullobj)" filed in next to it.
7. Click Start
8. The field above this shows the output

Hope this helps.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests