Comments (14)
Can you send me your action snippet from $HOME/.nagstamon/actions/<your_action>.conf?
from nagstamon.
Hi,
Thanks for your quick reply!
It's set to IP, as mentioned in the ticket. For the PING action, I've used string = ping
from nagstamon.
Strange, I get an "Invalid connectionfile(192.168.0.1)" - no hostname inside, just plain IP. Your error message has the empty brackets? So no hostname at all? What monitor server type and version do you use?
The hostname is also evaluated on a service so checking a service is not the problem.
from nagstamon.
I have a hostname between de ()'s but that hostname doesn't resolve (that's why I want the IP there). I use nagios 3.3.1
from nagstamon.
Enable debugging and if you start an action look into debugging output. There should be a line containing "IP of :". Would be interesting what URLs are called around that and what the content of that URLs. The IP should be displayed on these URLs where Nagstamon tries to get it ot from there (see https://github.com/HenriWahl/Nagstamon/blob/master/Nagstamon/Nagstamon/Server/Generic.py#L1120 and following).
from nagstamon.
Hi,
I've enabled debugging and restarted nagstamon but the only thing happening is that it creates a 0 byte empty textfile in the location I specified. I restarted nagstamon, tried a few actions, but the file is still empty.
from nagstamon.
This is bad. Why on earth... I tried with Windows 8 and Nagstamon debugging. I noticed that the log file gets filled after exitng Nagstamon. Can you try it this way?
from nagstamon.
Oh! Derp, you're right. It indeed fills the log AFTER quitting nagstamon.
So, without revealing too much info (which I can send offlist, if you want), it looks like this:
DEBUG: 2013-09-25 14:17:07.218000 Nagios 1111-HOSTNAME disk Clicked context menu: RDP
DEBUG: 2013-09-25 14:17:07.219000 Nagios FetchURL: http://NAGIOSURL/nagios/cgi-bin/extinfo.cgi?type=1&host=1111-HOSTNAME CGI Data: None
DEBUG: 2013-09-25 14:17:08.343000 Nagios 1111-HOSTNAME IP of 1111-HOSTNAME: IP, 1111-HOSTNAME
DEBUG: 2013-09-25 14:17:08.343000 Nagios 1111-HOSTNAME disk ACTION: COMMAND C:\windows\system32\mstsc.exe IP, 1111-HOSTNAME
HOSTNAME is obviously replaced, as is IP and NAGIOSURL. It comes down to the fact it sees the IP, HOSTNAME as IP. The 1111- is the CMDB number which we use in the host_name variable to indicate which server this is.
from nagstamon.
Can you check at the page http://NAGIOSURL/nagios/cgi-bin/extinfo.cgi?type=1&host=1111-HOSTNAME if there is any IP information displayed?
from nagstamon.
Yep, it's there in the same format as nagstamon sees it. Can I contact you outside this public issuetracker with some uneditted screens to make this clearer? :-)
from nagstamon.
Yes, mail address is at http://nagstamon.ifw-dresden.de/contact/
from nagstamon.
Sent you an email!
from nagstamon.
Fixed in newer version?
from nagstamon.
To be tested... but I read our mail conversation as a local problem which I cannot fix.
from nagstamon.
Related Issues (20)
- SyntaxWarning: invalid escape sequence with Python 3.11.8 HOT 1
- Nagstamon v.3.14.0 problems to show services HOT 1
- Recheck not working on Thruk 3.12 HOT 6
- Nagstamon 3.14 inplace upgrade No longer working with Thruk instance. HOT 4
- Nagstamon 3.14 not starting since Plasma 6 HOT 34
- Nagstamon 3.14 - Changing network does not refresh the application
- Nagstamon 3.14.0 and 3.10.1 not working with Zabbix 6.4.12 HOT 10
- Nagstamon-3.14.0-win64_setup.exe and threat W64/S-e4cd4610!Eldorado HOT 5
- nagstamon v3.14.0 on Win11 23H2 - icinga KeyError host_name HOT 1
- 3.14 locks up at start HOT 4
- Updating nagstatmon from 3.10.1 to 3.14.0 breaks on Windows 2022 HOT 1
- Nagstamon 3.14.0 and Zabbix 6.2.9 - All information copy not complate
- Regex duration issue
- ValueError when parsing QT_VERSION_STR HOT 8
- AttributeError with Icinga DB 1.2.0 / Icinga DB Web 1.1.2 HOT 2
- Help for integration HOT 3
- [Feature][Integration] Opsgenie HOT 1
- Display own columns from check_MK view in nagstamon HOT 1
- Sorting by duration not saved when restarting nagstamon (minor cosmetic problem) HOT 2
- Nagstamon 3.15-20240506, Fedora 40, Couldn't load VAAPI library HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nagstamon.