-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ping only device Down #4742
Comments
chmod +s /path/to/spine |
ups... sorry. I overlooked that it is on windows. It is typical linux spine problem |
Install the full Cygwin if you have not already and make sure you change the permission on spine cd /usr/local/spine/bin/
chmod +s spine Should behave like any other Linux variant. |
I have no Cygwin installation. I used the Cacti installer for Windows https://forums.cacti.net/viewtopic.php?t=14946 |
The guy who does the packaging does that for you. If you install cygwin, it's a simple thing, you can change the permissions. |
To try and solve this I copied the chmod.exe file from another computer onto the server running Cacti and updated the perrmissions. I now have: If I run spine.exe against my host I see a very curious message in the results indicating I should use a different dectection method such as SNMP.
BTW: I have a custom built Windows version of Net-SNMP which has be patched to properly resolve hostnames to IPv6 addresses. My network is made up of ~600 IPv6 only hosts. What can I try next? |
Yea, right now spine is ICMP ping is not supported. It's been open for a while under spine. We would be glad to receive a contribution. I would use SNMP if it's available. If not, try TCP ping. It will essentially attempt to connect ot a well known port like AD, and if it can, then it will assume the host is up. Just pick a good port, even if it's a bad port, I think TCP ping will detect that (on Linux for sure), and proceed. The only issue might be on Windows. So, just pick a port that you know is always open. |
Marking related to Cacti/spine#127 and closing. Continue to comment if you like. |
Just a note on the proposed solution of setting the setuid bit under Windows/Cygwin.
In the code for ping.c, if I'm reaing this correctly there's a preprocessor macro that excludes the code that checks for the setuid bit when the OS is CYGWIN. Is that correct? |
BTW, trying to use TCP as a dection method still fails as the check for the IPv6 address marks the host down with no attempt to try to connect to the port. Same message as ping only. |
That might be true re setuid. Patches are always welcome. |
If I set a device to be monitored with Ping only, its status becomes Down even though the device is reponding.
Cacti 1.2.14 on Windows
Device Setup
Device Status
Debug Log
What am I missing?
Thanks
The text was updated successfully, but these errors were encountered: