Adding new hosts in Nagwin

15 posts / 0 new
Last post
navarac1
Offline
Last seen: 8 years 7 months ago
Joined: 21.10.2012 - 16:56
Adding new hosts in Nagwin

I am new to Nagwin so I apologize in advance if this question has been asked and answered but I was unable to find it.

I have installed Nagwin and everything seems fine - monitoring of localhost is working.  I have followed the instructions for creating a new host .cfg file but every time I place the file in the \etc\nagios\nagwin  directory and restart the service, the service fails to start.  If I remove the file the service starts up fine.

Any ideas would be greatly appreciated.

itefix
Offline
Last seen: 48 min 27 sec ago
Joined: 01.05.2008 - 21:33
Your files are probably saved

Your files are probably saved in Windows format. You can use steps below to convert them to Unix format:

 

  • Open a command prompt and move to the etc/nagios/nagwin directory
  • Run command

<inst.dir>\bin\d2u <your file(s)>

 

guest
Hey,

Hey,

have the same problem. Did the dos2unix convertion, but the error still appears. 

Maybe something in the .cfg file is wrong? Are the red written fields (I'm talking about https://www.itefix.net/content/basic-monitoring-windows-hosts-nsclient) the only one that I have to change ?

 

itefix
Offline
Last seen: 48 min 27 sec ago
Joined: 01.05.2008 - 21:33
 

 

Yes, only IP-address is necessary to update at Nagwin side. Please check Nagios messages during the start.

guest
Hi, so I restarted everythin

Hi, so I restarted everythin again. That was the result :

"Restart Nagwin Services 

11.08.2016 08:33================== [SC] OpenService FAILED 5: Access is denied. waiting 2 secs ... [SC] StartService: OpenService FAILED 5:   and so on..." But the thing is, when I access the tactical overview, it works, but I just can see the localhost, not the host104 I added. I really don't have any clue what I could try to get rid of this problem.

itefix
Offline
Last seen: 48 min 27 sec ago
Joined: 01.05.2008 - 21:33
 

 

When you start services from start menu, right click and run as administrator. It may hhelp.

guest
Hey,

Hey,

my Nagios works on localhost, but adding a windows host via NSCLIENT++ leads to following error in Web GUI:

"Whoops! Error: Could not read host and service status information![...]" Comparable to the other problems here. But for example the check_nrpe to the windows host works.So where could be the problem now? 

itefix
Offline
Last seen: 48 min 27 sec ago
Joined: 01.05.2008 - 21:33
 

 

You can start a Nagios configuration check from Start menu (right click and run as admin). The log will clearly show what the problem is.

 

guest
I did restart all the

I did restart all the services several times as a admin.

The problem with the log files is : They're all empty.

itefix
Offline
Last seen: 48 min 27 sec ago
Joined: 01.05.2008 - 21:33
 

 

We recommend to run Nagios configuration check from the Nagwin start menu.

 

guest
Running this shows up several

Running this shows up several error:

What clearly is the most common: "specified in service 'CPU load' for host 'host104' not defined anywhere" and different other services.

So maybe the problem is within the .cfg file, am I right? how can I fix this? I thought, I only have to change the ip-address from your template for adding a new host via NSClient++.

itefix
Offline
Last seen: 48 min 27 sec ago
Joined: 01.05.2008 - 21:33
 

 

Can you replace 'check_nrpe_plain' by 'check_nrpe' in the configuration file ?

 

guest
Okay many of the errors

Okay many of the errors diappeard, but one still remains:

Error: Service check command 'check_nrpen!CheckMEM -a MaxWarn=95% MaxCrit=99% ShowAll type=physical' specified in service 'Memory physical' for host 'host104' not defined anywhere!

 

 

itefix
Offline
Last seen: 48 min 27 sec ago
Joined: 01.05.2008 - 21:33
 

 

There is a typo - replace check_nrpen by check_nrpe

guest
Yeah, it works fine! THANKS A

Yeah, it works fine! THANKS A LOT!