Issue with test-mklivestatus
Posted: Thu Feb 02, 2017 9:49 am
Hi All,
I have Nagios XI 5.2.9 and mk-livestatus-1.2.8p16 installed on s930lXXXX. I am able to get data using below queries.
[root@s930lXXXX mk-livestatus-1.2.8p16]# netstat -anp | grep live
unix 2 [ ACC ] STREAM LISTENING 533297 49919/nagios /usr/local/nagios/var/rw/live
[root@s930lXXXX mk-livestatus-1.2.8p16]#
[root@s930lXXXX mk-livestatus-1.2.8p16]# echo 'GET servicegroups' | unixcat /usr/local/nagios/var/rw/live
action_url;alias;members;members_with_state;name;notes;notes_url;num_services;num_services_crit;num_services_hard_crit;num_services_hard_ok;num_services_hard_unknown;num_services_hard_warn;num_services_ok;num_services_pending;num_services_unknown;num_services_warn;worst_service_state
;WIN_Services;;;WIN_Services;;;0;0;0;0;0;0;0;0;0;0;0
[root@s930lXXXX mk-livestatus-1.2.8p16]#
I have Splunk enterprise installed on s930lYYYY, now issue I am facing is I am unable to test test-mklivestatus.py even I have used Nagios server hostname and port in mklivestatus.py
[root@s930lYYYY bin]# ./test-mklivestatus.py
Error connecting to s930lXXXX on port 6557: Connection refused
[root@s930lYYYY bin]#
Kindly advice if any one has come across the situation.
I have Nagios XI 5.2.9 and mk-livestatus-1.2.8p16 installed on s930lXXXX. I am able to get data using below queries.
[root@s930lXXXX mk-livestatus-1.2.8p16]# netstat -anp | grep live
unix 2 [ ACC ] STREAM LISTENING 533297 49919/nagios /usr/local/nagios/var/rw/live
[root@s930lXXXX mk-livestatus-1.2.8p16]#
[root@s930lXXXX mk-livestatus-1.2.8p16]# echo 'GET servicegroups' | unixcat /usr/local/nagios/var/rw/live
action_url;alias;members;members_with_state;name;notes;notes_url;num_services;num_services_crit;num_services_hard_crit;num_services_hard_ok;num_services_hard_unknown;num_services_hard_warn;num_services_ok;num_services_pending;num_services_unknown;num_services_warn;worst_service_state
;WIN_Services;;;WIN_Services;;;0;0;0;0;0;0;0;0;0;0;0
[root@s930lXXXX mk-livestatus-1.2.8p16]#
I have Splunk enterprise installed on s930lYYYY, now issue I am facing is I am unable to test test-mklivestatus.py even I have used Nagios server hostname and port in mklivestatus.py
[root@s930lYYYY bin]# ./test-mklivestatus.py
Error connecting to s930lXXXX on port 6557: Connection refused
[root@s930lYYYY bin]#
Kindly advice if any one has come across the situation.