Code Monkey home page Code Monkey logo

Comments (14)

HenriWahl avatar HenriWahl commented on May 25, 2024

Can you send me your action snippet from $HOME/.nagstamon/actions/<your_action>.conf?

from nagstamon.

wschoot avatar wschoot commented on May 25, 2024

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 $ADDRESS$ as per your example on the website. When I try the built-in RDP command, it says 'Invalid connectionfile ()" where is the host_name variable in Nagios (which isn't something that can be resolved, as we use this host_name field for a hostname which we prepend with a cmdb number.

from nagstamon.

HenriWahl avatar HenriWahl commented on May 25, 2024

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.

wschoot avatar wschoot commented on May 25, 2024

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.

HenriWahl avatar HenriWahl commented on May 25, 2024

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.

wschoot avatar wschoot commented on May 25, 2024

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.

HenriWahl avatar HenriWahl commented on May 25, 2024

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.

wschoot avatar wschoot commented on May 25, 2024

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.

HenriWahl avatar HenriWahl commented on May 25, 2024

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.

wschoot avatar wschoot commented on May 25, 2024

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.

HenriWahl avatar HenriWahl commented on May 25, 2024

Yes, mail address is at http://nagstamon.ifw-dresden.de/contact/

from nagstamon.

wschoot avatar wschoot commented on May 25, 2024

Sent you an email!

from nagstamon.

wschoot avatar wschoot commented on May 25, 2024

Fixed in newer version?

from nagstamon.

HenriWahl avatar HenriWahl commented on May 25, 2024

To be tested... but I read our mail conversation as a local problem which I cannot fix.

from nagstamon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.