Search found 7 matches

by tubosunedward
Sun Aug 25, 2013 4:15 pm
Forum: Open Source Nagios Projects
Topic: Exit Codes For Passive Checks
Replies: 1
Views: 787

Exit Codes For Passive Checks

Hi Guys,

I wrote a code on python with scapy and would like the result to exit with a 0,1 or 2. The problem is that the values are in Date:Hours:Mins:Second which I would like to convert to just one integer value. Can anyone suggest how to convert this to this one int value?
by tubosunedward
Wed Aug 14, 2013 10:31 am
Forum: Open Source Nagios Projects
Topic: Passive Network Sensor External Application
Replies: 11
Views: 3729

Re: Passive Network Sensor External Application

Can anyone help return a 0 or 2 with the code attached so I can intergrate it with nagios. The code listens passively to broadcast traffic either arp or udp and displays the ip address seen and the time intervals. ========================= import sys import string import datetime import socket from ...
by tubosunedward
Mon Aug 12, 2013 9:48 pm
Forum: Open Source Nagios Projects
Topic: Passive Network Sensor External Application
Replies: 11
Views: 3729

Re: Passive Network Sensor External Application

so in summary for passive checks I would need to use something like the NSCA and also ensure I edit the code to have exit codes 0,1,2,3?
by tubosunedward
Mon Aug 12, 2013 2:15 pm
Forum: Open Source Nagios Projects
Topic: Passive Network Sensor External Application
Replies: 11
Views: 3729

Re: Passive Network Sensor External Application

Thanks for the reply, for passive checks how will nagios be configured to read the script... also can you suggest conditional codes I can use for this exits?
by tubosunedward
Mon Aug 12, 2013 12:56 pm
Forum: Open Source Nagios Projects
Topic: Passive Network Sensor External Application
Replies: 11
Views: 3729

Re: Passive Network Sensor External Application

Kindly find the script attached.
by tubosunedward
Mon Aug 12, 2013 12:33 pm
Forum: Open Source Nagios Projects
Topic: Passive Network Sensor External Application
Replies: 11
Views: 3729

Re: Passive Network Sensor External Application

Thanks for your reply, I really do appreciate it. I am just having issues integrating it with nagios system to get it working, the code works well and displays the ip address of the live host which it detects by the kind of traffic passed. The external application displays the ip address of the host...
by tubosunedward
Mon Aug 12, 2013 10:56 am
Forum: Open Source Nagios Projects
Topic: Passive Network Sensor External Application
Replies: 11
Views: 3729

Passive Network Sensor External Application

Hi, Please I have a problem, I don't know how to integrate the passive ping network sensor I have written in perl with the nagios monitoring tool and have read so many articles without proper direction. The external program runs and works find which listens to broadcast traffic which are ARP and UDP...