Nagios and off site Windows monitoring
Re: Nagios and off site Windows monitoring
Here is the nagios.cfg
- Attachments
-
nagios.cfg- (43.55 KiB) Downloaded 205 times
Re: Nagios and off site Windows monitoring
Your /etc/xinetd.d/nsca file is incorrect, You need to edit it and change it to the example below. restart xinetd and see if that fixes it for you.
Code: Select all
service nsca
{
flags = REUSE
socket_type = stream
wait = no
user = nagios
group = nagios
server = /usr/local/nagios/bin/nsca
server_args = -c /usr/local/nagios/etc/nsca.cfg --inetd
log_on_failure += USERID
disable = no
}Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios and off site Windows monitoring
Hi Tgreip, I have added that in thanks and just rebooted xine and nagios. Still getting the following when I runtgriep wrote:Your /etc/xinetd.d/nsca file is incorrect, You need to edit it and change it to the example below. restart xinetd and see if that fixes it for you.
Code: Select all
service nsca { flags = REUSE socket_type = stream wait = no user = nagios group = nagios server = /usr/local/nagios/bin/nsca server_args = -c /usr/local/nagios/etc/nsca.cfg --inetd log_on_failure += USERID disable = no }
Code: Select all
nsca-2.7.2/src/send_nsca 192.168.1.246 -c nsca-2.7.2/sample-config/send_nsca.cfg < testI have attached everything I can think of for eases sake.
Code: Select all
Error: Server closed connection before init packet was received
Error: Could not read init packet from server- Attachments
-
- nagios.zip
- (19.77 KiB) Downloaded 193 times
Re: Nagios and off site Windows monitoring
Quick look of the configs and they look good.
Run the command below to see if there are any nsca errors.
Run the command below to see if there are any nsca errors.
Code: Select all
tail -100 /var/log/syslogBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios and off site Windows monitoring
tgriep wrote:Quick look of the configs and they look good.
Run the command below to see if there are any nsca errors.Code: Select all
tail -100 /var/log/syslog
Code: Select all
root@storage:~/Downloads/nagios# tail -100 /var/log/syslog
Aug 7 13:45:32 storage nsca[17060]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:45:32 storage nsca[17060]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:45:32 storage nsca[17061]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:45:32 storage nsca[17061]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:46:37 storage nsca[17067]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:46:37 storage nsca[17067]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:46:44 storage nsca[17069]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:46:44 storage nsca[17069]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:46:44 storage nsca[17070]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:46:44 storage nsca[17070]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:46:44 storage nsca[17071]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:46:44 storage nsca[17071]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:46:44 storage nsca[17072]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:46:44 storage nsca[17072]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:47:43 storage nsca[17085]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:47:43 storage nsca[17085]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:47:43 storage nsca[17086]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:47:43 storage nsca[17086]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:47:43 storage nsca[17087]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:47:43 storage nsca[17087]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:47:43 storage nsca[17088]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:47:43 storage nsca[17088]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:48:50 storage nsca[17092]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:48:50 storage nsca[17092]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:48:50 storage nsca[17093]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:48:50 storage nsca[17093]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:48:50 storage nsca[17094]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:48:50 storage nsca[17094]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:48:50 storage nsca[17095]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:48:50 storage nsca[17095]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:50:01 storage CRON[17101]: (www-data) CMD (php --define suhosin.memory_limit=512M /usr/share/cacti/site/poller.php 2>&1 >/dev/null | if [ -f /usr/bin/ts ] ; then ts ; else tee ; fi >> /var/log/cacti/poller-error.log)
Aug 7 13:50:32 storage nsca[17112]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:50:32 storage nsca[17112]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:50:32 storage nsca[17113]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:50:32 storage nsca[17113]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:50:32 storage nsca[17114]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:50:32 storage nsca[17114]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:50:32 storage nsca[17115]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:50:32 storage nsca[17115]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:51:37 storage nsca[17121]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:51:37 storage nsca[17121]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:51:44 storage nsca[17124]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:51:44 storage nsca[17124]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:51:44 storage nsca[17125]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:51:44 storage nsca[17125]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:51:44 storage nsca[17126]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:51:44 storage nsca[17126]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:51:44 storage nsca[17127]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:51:44 storage nsca[17127]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:52:43 storage nsca[17138]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:52:43 storage nsca[17138]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:52:43 storage nsca[17139]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:52:43 storage nsca[17139]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:52:43 storage nsca[17140]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:52:43 storage nsca[17140]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:52:43 storage nsca[17141]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:52:43 storage nsca[17141]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:53:50 storage nsca[17144]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:53:50 storage nsca[17144]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:53:50 storage nsca[17145]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:53:50 storage nsca[17145]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:53:50 storage nsca[17146]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:53:50 storage nsca[17146]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:53:50 storage nsca[17147]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:53:50 storage nsca[17147]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:55:01 storage CRON[17154]: (www-data) CMD (php --define suhosin.memory_limit=512M /usr/share/cacti/site/poller.php 2>&1 >/dev/null | if [ -f /usr/bin/ts ] ; then ts ; else tee ; fi >> /var/log/cacti/poller-error.log)
Aug 7 13:55:32 storage nsca[17164]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:55:32 storage nsca[17164]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:55:32 storage nsca[17165]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:55:32 storage nsca[17165]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:55:32 storage nsca[17166]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:55:32 storage nsca[17166]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:55:32 storage nsca[17167]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:55:32 storage nsca[17167]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:56:37 storage nsca[17173]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:56:37 storage nsca[17173]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:56:44 storage nsca[17176]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:56:44 storage nsca[17176]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:56:44 storage nsca[17177]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:56:44 storage nsca[17177]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:56:44 storage nsca[17178]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:56:44 storage nsca[17178]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:56:44 storage nsca[17179]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:56:44 storage nsca[17179]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:57:43 storage nsca[17191]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:57:43 storage nsca[17191]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:57:43 storage nsca[17192]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:57:43 storage nsca[17192]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:57:43 storage nsca[17193]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:57:43 storage nsca[17193]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:57:43 storage nsca[17194]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:57:43 storage nsca[17194]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:58:50 storage nsca[17197]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:58:50 storage nsca[17197]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:58:50 storage nsca[17198]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:58:50 storage nsca[17198]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:58:50 storage nsca[17199]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:58:50 storage nsca[17199]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Aug 7 13:58:50 storage nsca[17200]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 190
Aug 7 13:58:50 storage nsca[17200]: Daemon was not compiled with mcrypt library, so decryption is unavailable.Re: Nagios and off site Windows monitoring
mcrypt library! So if I turn of security it should solve it? I'll give it a try.
Re: Nagios and off site Windows monitoring
It freaking works!!! This is amazing 
Re: Nagios and off site Windows monitoring
I am glad it works! I am going to mark this as resolved and if you have any other issues, you can open a new post.
Be sure to check out our Knowledgebase for helpful articles and solutions!